Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp8000389rwn; Wed, 14 Sep 2022 07:34:03 -0700 (PDT) X-Google-Smtp-Source: AA6agR4/lTVM/9BJxEM/pph2JPejsigG+Gvn8BSrp5tYlU1I+ch3V5U2+RHAe17AXuHeCvqCV5gI X-Received: by 2002:a17:907:25c9:b0:77b:a343:bd62 with SMTP id ae9-20020a17090725c900b0077ba343bd62mr14247904ejc.660.1663166043609; Wed, 14 Sep 2022 07:34:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663166043; cv=none; d=google.com; s=arc-20160816; b=yxMOTI4CUu+jIiJPwI+6blAgy6ZasDxpqECF9sBwPIbPvxKXmPgG1qGoVHfBtiNbWK 3CnCnL1GwJrj3zfd5MGWBGQ2GzvHT+zqo4JHHX7rNy2AwEGpwDB/U1BazgZ4dGs8hGCA Ws28ClhVuDIrMd5KHYx6FSfEFcRhnDpc8wSG2KruuC+sml6Z1aTWdLtU5PXMYaJchjw2 ZKj2o7+JlkM9ZGKU2pd1vuMwQ1KasXOVlT/Zwql69Q9lIfXThOqGmNVcm1Vj0U0eIDo8 fr8QbfXGsQVZajwYN2jdh8PW8/gZ1+lkvRD0wYcDuD+caLQ2SUSS46kUi/CwS8la69kV RwUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=aaOGHVVPf/iuUx0WzEqdb+jMiCVuFndRMtaL2hzurm0=; b=F4FOdCUKmqeib7rOieW7cCL8bzlUoY3vg0Bkmr8RPodKNcKQUVRhukkjoqagkYjZ7G RdU6F72WMoXSZu3dOi3ePZaRtaC5sVcUIJJNV+3n7GjHok4akk99bLAtvx63OeAMekTt +l/8jIlzaCaQZdgrE4PXnsmVbubmoklwxmmgujRZ+/FloVjV/DNmPLnGs5tlI0JJ2xXh KEhu8G5iJYTwUfktoYTLtZ5tTOLFIYvsyTeQtGUxn2g3xhvkpp8+QCO114D1yFDSdynI 9bE/WNar3lkkLiHG4FpI+czXJajbaxfQUwb3uyKApZ6GvwTaRgKnSw40btWzaHBWd2gL FGzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=N+lXa7ZU; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s24-20020a170906bc5800b0072f2e1425a3si8373825ejv.774.2022.09.14.07.33.36; Wed, 14 Sep 2022 07:34:03 -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=@gmail.com header.s=20210112 header.b=N+lXa7ZU; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229719AbiINO1t (ORCPT + 99 others); Wed, 14 Sep 2022 10:27:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229751AbiINO1l (ORCPT ); Wed, 14 Sep 2022 10:27:41 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7352E0DA; Wed, 14 Sep 2022 07:27:40 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id dv25so35084368ejb.12; Wed, 14 Sep 2022 07:27:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=aaOGHVVPf/iuUx0WzEqdb+jMiCVuFndRMtaL2hzurm0=; b=N+lXa7ZUVBz8xeKcv4IqaaZqudT/6AVP1hx9d1VIUlwoxQejUD/Jpqsev04Ln6Pay9 YBZp3CL2W5t2ak09nrCmfelPs7spnxdPN8AZVbTM3panIdS8LRF1XKK8Xol/i8pyRxQz cc3bDr8gTn/ykIN76Nz4I/Pwnkpbi2ikR+R/WtzXozcJPAgjYgyIMgp3/GXX/Q/rI9P6 pxpFSRrAwYgjsfUlcN7UrttqTGKKRM/Stp0u0wmtZEy+kEMRuTpwkoSXh3f5DRwClU40 1RqXszQx2EkOeFBhleFCHxbgbOJ5IBRXs1q13kX6SxsswotsI1ClChTm6vZeYCivwV5k WiAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=aaOGHVVPf/iuUx0WzEqdb+jMiCVuFndRMtaL2hzurm0=; b=hVcvvXmyxsT6mBikuYkJUQ3kpyYr+mygpZg81gEVtoHDI2PP8UxkOt+TPO9TiDC8Mi 0DnkZamXMZ5FaGiaW3AmoyboznykMiPxqkcD61LAzpu111u8ybb2co6TZTJXJfEAWgNM uX0tmMTtvA5TJ+RF9h2UMImXpzU0MTggh08iz3ENkOjL9jopYA6eW4d+UmRTI2uCEIvw nxiCz3y2k/0rAmOWacjR162hc7CeWadvFwi5q/5Ecji+nb69HuHU43KVDfG75bymqdCg sD1QDQZhRJMOZNRw23SyfrGGINBNTqjRRu+YF9mzUPzedn/jpbOL63AdTpW4jcXgEUoS aDlw== X-Gm-Message-State: ACgBeo07iZJlA4LJrKo2aO2c1O4bumwncgAn9/Ct32qbvyHbYGPV0fPp 81MIPWhJkNjt5ys+TaMVM6eq81qpib8= X-Received: by 2002:a17:907:74a:b0:77e:9455:b4e3 with SMTP id xc10-20020a170907074a00b0077e9455b4e3mr9492063ejb.471.1663165659025; Wed, 14 Sep 2022 07:27:39 -0700 (PDT) Received: from felia.fritz.box (200116b826cf470059b9799edefde240.dip.versatel-1u1.de. [2001:16b8:26cf:4700:59b9:799e:defd:e240]) by smtp.gmail.com with ESMTPSA id 18-20020a170906329200b007708635be05sm7661502ejw.4.2022.09.14.07.27.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Sep 2022 07:27:38 -0700 (PDT) From: Lukas Bulwahn To: Linus Walleij , Russell King , Catalin Marinas , Will Deacon , Arnd Bergmann , 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, Lukas Bulwahn Subject: [PATCH 1/2] ata: clean up how architectures enable PATA_PLATFORM and PATA_OF_PLATFORM Date: Wed, 14 Sep 2022 16:27:12 +0200 Message-Id: <20220914142713.29351-1-lukas.bulwahn@gmail.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- arch/arm/mach-versatile/Kconfig | 1 - arch/arm64/Kconfig | 1 - drivers/ata/Kconfig | 6 +++--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-versatile/Kconfig b/arch/arm/mach-versatile/Kconfig index 2ef226194c3a..b1519b4dc03a 100644 --- a/arch/arm/mach-versatile/Kconfig +++ b/arch/arm/mach-versatile/Kconfig @@ -256,7 +256,6 @@ menuconfig ARCH_VEXPRESS select GPIOLIB select HAVE_ARM_SCU if SMP select HAVE_ARM_TWD if SMP - select HAVE_PATA_PLATFORM select CLK_ICST select NO_IOPORT_MAP select PLAT_VERSATILE diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 51f3f07c3efd..036bd67e662e 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -194,7 +194,6 @@ config ARM64 select HAVE_IRQ_TIME_ACCOUNTING select HAVE_KVM select HAVE_NMI - select HAVE_PATA_PLATFORM select HAVE_PERF_EVENTS select HAVE_PERF_REGS select HAVE_PERF_USER_STACK_DUMP diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig index 1c9f4fb2595d..c93d97455744 100644 --- a/drivers/ata/Kconfig +++ b/drivers/ata/Kconfig @@ -1102,8 +1102,7 @@ config PATA_PCMCIA If unsure, say N. config PATA_PLATFORM - tristate "Generic platform device PATA support" - depends on EXPERT || PPC || HAVE_PATA_PLATFORM + tristate "Generic platform device PATA support" if EXPERT || HAVE_PATA_PLATFORM help This option enables support for generic directly connected ATA devices commonly found on embedded systems. @@ -1112,7 +1111,8 @@ config PATA_PLATFORM config PATA_OF_PLATFORM tristate "OpenFirmware platform device PATA support" - depends on PATA_PLATFORM && OF + depends on OF + select PATA_PLATFORM help This option enables support for generic directly connected ATA devices commonly found on embedded systems with OpenFirmware -- 2.17.1