Received: by 2002:a05:6a10:c7d3:0:0:0:0 with SMTP id h19csp1406169pxy; Sun, 15 Aug 2021 20:24:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykR96fgrHANq4o69B6ybUNoDxITGL8woliXYsMF88Vmw4sqNGHemeB8gvUMTNaQFt+FVTw X-Received: by 2002:a50:fe07:: with SMTP id f7mr17570984edt.11.1629084257354; Sun, 15 Aug 2021 20:24:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629084257; cv=none; d=google.com; s=arc-20160816; b=g+8NCbfLGhW7WAf0fSxt1u9js1AbOM4q49r+Q2PawuBgF8B1+8lXivJUelh37EzljY XPpDJut9MFkbhCBj3sSIblqmOADExD6/hMRe+D3gZ/mReB8+HbXTypfhSa3BVPDiEVd0 ur8FHXHAWj4zYPRWKoFafa6V8+abCnQ/jXNJbrzw6MgKhhWCFRmFwfVwovcDK4QemTO/ w3neTK3PrjEZYBCtfD5coEIm+UhyuhOSsmcItxJa9BUt0CfOr+4EV5AXjM5L7f8rjYoa UAdWNOPndglTznIu0ButbW7egM/SWhbiRIHU4fhaRhQBcYdWULcgSZHIvfQrjsuY+/gu m+gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=oJzXkKMqZf+izoYJ7O+cspzTQbRUUZOeHcYyVjJtTgI=; b=NulEt19xdfjwNo3Ee6A/Uw9txN4ApncBV/1tWGmzg7rPMENBnPNzVldff7zI+Zl1qL FlfoL3/GxgleC//fQYDr+yE1Lfm4q4A3o5u3tGURoe9Jz9P/I0m8RJ1Br/J7r3sEEGYD NpTR2UagV11iK6cMgS8ArMCdNvqqHyr1oKm3Vp/Z/PMlRGU0JJwR3yXqJ7dWkEvIHsAU yvqkT3gVbMWpy2V9k69I71JaK5C15mmFvKMPmH+TMkg4ylg5FxKHX8CgnDAX9UhuJa16 e1DAmnMjq9XjL/FSK/N+ugNz5qqXvCNOrskMxtbElih8KA+Pjgeyj61wKbU77hZHiLBV paYQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dc21si9033691edb.493.2021.08.15.20.23.54; Sun, 15 Aug 2021 20:24:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233061AbhHPDVc (ORCPT + 99 others); Sun, 15 Aug 2021 23:21:32 -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