Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp10331818rwl; Mon, 2 Jan 2023 00:08:15 -0800 (PST) X-Google-Smtp-Source: AMrXdXsjEqMyhDE21OM+3ULDo2slQI/ThmrtaVTlw0s94AjfjCgkIs1WnUQGX2AAfAq26WIhFzNZ X-Received: by 2002:a17:902:9b90:b0:192:8cd1:5e79 with SMTP id y16-20020a1709029b9000b001928cd15e79mr22058737plp.41.1672646894789; Mon, 02 Jan 2023 00:08:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672646894; cv=none; d=google.com; s=arc-20160816; b=NGT1dtm1Q8vFtT4gZHwJ9z5fNby3M5F8D+BjJvadLb7KyKvwvsGRrsNZF3TjVqm5Hr 3pygJwqkEtyGlkcZX6VMy2JSo+pmgOtr7EwL7xNJEC9iMb9OmobU3aTO8wG0JKtRRsVZ CEX0GnUR0hXg7yISjwx+59h0EfwRAJVCzAQJBmJ5gS047aNMzIABlOR7Shupn1SRN86e Wj+ACB9OVhTsPWqLWZW556zk4v7CNJQLJKbVvGzr7j5mX1P/71dSVpGhfoWtcbHMFJg3 mifhfzUdodve0xklgit4KXV8V63jnIlz8LkBXcTiRgiv2Xb8EJ5uhdBYZWwT1Tl/wfLW Mzsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Zh/OtqhzqgxkEWMSIJrQyOpjIevZLZpcytM4epGbWYI=; b=bD+PGBmEbjUSukg79QOVsg+fI2YKH60uOgRoGin4HDfPDa4UZVjmktnx3/y01smJ2h cNJ1X1ILOf8CCRGb2wG9G9AjN280MvndyJwugtHC22FWg2Zls30kYfYfyX0+L2kJT/jH qqnTSG8uIx3cmaYfumQBZcRq1a3XF8/BafK9gunW+NBPUR9letWCA+pK9y7qOKOk2zha Ck6G3y7iJ4Y5FCYYwBMlGVsRoomPYdzq/GGqYKd1LH81WAZ9gCFxdhf/Vw+oUzUaCK6K ndWq+vL7TSaTj8YXTp6eT+9gl6c9YwViebtIcfe8xeO8yVnkF/prhBZP09zvlkLaFERb rnAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=ArbOzplz; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k3-20020a170902c40300b001868277386dsi32561456plk.192.2023.01.02.00.08.04; Mon, 02 Jan 2023 00:08:14 -0800 (PST) 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=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=ArbOzplz; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230194AbjABIEA (ORCPT + 58 others); Mon, 2 Jan 2023 03:04:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229805AbjABID7 (ORCPT ); Mon, 2 Jan 2023 03:03:59 -0500 Received: from mail-ua1-x930.google.com (mail-ua1-x930.google.com [IPv6:2607:f8b0:4864:20::930]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB23025DA for ; Mon, 2 Jan 2023 00:03:56 -0800 (PST) Received: by mail-ua1-x930.google.com with SMTP id f15so2628314uaq.8 for ; Mon, 02 Jan 2023 00:03:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Zh/OtqhzqgxkEWMSIJrQyOpjIevZLZpcytM4epGbWYI=; b=ArbOzplzY7yuTzvluvxkQU6wlDkT6Y8/eVWELenT52H70gnmjuCgC98QZa+5tFwhmZ BAom+RYNPaia/QFpz4sRTQRLZrj+iHC6kDQqnZ3cFvJLZ8yHG0tuWhlXIVb1yo7O8WBW Y7uSSGrSG/ewouLx2watzkLm4pouiDBn/LFkkHRD6OZLIiuMqn0Ez4g9O5tn1zegaJX7 xUXPt0kbB5OQ9KCmopWp5RVeA8sphOwgPJt4TSRCnTb8f2lkhQdV8Y74ntQEpQ35x/bk qGjIcDp3eFUZiz7AqWY54iVRrPjY6G5EH55wbGtb5tVoqThryvpVEMvn1zWhY/BEaQbt SMqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Zh/OtqhzqgxkEWMSIJrQyOpjIevZLZpcytM4epGbWYI=; b=dtGaNjUz92LJeXwILT+wv+nMUGlt6PXmQP0KyH7HlLxT0zvdXS10v4WUdwDfJUFtUz 7etLTJctQ4t2yf9VBdg0DXqTjiABMSVXD8ssWL1CRp8ssdPV/lw6HNoz7BC+5ecid40u x2/H6Ieo6wW7j4DEsKr93Gr/lA4JTFg54zSEmSWN8ly6AGpESjIlM8eOrkJuD3kCH2k4 oqHoNHm++QCFrQr2O826aVAPilUHi2xMPn7ZKKD4IAgPI5E6lrdF05D5gOumngGnTqP8 q9xrKTHKGaBD0+vl44/5s/NBb2PVyVrLAUfFdlnRsw5HVsnzKB6uSbZ90N2SvaK8a/Ps BN6Q== X-Gm-Message-State: AFqh2kpZD5j3j55HjKQtKhEG7cDPU2mC2lqrQJS3b1N5gE6BtuO4Z0Sb ZWC4hhmoPQWnDzxlfMw8XzM/GwymUtmkMW7NX0k69A== X-Received: by 2002:ab0:20a9:0:b0:440:bc8a:7555 with SMTP id y9-20020ab020a9000000b00440bc8a7555mr3756853ual.112.1672646636068; Mon, 02 Jan 2023 00:03:56 -0800 (PST) MIME-Version: 1.0 References: <20221220090248.1134214-1-haibo.chen@nxp.com> In-Reply-To: <20221220090248.1134214-1-haibo.chen@nxp.com> From: Bartosz Golaszewski Date: Mon, 2 Jan 2023 09:03:45 +0100 Message-ID: Subject: Re: [PATCH 1/2] gpio: vf610: connect GPIO label to dev name To: haibo.chen@nxp.com Cc: linus.walleij@linaro.org, stefan@agner.ch, linux-gpio@vger.kernel.org, linux-imx@nxp.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE 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 Tue, Dec 20, 2022 at 10:02 AM wrote: > > From: Haibo Chen > > Current GPIO label is fixed, so can't distinguish different GPIO > controllers through labels. Use dev name instead. > > Fixes: 7f2691a19627 ("gpio: vf610: add gpiolib/IRQ chip driver for Vybrid") > Signed-off-by: Clark Wang > Signed-off-by: Haibo Chen > --- > drivers/gpio/gpio-vf610.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpio/gpio-vf610.c b/drivers/gpio/gpio-vf610.c > index 9db42f6a2043..a429176673e7 100644 > --- a/drivers/gpio/gpio-vf610.c > +++ b/drivers/gpio/gpio-vf610.c > @@ -304,7 +304,7 @@ static int vf610_gpio_probe(struct platform_device *pdev) > > gc = &port->gc; > gc->parent = dev; > - gc->label = "vf610-gpio"; > + gc->label = dev_name(dev); > gc->ngpio = VF610_GPIO_PER_PORT; > gc->base = of_alias_get_id(np, "gpio") * VF610_GPIO_PER_PORT; > > -- > 2.34.1 > I applied this one, please fix patch 2/2 and resend on its own. Bartosz