Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4906295rwb; Tue, 6 Sep 2022 14:59:53 -0700 (PDT) X-Google-Smtp-Source: AA6agR55cbJhc6CqFqC+6K7gzEWy+dgBzGa8Ezn42f7YAEAK6ftg7nxxGuFnoa4qtwhYou/MIMEq X-Received: by 2002:aa7:db8b:0:b0:44e:5ce1:f29a with SMTP id u11-20020aa7db8b000000b0044e5ce1f29amr551307edt.109.1662501592935; Tue, 06 Sep 2022 14:59:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662501592; cv=none; d=google.com; s=arc-20160816; b=Vvdfm1c3Bl86vOpU0xxRM4yrYZHzBNn7Mjwy350xDRI4cccFc9+lefsaj3mUQoHGPa 1MyXm+8zQMKkNTi4+d1tVKjRtYUFMKhyuo6mvXoPb2svybVMyT5jm4HXzSutlRaj0yaB PxN7LWac1h/S8DtnITrJA1yz3fLkbfMDoWgbb3Go2c4DQV51yZ7ZhVa97VxuLrA/FFC0 lgnZR6yUCrgbUP6iexK0GsJlhjgKodJQ3+4YcgG8alNFSwVapRs4JN7ebmOwTFskzOmP qXCwz7PPuNH1j8vKtG+PlXKBrnjjY85zcnys08Qkqr4VgoBfNrvrOOdtZtkWMKuYqwMI /W3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=vhju8YY2HFOaGrqL26eIzAgrw285vBqgZrU4pDYmM/E=; b=v/XEMbOmAj487h/zuBU6ytqbG+zS08XeiztRab4JFlhTJTONotfjgnvyzheBultEGq lxwA+wO/fs6Gpwlq2ka1S9S7DEU/TvCUqaMJstTia0vh8FnGCTZy8Mu8BgwkCYYU0LIK /M0Kwb0bjd+mM/e19KOakasHQrrf7aqJecRfoYaIL3QaTZxRNy8F3cUByjTW87AJ4PdO lhjn/hlyJdTRyKt6q9DiUt8MKbKlFDUpAEAdxlk+hHNri39J8chEYGScjnMFDS55xlvc NOwPk2hTMBKHLrH+PUPdhKk+D5flWaZC6pI6SJ/dnQ+fPUylyr0v54j7uGzwHSln3vvt N6cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Zu5442/L"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hd30-20020a170907969e00b007416e100f3dsi11851421ejc.986.2022.09.06.14.59.27; Tue, 06 Sep 2022 14:59:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Zu5442/L"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229808AbiIFVqR (ORCPT + 99 others); Tue, 6 Sep 2022 17:46:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229673AbiIFVqN (ORCPT ); Tue, 6 Sep 2022 17:46:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A23F7B293; Tue, 6 Sep 2022 14:46:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C6590616EF; Tue, 6 Sep 2022 21:46:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F046AC433D6; Tue, 6 Sep 2022 21:46:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662500772; bh=t669WiXDoTikYWP/P6pn5svximbzMJMemRpEmdcmFs8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Zu5442/LXJMRa8CviQJgQ8L10lM91D8mwWWvtWjV1EUDx4dM6PRurgwFNVqGZSqHq C/wVFZ2zdQSnkwoEjOdqWoJpffF4pVFYJixEV3elhgb3gZ0LZbSA2YKkzG6mCU9stA Dl7dilZdyVGfVseR9Ww8yVs8k7Ips05MtZ6NW0RFEnO2OSZN4MW2eOvOIN6G0crpDj I30yufddnNe+QTyGSzUXEBuOGw8XkaQzRJhRSUPjolddWFGmtwaV6fHUA87g86nu7l 14MtBmtR9kJNl7vArhgpnQ/4sTEHDz9V0K1vs+8oPukmf3j3Yb4szUJxTIcI9z72OB e+7yv94a9L8Kg== Received: by pali.im (Postfix) id 29F79742; Tue, 6 Sep 2022 23:46:09 +0200 (CEST) Date: Tue, 6 Sep 2022 23:46:09 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Dmitry Torokhov Cc: Shawn Guo , Lorenzo Pieralisi , Thomas Petazzoni , Bjorn Helgaas , Rob Herring , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Linus Walleij , Bartosz Golaszewski , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] PCI: histb: switch to using gpiod API Message-ID: <20220906214609.pp5rp7ixor6koku2@pali> References: <20220906204301.3736813-1-dmitry.torokhov@gmail.com> <20220906210811.5kzdq66eeeauk2d3@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 06 September 2022 14:41:20 Dmitry Torokhov wrote: > On Tue, Sep 06, 2022 at 11:08:11PM +0200, Pali Rohár wrote: > > On Tuesday 06 September 2022 13:43:00 Dmitry Torokhov wrote: > > > + ret = gpiod_set_consumer_name(hipcie->reset_gpio, > > > + "PCIe device power control"); > > > > Just unrelated thing, I know it was there before, but I saw it just now > > and have to comment it: This is absolute nonsense name. "reset-gpios" > > device tree property specifies PERST# signal pin (PciE ReSeT) as defined > > in PCIe CEM (Card ElectroMagnetic) specification and it has absolute > > nothing with PCIe power control. > > > > My suggestion for maintainers would be to remove this critic name at > > all as it would just mislead other people reading that code. > > I can respin the patch is you suggest a more sensible label... Lets do renaming in different/separate patch. It is better to split API change patch (which should have any visible functional changes) and fixups (which will have some visible changes) in separate patches. Lorenzo, Bjorn, Krzysztof: This is something for you... Do you have any ideas or suggestions in unifying or fixing these names? I guess more drivers have misleading names and it is better to do any such changes globally and not just in one driver. > > > > > + if (ret) { > > > + dev_err(dev, "unable to set reset gpio name: %d\n", ret); > > > + return ret; > > > } > > Thanks. > > -- > Dmitry