Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4671286rwd; Sun, 4 Jun 2023 10:03:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6fxC04huoK/YB943YbspsThgLX5RNj/yxElThmXrh1zexW5ynvrc8VrZu7XbbLCxgAu+6D X-Received: by 2002:a05:6a20:66b0:b0:10c:3cf3:ef7e with SMTP id o48-20020a056a2066b000b0010c3cf3ef7emr4781166pzh.42.1685898186606; Sun, 04 Jun 2023 10:03:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685898186; cv=none; d=google.com; s=arc-20160816; b=R80gZECJ1ubO+LTr0qGSNZD6H7ICQg/XieZJk1JV9zluM2D7f6BGIdvIcsRH4RH55Q SJVb+UeDIkU7sdV/hGRIu81XfcKuktdBimPfuT07J9nmgr1DavPcSKg9+PZgLiJ9a6M7 PLCbYWMoKwI92A17GipSLBub8dogigt7A0uoed42aSwGQDdQm9Hn695z0xuyzxyRdpQe JtK+MHZJclPyLg/Ma1mxqzOzCoQo2CDfFgrMcOi6bjEn9yzsXG+wr546Uy1t4eG1gA0J wf3nmWQ8nStEKcEE8rNU9dlNJSQWcya9SwU6wMmAPwpZjiFqkfwajCerq/Khge2AEjbW 7Mww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=qoROymkVmkGkOdy5uIWZJj6wLlMG+g04m/Wm+5N/tGk=; b=Ucbb/1rDQZVXG9kAEnOfOBLZySLqyL6L/SKumQdIK//Zpl/SgrG5wOAolHtRoablI9 XdoCjR2o/t/j3gWxPOAxeieWJDG7yhoKVuPtCQYk8C8qDfyafuiKT2DFdk+sdF48JwU5 KQeimaN27e41o+f4ymIFF3yPwpqC19FlP1U57J0pOt8+Y920XQCWC+QC18g0zLWSJvH1 3C55Hwpafyos2k/vXVLTwsb8TZtf55RVbP4CO5eAx8bP+sNi6ZVe+RjqdNvNRf0QhsSA eWSWvjyrXhMV3stM1Icb1G0MjetZ4hM3Xtw6xMomVTDDFXnqOT0VeKj6HQPpuNi/NQll DZFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maquefel.me header.s=mail header.b=mEfzG2ia; 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 c6-20020a6566c6000000b0053fa62fc004si4294917pgw.33.2023.06.04.10.02.52; Sun, 04 Jun 2023 10:03: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=pass header.i=@maquefel.me header.s=mail header.b=mEfzG2ia; 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 S231920AbjFDQ3k (ORCPT + 99 others); Sun, 4 Jun 2023 12:29:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231368AbjFDQ3j (ORCPT ); Sun, 4 Jun 2023 12:29:39 -0400 Received: from forward502c.mail.yandex.net (forward502c.mail.yandex.net [IPv6:2a02:6b8:c03:500:1:45:d181:d502]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B060B3; Sun, 4 Jun 2023 09:29:37 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-45.sas.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-45.sas.yp-c.yandex.net [IPv6:2a02:6b8:c14:c83:0:640:84f9:0]) by forward502c.mail.yandex.net (Yandex) with ESMTP id 8DE955E7D4; Sun, 4 Jun 2023 19:29:35 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-45.sas.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id YTUVaSkWwGk0-fmMbjBf0; Sun, 04 Jun 2023 19:29:34 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1685896174; bh=qoROymkVmkGkOdy5uIWZJj6wLlMG+g04m/Wm+5N/tGk=; h=References:Date:In-Reply-To:Cc:To:From:Subject:Message-ID; b=mEfzG2iaO4HhMY8fIX+qHpwZa2R1nFWXq0KwfViPIRzFWmHCojnJwS8/CwlD+vyCW OnccQ5Hd6tz/bBc+t1rTRBjTXXLMChYf6PmwugrasT1x0T1j8AEkRlR6Q4aN4gzQVk BprNYVCDg2vV79T4ofn76F9GLUNefnuQkNYC7AQs= Authentication-Results: mail-nwsmtp-smtp-production-main-45.sas.yp-c.yandex.net; dkim=pass header.i=@maquefel.me Message-ID: Subject: Re: [PATCH v1 26/43] pata: cirrus: add DT support for Cirrus EP93xx From: Nikita Shubin To: Sergey Shtylyov , Alexander Sverdlin , Arnd Bergmann , Linus Walleij , Damien Le Moal Cc: Michael Peters , Kris Bahnsen , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Date: Sun, 04 Jun 2023 22:29:35 +0300 In-Reply-To: <32a041b0-d02d-4353-4794-094b96271e3a@omp.ru> References: <20230424123522.18302-1-nikita.shubin@maquefel.me> <20230601054549.10843-8-nikita.shubin@maquefel.me> <32a041b0-d02d-4353-4794-094b96271e3a@omp.ru> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.3 MIME-Version: 1.0 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 Hello Sergey! On Fri, 2023-06-02 at 23:03 +0300, Sergey Shtylyov wrote: > Hello! >=20 > On 6/1/23 8:45 AM, Nikita Shubin wrote: >=20 > > - find register range from the device tree > > - get interrupts from device tree >=20 > =C2=A0=C2=A0 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. >=20 > > Signed-off-by: Nikita Shubin > > --- > >=20 > > Notes: > > =C2=A0=C2=A0=C2=A0 v0 -> v1: > > =C2=A0=C2=A0=C2=A0=20 > > =C2=A0=C2=A0=C2=A0 - fixed headers > > =C2=A0=C2=A0=C2=A0 - dropped coma in id table > >=20 > > =C2=A0drivers/ata/pata_ep93xx.c | 8 ++++++++ > > =C2=A01 file changed, 8 insertions(+) > >=20 > > 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 @@ > > =C2=A0#include > > =C2=A0#include > > =C2=A0#include > > +#include > > =C2=A0#include > > =C2=A0#include > > =C2=A0#include > > @@ -1016,9 +1017,16 @@ static int ep93xx_pata_remove(struct > > platform_device *pdev) > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0return 0; > > =C2=A0} > > =C2=A0 > > +static const struct of_device_id ep93xx_pata_of_ids[] =3D { > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0{ .compatible =3D "cirrus,ep= 9312-pata" }, > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0{ /* sentinel */ } > > +}; > > +MODULE_DEVICE_TABLE(of, ep93xx_pata_of_ids); > > + > > =C2=A0static struct platform_driver ep93xx_pata_platform_driver =3D { > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0.driver =3D { > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0.name =3D DRV_NAME, > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0.of_match_table =3D ep93xx_pata_of_ids, > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0}, > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0.probe =3D ep93xx_pata_= probe, > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0.remove =3D ep93xx_pata= _remove, >=20 > MBR, Sergey