From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1DC60C4338F for ; Mon, 16 Aug 2021 03:21:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 061BC61502 for ; Mon, 16 Aug 2021 03:21:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233016AbhHPDVd (ORCPT ); Sun, 15 Aug 2021 23:21:33 -0400 Received: from [138.197.143.207] ([138.197.143.207]:45376 "EHLO rosenzweig.io" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S232779AbhHPDVa (ORCPT ); Sun, 15 Aug 2021 23:21:30 -0400 Date: Sun, 15 Aug 2021 23:20:30 -0400 From: Alyssa Rosenzweig To: Andy Shevchenko Cc: "linux-pci@vger.kernel.org" , Bjorn Helgaas , Rob Herring , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Stan Skowronek , Marc Zyngier , Mark Kettenis , Sven Peter , Hector Martin , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [RFC PATCH 2/2] PCI: apple: Add driver for the Apple M1 Message-ID: References: <20210815042525.36878-1-alyssa@rosenzweig.io> <20210815042525.36878-3-alyssa@rosenzweig.io> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andy, Thanks for the review. > +       depends on GPIOLIB > >  It doesn’t seem to provide a GPIO.  I thought that was needed to consume GPIOs, but it looks like other PCI drivers don't do it. Removed. > +       if (IS_ERR(port)) > +               return -ENODEV; > + > +       reset = devm_gpiod_get_index(pcie->dev, "reset", i, 0); > > Use appropriate flag. >   > > +       if (IS_ERR(reset)) > +               return PTR_ERR(reset); > + > +       gpiod_direction_output(reset, 0); > > Ditto and remove this line. Fixed in v2, thank you. > +       usleep_range(5000, 10000); > > Sleep of such length should be explained. Removed in v2. > + > > Redundant blank line  Presumably fixed in v2. > +       pcie->bitmap = devm_kcalloc(pcie->dev, > BITS_TO_LONGS(pcie->nvecs), > +                                   sizeof(long), GFP_KERNEL); > > devm_bitmap_zalloc() Done in v2. > +static const struct of_device_id apple_pci_of_match[] = { > +       { .compatible = "apple,pcie", .data = &apple_m1_cfg_ecam_ops }, > >   > > +       { }, > > No comma for termination entry  Fixed in v2. BR, Alyssa