Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp8011028rwn; Wed, 14 Sep 2022 07:43:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR46FkZ5ye9H9Labt4+JkMR42EId1uoLbmVH5csJuQzTQokUbrx6S32fjy8IbTaXp4g0dac0 X-Received: by 2002:a17:902:f604:b0:172:ffa5:2ed9 with SMTP id n4-20020a170902f60400b00172ffa52ed9mr37285723plg.7.1663166612021; Wed, 14 Sep 2022 07:43:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663166612; cv=none; d=google.com; s=arc-20160816; b=y8qUzo4Ly5Fav082cXakEf3jcfsr2LRYUlXp7PDrrXHEn2UmLvi84Qum7KBYWFmX7v f11/Ckhb3dd8g1yg5foHSyDHmPLHtOa6hw8yqpqKG9pO9pSBi2Ja0OCS7cIQc0zsqLtP 35Y8+q8BMi80EDL57fzxyAVKp+CLl2bgEx4An8Bmkl3G/ENFN9aJAHhAGm0m8r3FZtbB JkTNn9DDABmjjX5m26evQ/cqrHAZJsr4s8qWnp3PbcfwqdoCxsMYf9+C5SS8TX9ICSE9 RP6AUTYkFzH6QvGcGP3zBmhQY26uFkISrgKpLtYbAlnIW2DzobH0A+9+LryhuS/oAc+j W+PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=Wfzkst+YiMJXs5sReQh7j9lQiYxOvqzMOth3P09VD2c=; b=UHJ75VUoMXcxZWMY2n8azYByza+1KFUb6RfnGxxjH96koAxfu39NLSLyh6NFWmWBT+ MnKbwrKDzyAqCv+fP9G2dw+FS7lG7JgKTOu0l2LI+mXX5nanOF61qhEhsjOwGlFrWmUd IN3dZ1JKRhySI6iPLZG0qWmCroILsEpvDK/lWJQGtaZdcrj72Pb0rvsC4or7oPOriV6v OSh7gGi3vPyvJCSpIxjnmYFNC7xDr2hzPXI5wTOaUstxcSP9yqbIRO7Ci0mkaTyVP0sk XJ2xyYmUTfKBdbcolmMWEEmdiT7/l1T9qTnimM1stw2tEAJZF0Yq40HZNgdk5Zlh+vwX vuuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=dtA+6ioo; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="itBX/aQz"; 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 l9-20020a63be09000000b0043713026b3asi15339789pgf.171.2022.09.14.07.43.19; Wed, 14 Sep 2022 07:43:32 -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=@arndb.de header.s=fm1 header.b=dtA+6ioo; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="itBX/aQz"; 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 S229681AbiINOgX (ORCPT + 99 others); Wed, 14 Sep 2022 10:36:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230073AbiINOgC (ORCPT ); Wed, 14 Sep 2022 10:36:02 -0400 Received: from wnew1-smtp.messagingengine.com (wnew1-smtp.messagingengine.com [64.147.123.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7DB55F132; Wed, 14 Sep 2022 07:35:50 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.west.internal (Postfix) with ESMTP id 8BD082B05FFC; Wed, 14 Sep 2022 10:30:33 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute3.internal (MEProxy); Wed, 14 Sep 2022 10:30:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1663165833; x=1663169433; bh=Wfzkst+YiM JXs5sReQh7j9lQiYxOvqzMOth3P09VD2c=; b=dtA+6ioovLXgpnsW7bHMriT+T8 ob6iCcULhl0DryCUFjedfRzE3xsBbdbGgadlAVQ41Et76qFRqBCEJYxqTKLHFJYl 0mJp3SooHmD8Ak+7kZ6osWjGt2E1ap29T1ijHM027l7852BmXlU6gJ8/CtVM6jBs StaP8gavbZhPuNkxDOsOw6TvXchoXrwgU8nFCxFYpRCewlGjxOdZ+RU0NGh39qKk j5pVNaEUsGKo20ThJBJF+lFh5c2oVxJcH/n6QI+HCRvCLUTI5Z446aoyLA8zyJdn wGwrIVOzAiYcS+AOxNasXtqqFx4vqYQW36WPLWoKvU4mok2sBMK9oqBlZP/Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1663165833; x=1663169433; bh=Wfzkst+YiMJXs5sReQh7j9lQiYxO vqzMOth3P09VD2c=; b=itBX/aQz+iZxcv3EEVV/ixil/kcm2odCbKteXE91FORJ F10Q6kjN0bF7iLCWnXo8b53kIL+qiogY4SmdzaSLeCOtVhgmS9WgC8pJpvxYXb4u 1luiubes8aQfEci56/Tv/RYJZM5e7WYdF0+fub403CkBQck0eJqfKkqnIDUquP7X uqVOr1oZdo29LEgjRysnLwNfGW5WJ0ZRQgk9HG8WAtYgoFuNwP4BwZTBJ1GshKse nyXTIamtSmUlGxeaofMa/5JcY+f+fxAHPhiXnRFgzQ9dmaO+4uWz4omrQcwSpRdK /8vAOWsSjAqLDrD8YU1lsMAraUppR+3uY0m91jwF1g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeduiedgkedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepvefhffeltdegheeffffhtdegvdehjedtgfekueevgfduffettedtkeekueef hedunecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 4CA84B60086; Wed, 14 Sep 2022 10:30:32 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-934-g6274855a4c-fm-20220913.002-g6274855a Mime-Version: 1.0 Message-Id: In-Reply-To: <20220914142713.29351-1-lukas.bulwahn@gmail.com> References: <20220914142713.29351-1-lukas.bulwahn@gmail.com> Date: Wed, 14 Sep 2022 16:29:22 +0200 From: "Arnd Bergmann" To: "Lukas Bulwahn" , "Linus Walleij" , "Russell King" , "Catalin Marinas" , "Will Deacon" , "Damien Le Moal" , linux-arm-kernel@lists.infradead.org, linux-ide@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] ata: clean up how architectures enable PATA_PLATFORM and PATA_OF_PLATFORM Content-Type: text/plain 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_PASS, 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 Wed, Sep 14, 2022, at 4:27 PM, Lukas Bulwahn wrote: > There are two options for platform device PATA support: > > PATA_PLATFORM: Generic platform device PATA support > PATA_OF_PLATFORM: OpenFirmware platform device PATA support > > If an architecture allows the generic platform device PATA support, it > shall select HAVE_PATA_PLATFORM. Then, Generic platform device PATA support > is available and can be selected. > > If an architecture has OpenFirmware support, which it indicates by > selecting OF, OpenFirmware platform device PATA support is available > and can be selected. > If OpenFirmware platform device PATA support is selected, then the > functionality (code files) from Generic platform device PATA support needs > to be integrated in the kernel build for the OpenFirmware platform device > PATA support to work. Select PATA_PLATFORM in PATA_OF_PLATFORM to make sure > the needed files are added in the build. > > So, architectures with OpenFirmware support, do not need to additionally > select HAVE_PATA_PLATFORM. It is only needed by architecture that want the > non-OF pata-platform module. > > Reflect this way of intended use of config symbols in the ata Kconfig and > adjust all architecture definitions. > > This follows the suggestion from Arnd Bergmann (see Link). > > Suggested-by: Arnd Bergmann > Link: > https://lore.kernel.org/all/4b33bffc-2b6d-46b4-9f1d-d18e55975a5a@www.fastmail.com/ > > Signed-off-by: Lukas Bulwahn Thanks for the follow-up, looks good. Reviewed-by: Arnd Bergmann