Message ID | 20230424123522.18302-34-nikita.shubin@maquefel.me |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2642313vqo; Mon, 24 Apr 2023 03:33:06 -0700 (PDT) X-Google-Smtp-Source: AKy350aJNILCK9TsdWGFdqAy5WxSCeCt7AtC3q583O0XXWCv4BokJDrUv60f3HYJGHGaWZEzj5WY X-Received: by 2002:a17:90b:300f:b0:24b:b22d:c78c with SMTP id hg15-20020a17090b300f00b0024bb22dc78cmr3657494pjb.9.1682332386196; Mon, 24 Apr 2023 03:33:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682332386; cv=none; d=google.com; s=arc-20160816; b=bAin2985i7AjaRTE0lnQq2Ro0/ROmC7UOqzQstM/l3VET3EDXnIyPn/1QehBbXZ6mM s82uVLqr/y6r21fRGbjPg0LR6b6MgJalvVSdbw/HuPJ1oxCotyeX4VySeYQvN4UQykM2 k4wyxd+8c0fmTedtCCtBJoCE6EEVgJ93J3j95Tk4AQjao97tVtsbLtelzY18cKyGmkap 1tOFF6y9tmGiuBdu9DjMyph9QfgFqn72PrHf8K1vgO0W2UWBKIBPTFhmhsiZUzX1CtdW SXPdCOXzKyGxm0JCMmVO2wPN0EnIUiQPkVfZosrY3HVrQNgwA/yNplOUYyY+5M0jsquI HKaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=SSxwu9lthPZqqdCdgmUMEpmuMngqWwft96CtvBOzvls=; b=mKUHJ259Y2IuLcX/pG2TcscRp0GuVFhzOQQNXLpmFkTOhUMvWo/lLDqydjcauxP2MW RmBprXqojgnNsKoikW5rexiwi9ft/5O08DuDe57J22h1QECaUUNpmNMuNg9aH3Y8rmP/ BHSqoyoDcPfc4padugv2KQnrpFzv/ldghimy7aIAdovC+Mf8QD/wVmPBuv3ntGUgIHfB qZx8coZBRjVF3RlXp3JTbehz01FMsA4Cm8pre26TBTKpFuIqoWUn1VbJA8Qest58dQk/ Zhx40VX8gBI5ibL4Cvtoxcq/ZC7+I/FYb+lHzdlgjt/RHYMYmqiPPY5TrdBQGC292Ivy PLbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@maquefel.me header.s=mail header.b="IuJ/8EyO"; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g3-20020a17090a67c300b002479bbf3246si13334528pjm.124.2023.04.24.03.32.51; Mon, 24 Apr 2023 03:33:06 -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=fail header.i=@maquefel.me header.s=mail header.b="IuJ/8EyO"; 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 S231139AbjDXKWJ (ORCPT <rfc822;zxc52fgh@gmail.com> + 99 others); Mon, 24 Apr 2023 06:22:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231738AbjDXKVT (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 24 Apr 2023 06:21:19 -0400 Received: from forward502b.mail.yandex.net (forward502b.mail.yandex.net [178.154.239.146]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EAB2421D; Mon, 24 Apr 2023 03:20:51 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-39.myt.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-39.myt.yp-c.yandex.net [IPv6:2a02:6b8:c12:261e:0:640:2e3d:0]) by forward502b.mail.yandex.net (Yandex) with ESMTP id D17C55EBE5; Mon, 24 Apr 2023 12:36:05 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-39.myt.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id JZBb1pbWwKo0-lLqFUc6B; Mon, 24 Apr 2023 12:36:05 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1682328965; bh=SSxwu9lthPZqqdCdgmUMEpmuMngqWwft96CtvBOzvls=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=IuJ/8EyOB6yEznRSkx495zMeYi3Zv5PWv9VH+KP2hzAdLbpnvPj54Wuy/8PEFl4DX W5suv33jnqg0C4wohVHpD0vAaziUKEpEoNSblbyTPCjjtw+LGKFizw80DJb4gpav9h R/WqKa+yioPnhnOU7RHbH0ZIWkja/2ofEOfxd/0g= Authentication-Results: mail-nwsmtp-smtp-production-main-39.myt.yp-c.yandex.net; dkim=pass header.i=@maquefel.me From: Nikita Shubin <nikita.shubin@maquefel.me> Cc: Arnd Bergmann <arnd@kernel.org>, Linus Walleij <linusw@kernel.org>, Alexander Sverdlin <alexander.sverdlin@gmail.com>, Linus Walleij <linus.walleij@linaro.org>, Bartosz Golaszewski <brgl@bgdev.pl>, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 33/43] gpio: ep93xx: add DT support for gpio-ep93xx Date: Mon, 24 Apr 2023 15:34:49 +0300 Message-Id: <20230424123522.18302-34-nikita.shubin@maquefel.me> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230424123522.18302-1-nikita.shubin@maquefel.me> References: <20230424123522.18302-1-nikita.shubin@maquefel.me> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764053363893259968?= X-GMAIL-MSGID: =?utf-8?q?1764053363893259968?= |
Series |
ep93xx device tree conversion
|
|
Commit Message
Nikita Shubin
April 24, 2023, 12:34 p.m. UTC
Add match table.
Signed-off-by: Nikita Shubin <nikita.shubin@maquefel.me>
---
drivers/gpio/gpio-ep93xx.c | 6 ++++++
1 file changed, 6 insertions(+)
Comments
On Mon, Apr 24, 2023 at 11:36 AM Nikita Shubin <nikita.shubin@maquefel.me> wrote: > > Add match table. > > Signed-off-by: Nikita Shubin <nikita.shubin@maquefel.me> > --- > drivers/gpio/gpio-ep93xx.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/gpio/gpio-ep93xx.c b/drivers/gpio/gpio-ep93xx.c > index ca508c7c4f2f..4e3d01fab012 100644 > --- a/drivers/gpio/gpio-ep93xx.c > +++ b/drivers/gpio/gpio-ep93xx.c > @@ -363,9 +363,15 @@ static int ep93xx_gpio_probe(struct platform_device *pdev) > return devm_gpiochip_add_data(&pdev->dev, gc, egc); > } > > +static const struct of_device_id ep93xx_gpio_match[] = { > + { .compatible = "cirrus,ep9301-gpio" }, > + { /* end of table */ }, > +}; > + > static struct platform_driver ep93xx_gpio_driver = { > .driver = { > .name = "gpio-ep93xx", > + .of_match_table = ep93xx_gpio_match, > }, > .probe = ep93xx_gpio_probe, > }; > -- > 2.39.2 > I guess this depends on patch 1/43 from this series? Are you going to send a v2? Bart
Hi Bart! On Fri, 2023-06-16 at 11:18 +0200, Bartosz Golaszewski wrote: > On Mon, Apr 24, 2023 at 11:36 AM Nikita Shubin > <nikita.shubin@maquefel.me> wrote: > > > > Add match table. > > > > Signed-off-by: Nikita Shubin <nikita.shubin@maquefel.me> > > --- > > drivers/gpio/gpio-ep93xx.c | 6 ++++++ > > 1 file changed, 6 insertions(+) > > > > diff --git a/drivers/gpio/gpio-ep93xx.c b/drivers/gpio/gpio- > > ep93xx.c > > index ca508c7c4f2f..4e3d01fab012 100644 > > --- a/drivers/gpio/gpio-ep93xx.c > > +++ b/drivers/gpio/gpio-ep93xx.c > > @@ -363,9 +363,15 @@ static int ep93xx_gpio_probe(struct > > platform_device *pdev) > > return devm_gpiochip_add_data(&pdev->dev, gc, egc); > > } > > > > +static const struct of_device_id ep93xx_gpio_match[] = { > > + { .compatible = "cirrus,ep9301-gpio" }, > > + { /* end of table */ }, > > +}; > > + > > static struct platform_driver ep93xx_gpio_driver = { > > .driver = { > > .name = "gpio-ep93xx", > > + .of_match_table = ep93xx_gpio_match, > > }, > > .probe = ep93xx_gpio_probe, > > }; > > -- > > 2.39.2 > > > > I guess this depends on patch 1/43 from this series? Are you going to > send a v2? Yes it depends, the splitting was done to adapt driver to splitted platform data one for each port i.e. probe is called for each port instance with 1/43. Definitely there will be a v2 (actually b4 considers it a v3 version - so be it), and may be some next series also. > > Bart
diff --git a/drivers/gpio/gpio-ep93xx.c b/drivers/gpio/gpio-ep93xx.c index ca508c7c4f2f..4e3d01fab012 100644 --- a/drivers/gpio/gpio-ep93xx.c +++ b/drivers/gpio/gpio-ep93xx.c @@ -363,9 +363,15 @@ static int ep93xx_gpio_probe(struct platform_device *pdev) return devm_gpiochip_add_data(&pdev->dev, gc, egc); } +static const struct of_device_id ep93xx_gpio_match[] = { + { .compatible = "cirrus,ep9301-gpio" }, + { /* end of table */ }, +}; + static struct platform_driver ep93xx_gpio_driver = { .driver = { .name = "gpio-ep93xx", + .of_match_table = ep93xx_gpio_match, }, .probe = ep93xx_gpio_probe, };