Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4821820iob; Mon, 9 May 2022 02:24:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0Cq+ihTt40Rql0VJpn1CwRyRMDVD1qZ2Hb1eJ9w+SMFz9M3PpmPj7bhnpWL0YNfDzcWSd X-Received: by 2002:a17:90b:1bc4:b0:1dc:2133:2e01 with SMTP id oa4-20020a17090b1bc400b001dc21332e01mr17429355pjb.221.1652088261287; Mon, 09 May 2022 02:24:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652088261; cv=none; d=google.com; s=arc-20160816; b=wwDiAVNpy7y8Dw5c49v54Ydg82oXYSEMLnJT8hcHygyU9LEVvMmglwQbT09NYiJ83+ H1nTC2Z4AhbiUF7ng7a7PAfHdmZp3z8wIjdZMS5JYixJj3mxJ8NOMzUIbDz1DmBTyyQK zcc2VlJgpjZc1jwhAPd8D//IGCftuGLcXNuxSxu8fNAdpvi/Hax1ve1HWkagQblgKcDN TAZ+v1qDp3FTFYtajZoprHAZk5ELrwg+BTwsBY/v/tV8bCatq1PzB5O5OMoMxETKWBXm m2eocfaol4HZTE+Rc2u9y8QI8bg8Ax0LQ9NjSupLxcyD4AeLrL8rvvBHZP12A0ZXZUvy Y4Nw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=kk55KI8EN90ZCec9cFhf8GjA6X3z7aiKIQQyAmS6pGA=; b=HweK25FLLpgaOu49VUsn+lMAZYRPojlb/jYOtDY2mwUr5oDv4vywX9gROI9PJJ04x5 deb+BDhxfRSiZb+y0zBHdJkvqb6bBewoKtIisI1d/Z58kWj8HNOmtvQW4F0JJ149vM2l ZsP2fmDGho+J7OJ1hMA496bFUMAWRP7O9jtoclkudy1tlG84HnKGlY3SLlcfcIp4Npjd ZWWMwenh1HWEAmppuepIrMx8OFHZ2nX4pkYovArc4JJyNxWG4s8hnrozyJOAGw/nIMJS RFrxLTQAhaVZ0mHumwhWEHUjPEZpsxvN+uqAcRj5UexSY+kuS1hTojC/h9i47NN9fLvx jgag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=04rouVzI; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id md14-20020a17090b23ce00b001bd14e030b0si13148939pjb.136.2022.05.09.02.24.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 02:24:21 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=04rouVzI; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 676B220D569; Mon, 9 May 2022 02:14:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354977AbiEDRDp (ORCPT + 99 others); Wed, 4 May 2022 13:03:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354591AbiEDQ6x (ORCPT ); Wed, 4 May 2022 12:58:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1F001BE84; Wed, 4 May 2022 09:50:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4D782617C4; Wed, 4 May 2022 16:50:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8E0D2C385A5; Wed, 4 May 2022 16:50:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1651683041; bh=PP4UbLFNaqvRyLfqB4LcjTAFWDOuH+kdthIojSC+prQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=04rouVzIz/KmsFlAXFB4VIxzvZFMyFF8KAOpBAnA6a6pQclmjohsKkB8KQ+d8H8jT ay2UDVp4V20S67BG9k6O8iSi0bhCDHeDuYR9iAkk5H9j3aZp1bRY5zNfIAeRoLn/1z /cHroRbbksSgHAS6mRzRsNhqpHMa+6gUg+HqlVro= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Necip Fazil Yildiran , Krzysztof Kozlowski , Arnd Bergmann Subject: [PATCH 5.10 032/129] pinctrl: samsung: fix missing GPIOLIB on ARM64 Exynos config Date: Wed, 4 May 2022 18:43:44 +0200 Message-Id: <20220504153023.836662281@linuxfoundation.org> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220504153021.299025455@linuxfoundation.org> References: <20220504153021.299025455@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 From: Krzysztof Kozlowski commit ac875df4d854ab13d9c4af682a1837a1214fecec upstream. The Samsung pinctrl drivers depend on OF_GPIO, which is part of GPIOLIB. ARMv7 Exynos platform selects GPIOLIB and Samsung pinctrl drivers. ARMv8 Exynos selects only the latter leading to possible wrong configuration on ARMv8 build: WARNING: unmet direct dependencies detected for PINCTRL_EXYNOS Depends on [n]: PINCTRL [=y] && OF_GPIO [=n] && (ARCH_EXYNOS [=y] || ARCH_S5PV210 || COMPILE_TEST [=y]) Selected by [y]: - ARCH_EXYNOS [=y] Always select the GPIOLIB from the Samsung pinctrl drivers to fix the issue. This requires removing of OF_GPIO dependency (to avoid recursive dependency), so add dependency on OF for COMPILE_TEST cases. Reported-by: Necip Fazil Yildiran Fixes: eed6b3eb20b9 ("arm64: Split out platform options to separate Kconfig") Cc: Signed-off-by: Krzysztof Kozlowski Reviewed-by: Arnd Bergmann Link: https://lore.kernel.org/r/20220420141407.470955-1-krzysztof.kozlowski@linaro.org Signed-off-by: Greg Kroah-Hartman --- arch/arm/mach-exynos/Kconfig | 1 - drivers/pinctrl/samsung/Kconfig | 11 ++++------- 2 files changed, 4 insertions(+), 8 deletions(-) --- a/arch/arm/mach-exynos/Kconfig +++ b/arch/arm/mach-exynos/Kconfig @@ -20,7 +20,6 @@ menuconfig ARCH_EXYNOS select EXYNOS_PMU select EXYNOS_SROM select EXYNOS_PM_DOMAINS if PM_GENERIC_DOMAINS - select GPIOLIB select HAVE_ARM_ARCH_TIMER if ARCH_EXYNOS5 select HAVE_ARM_SCU if SMP select HAVE_S3C2410_I2C if I2C --- a/drivers/pinctrl/samsung/Kconfig +++ b/drivers/pinctrl/samsung/Kconfig @@ -4,14 +4,13 @@ # config PINCTRL_SAMSUNG bool - depends on OF_GPIO + select GPIOLIB select PINMUX select PINCONF config PINCTRL_EXYNOS bool "Pinctrl common driver part for Samsung Exynos SoCs" - depends on OF_GPIO - depends on ARCH_EXYNOS || ARCH_S5PV210 || COMPILE_TEST + depends on ARCH_EXYNOS || ARCH_S5PV210 || (COMPILE_TEST && OF) select PINCTRL_SAMSUNG select PINCTRL_EXYNOS_ARM if ARM && (ARCH_EXYNOS || ARCH_S5PV210) select PINCTRL_EXYNOS_ARM64 if ARM64 && ARCH_EXYNOS @@ -26,12 +25,10 @@ config PINCTRL_EXYNOS_ARM64 config PINCTRL_S3C24XX bool "Samsung S3C24XX SoC pinctrl driver" - depends on OF_GPIO - depends on ARCH_S3C24XX || COMPILE_TEST + depends on ARCH_S3C24XX || (COMPILE_TEST && OF) select PINCTRL_SAMSUNG config PINCTRL_S3C64XX bool "Samsung S3C64XX SoC pinctrl driver" - depends on OF_GPIO - depends on ARCH_S3C64XX || COMPILE_TEST + depends on ARCH_S3C64XX || (COMPILE_TEST && OF) select PINCTRL_SAMSUNG