Message ID | 20230601054549.10843-8-nikita.shubin@maquefel.me |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp71553vqr; Wed, 31 May 2023 22:48:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Y+0U3HTAyi4EV1x0jRCULYb9zoFEwTLKKYvZGyIuqe8oaP8UEbqpP+5OlAk4gPEsyKT5G X-Received: by 2002:a0d:d712:0:b0:561:abb8:3b38 with SMTP id z18-20020a0dd712000000b00561abb83b38mr9023337ywd.17.1685598507341; Wed, 31 May 2023 22:48:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685598507; cv=none; d=google.com; s=arc-20160816; b=nEZ7I4y2inUt545G3xO0vyrl3P0w/2kseKiRZWL5U05jEmOmz69U/htA7X3eMg3ysw WKEh8kSxI0MU0EI8WldJrhzRdBdUJd2I63O9f81aG/ZnGPj9+x/t4bdaAEk04tByntMh 5OkKxRWhvoMpC0WcDotgIDg/NTW4KS7Un5YSERr5tW3nCCQ4VtRv6SjUEOTKRLB+WLa6 H8HAC93XToNQRzHX9AObeJbgMxVUFrsG2zFE8de24JisZor7zERXIk3ovPyh1herhIQF EUcmYl0oqaXThOFE0/I7E3TTvVj6nBF1q5X6okxZlsSY+8EfkJ9Kdod//SOxuSkckY3C ye3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ljVd92c1g+mJnQikOhJv0be3//cBkYT7Tzib+FT3fhQ=; b=EKDO+nnFjH0fYVm9/3hbCg7T84KpuxosX2VmkVq+gmFAfHjZO+0ZgDcs5q+BlK+yPh tztar+qtbsaankXE45BxraMYn3CEBcVOE04kfopSBIE01MKjo80IJz4P4cUWOsRqvIED odCwWW02UnJfL9g+tjXmkrs/tUdlF4WFZKrSN5vgBAyGzCH1JIVJWbVoOsdDoF/uJGT+ 1C2mpterzZhXrqfGn86TsV1Odql9OqtXc0R8549I/DJEvYlSu0F4npwY0ugvj3W790z0 J1PqNCP0kzxfacSyHTZe0vAiSc18hAmHuD/Z6gsD16OFYZu7Z6G7sn1srbO9TOqLJEJI DcQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maquefel.me header.s=mail header.b=ZnllIgqA; 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 k11-20020aa7972b000000b0064f787f2888si129607pfg.397.2023.05.31.22.48.15; Wed, 31 May 2023 22:48:27 -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=@maquefel.me header.s=mail header.b=ZnllIgqA; 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 S231587AbjFAFqx (ORCPT <rfc822;limurcpp@gmail.com> + 99 others); Thu, 1 Jun 2023 01:46:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231590AbjFAFqi (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 1 Jun 2023 01:46:38 -0400 Received: from forward100a.mail.yandex.net (forward100a.mail.yandex.net [178.154.239.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDC69E6D; Wed, 31 May 2023 22:46:17 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net [IPv6:2a02:6b8:c1f:5e51:0:640:23ee:0]) by forward100a.mail.yandex.net (Yandex) with ESMTP id 570F341C76; Thu, 1 Jun 2023 08:46:13 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id pjGDMhnDduQ0-5J5veGwe; Thu, 01 Jun 2023 08:46:13 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1685598373; bh=ljVd92c1g+mJnQikOhJv0be3//cBkYT7Tzib+FT3fhQ=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=ZnllIgqAiqUxGhSfTh3ZexuqZkPzqrAUfomyEn4sRC75dfRbsnwQahT3SJIiXmNuM E61QoCvTRaBUa6cB/swZzbUlVVseApRWRvpB7Vnxlc46Lje1cYWXtaX7SWabeAuLvs qUgItmLv9+fmVccvjXJG5wR/QPbPQrDX2zVorUJM= Authentication-Results: mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net; dkim=pass header.i=@maquefel.me From: Nikita Shubin <nikita.shubin@maquefel.me> To: Alexander Sverdlin <alexander.sverdlin@gmail.com>, Arnd Bergmann <arnd@arndb.de>, Linus Walleij <linus.walleij@linaro.org>, Sergey Shtylyov <s.shtylyov@omp.ru>, Damien Le Moal <dlemoal@kernel.org> Cc: Nikita Shubin <nikita.shubin@maquefel.me>, Michael Peters <mpeters@embeddedTS.com>, Kris Bahnsen <kris@embeddedTS.com>, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 26/43] pata: cirrus: add DT support for Cirrus EP93xx Date: Thu, 1 Jun 2023 08:45:31 +0300 Message-Id: <20230601054549.10843-8-nikita.shubin@maquefel.me> X-Mailer: git-send-email 2.37.4 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,RCVD_IN_DNSWL_NONE, 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: <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?1764051896452504819?= X-GMAIL-MSGID: =?utf-8?q?1767478140386537512?= |
Series |
None
|
|
Commit Message
Nikita Shubin
June 1, 2023, 5:45 a.m. UTC
- find register range from the device tree
- get interrupts from device tree
Signed-off-by: Nikita Shubin <nikita.shubin@maquefel.me>
---
Notes:
v0 -> v1:
- fixed headers
- dropped coma in id table
drivers/ata/pata_ep93xx.c | 8 ++++++++
1 file changed, 8 insertions(+)
Comments
On 6/1/23 14:45, Nikita Shubin wrote: > - find register range from the device tree > - get interrupts from device tree > > Signed-off-by: Nikita Shubin <nikita.shubin@maquefel.me> Please change the commit title to: ata: pata_ep93xx: add device tree support > --- > > Notes: > v0 -> v1: > > - fixed headers > - dropped coma in id table > > drivers/ata/pata_ep93xx.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/drivers/ata/pata_ep93xx.c b/drivers/ata/pata_ep93xx.c > index c6e043e05d43..8d363bc71342 100644 > --- a/drivers/ata/pata_ep93xx.c > +++ b/drivers/ata/pata_ep93xx.c > @@ -40,6 +40,7 @@ > #include <linux/ata.h> > #include <linux/libata.h> > #include <linux/platform_device.h> > +#include <linux/mod_devicetable.h> > #include <linux/delay.h> > #include <linux/dmaengine.h> > #include <linux/ktime.h> > @@ -1016,9 +1017,16 @@ static int ep93xx_pata_remove(struct platform_device *pdev) > return 0; > } > > +static const struct of_device_id ep93xx_pata_of_ids[] = { > + { .compatible = "cirrus,ep9312-pata" }, > + { /* sentinel */ } > +}; > +MODULE_DEVICE_TABLE(of, ep93xx_pata_of_ids); > + > static struct platform_driver ep93xx_pata_platform_driver = { > .driver = { > .name = DRV_NAME, > + .of_match_table = ep93xx_pata_of_ids, > }, > .probe = ep93xx_pata_probe, > .remove = ep93xx_pata_remove,
Thu, Jun 01, 2023 at 08:45:31AM +0300, Nikita Shubin kirjoitti: > - find register range from the device tree > - get interrupts from device tree ... > #include <linux/ata.h> > #include <linux/libata.h> > #include <linux/platform_device.h> > +#include <linux/mod_devicetable.h> In all patches, can you try to put a new header inclusions to be ordered (to some extent)? > #include <linux/delay.h> > #include <linux/dmaengine.h> > #include <linux/ktime.h> With the context above a new one is logically suits this location.
Hello! On 6/1/23 8:45 AM, Nikita Shubin wrote: > - find register range from the device tree > - get interrupts from device tree Hm... I'm not seeing such changes in your patch? > Signed-off-by: Nikita Shubin <nikita.shubin@maquefel.me> > --- > > Notes: > v0 -> v1: > > - fixed headers > - dropped coma in id table > > drivers/ata/pata_ep93xx.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/drivers/ata/pata_ep93xx.c b/drivers/ata/pata_ep93xx.c > index c6e043e05d43..8d363bc71342 100644 > --- a/drivers/ata/pata_ep93xx.c > +++ b/drivers/ata/pata_ep93xx.c > @@ -40,6 +40,7 @@ > #include <linux/ata.h> > #include <linux/libata.h> > #include <linux/platform_device.h> > +#include <linux/mod_devicetable.h> > #include <linux/delay.h> > #include <linux/dmaengine.h> > #include <linux/ktime.h> > @@ -1016,9 +1017,16 @@ static int ep93xx_pata_remove(struct platform_device *pdev) > return 0; > } > > +static const struct of_device_id ep93xx_pata_of_ids[] = { > + { .compatible = "cirrus,ep9312-pata" }, > + { /* sentinel */ } > +}; > +MODULE_DEVICE_TABLE(of, ep93xx_pata_of_ids); > + > static struct platform_driver ep93xx_pata_platform_driver = { > .driver = { > .name = DRV_NAME, > + .of_match_table = ep93xx_pata_of_ids, > }, > .probe = ep93xx_pata_probe, > .remove = ep93xx_pata_remove, MBR, Sergey
Hello Sergey! On Fri, 2023-06-02 at 23:03 +0300, Sergey Shtylyov wrote: > Hello! > > On 6/1/23 8:45 AM, Nikita Shubin wrote: > > > - find register range from the device tree > > - get interrupts from device tree > > Hm... I'm not seeing such changes in your patch? I meant that from now on it will take irq's and register from device tree: https://elixir.bootlin.com/linux/v6.4-rc4/source/drivers/ata/pata_ep93xx.c#L928 If CONFIG_OF_IRQ is enabled. You are right > > get interrupts from device tree Is confusing. > > > Signed-off-by: Nikita Shubin <nikita.shubin@maquefel.me> > > --- > > > > Notes: > > v0 -> v1: > > > > - fixed headers > > - dropped coma in id table > > > > drivers/ata/pata_ep93xx.c | 8 ++++++++ > > 1 file changed, 8 insertions(+) > > > > diff --git a/drivers/ata/pata_ep93xx.c b/drivers/ata/pata_ep93xx.c > > index c6e043e05d43..8d363bc71342 100644 > > --- a/drivers/ata/pata_ep93xx.c > > +++ b/drivers/ata/pata_ep93xx.c > > @@ -40,6 +40,7 @@ > > #include <linux/ata.h> > > #include <linux/libata.h> > > #include <linux/platform_device.h> > > +#include <linux/mod_devicetable.h> > > #include <linux/delay.h> > > #include <linux/dmaengine.h> > > #include <linux/ktime.h> > > @@ -1016,9 +1017,16 @@ static int ep93xx_pata_remove(struct > > platform_device *pdev) > > return 0; > > } > > > > +static const struct of_device_id ep93xx_pata_of_ids[] = { > > + { .compatible = "cirrus,ep9312-pata" }, > > + { /* sentinel */ } > > +}; > > +MODULE_DEVICE_TABLE(of, ep93xx_pata_of_ids); > > + > > static struct platform_driver ep93xx_pata_platform_driver = { > > .driver = { > > .name = DRV_NAME, > > + .of_match_table = ep93xx_pata_of_ids, > > }, > > .probe = ep93xx_pata_probe, > > .remove = ep93xx_pata_remove, > > MBR, Sergey
diff --git a/drivers/ata/pata_ep93xx.c b/drivers/ata/pata_ep93xx.c index c6e043e05d43..8d363bc71342 100644 --- a/drivers/ata/pata_ep93xx.c +++ b/drivers/ata/pata_ep93xx.c @@ -40,6 +40,7 @@ #include <linux/ata.h> #include <linux/libata.h> #include <linux/platform_device.h> +#include <linux/mod_devicetable.h> #include <linux/delay.h> #include <linux/dmaengine.h> #include <linux/ktime.h> @@ -1016,9 +1017,16 @@ static int ep93xx_pata_remove(struct platform_device *pdev) return 0; } +static const struct of_device_id ep93xx_pata_of_ids[] = { + { .compatible = "cirrus,ep9312-pata" }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(of, ep93xx_pata_of_ids); + static struct platform_driver ep93xx_pata_platform_driver = { .driver = { .name = DRV_NAME, + .of_match_table = ep93xx_pata_of_ids, }, .probe = ep93xx_pata_probe, .remove = ep93xx_pata_remove,