Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp484304rwb; Mon, 26 Sep 2022 01:28:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6ELuaN9IoNS7gMXdRRTfG+l+CWsPNvz530hvnrZV7YAcwzXYPy4H+8zMiGPaTirSCB1ccP X-Received: by 2002:a17:902:ea11:b0:178:1c19:b0f5 with SMTP id s17-20020a170902ea1100b001781c19b0f5mr20737050plg.152.1664180922055; Mon, 26 Sep 2022 01:28:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664180922; cv=none; d=google.com; s=arc-20160816; b=nw43DdmFg7/QiD86QtljeWyun1YG8jJljsbyoWJya5f+86Nu72DROLNaGrQhP5LFK2 An18FebC7a05LD4gXpKDJ6MWlbLTYNzNXzkEWv2M3iTHewsewMIdvcvdAz+3Ud+lGDgU EZNd2/gtn8TOsE4ZZTePbSAcSu6BS6TsBpd5fzc9V5hwTnVWu35kZbHU1/2HSCJU+7Mi MLoanDmDM7c0nRhp36M4T4Qr/jsjGBlb82fkQ6/INcSruEdMW1zgQSrUsoZrzW2CrkzU 9z59diu5eOW5iUrTJW6E+/SkgbS26ix0TWI7FklIKHgGOXCLt7rmyGhif9vl4wDrqTUQ w4YQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:reply-to:from:references:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=tNtJP8zipnj1ef+s9YICvjgBx1SjOdxJH6obm/r5bjE=; b=xpXvKiyijWPi4vKQ1SximMIGBs1Yg+nmoT0viqzDPfmPWllBQpokMt6EyPwzb7dBz3 FhOPwI1n9DzTyEMUz/96T5F+kIGpuUOB3P4pvQDyKzFAvDLFOYUT+lbHJ05Ikwylkp5+ yKJVWYhsOuKxwbGqKc2g0Q66Z7aDp0mpCj2Z/7XTfEYjNVQCMujxVDgkiCOtCemNM3CI vY9mzLF3Un0sMOel+Hy886dbf+aJj5oK/D8NE28Bp1uQQBNx1sfE+xXArbye4NH6DQDy mGFd8AJiXhkCxdylOt8X/pzvDq155LoQQHzcYbtksK5KilsvsK5pxNIcTF4R/YuSJA3R vH2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=opxzaj2Q; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e17-20020a63d951000000b00439c6a5c3c4si12366629pgj.533.2022.09.26.01.28.30; Mon, 26 Sep 2022 01:28:42 -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=@linaro.org header.s=google header.b=opxzaj2Q; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233581AbiIZIOU (ORCPT + 99 others); Mon, 26 Sep 2022 04:14:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229613AbiIZIOS (ORCPT ); Mon, 26 Sep 2022 04:14:18 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDB9122B0A for ; Mon, 26 Sep 2022 01:14:14 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id t14so8912689wrx.8 for ; Mon, 26 Sep 2022 01:14:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:organization:reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date; bh=tNtJP8zipnj1ef+s9YICvjgBx1SjOdxJH6obm/r5bjE=; b=opxzaj2Q7LsAXGuaZckmOktf70B2CaAKv+pPLMoaHd9EriMSradiKPuQg8T99Qxrlz WHeOxPMQOtZ2ocgykV/3Z/IE8NI+qqe3bi/w4setrYYGg/PGmxRAh7fkEgnLYa4mJqxT UEaoA6tmsXoqrOHnSIothCjowgd72KJdvO34bsHJFfgpQmSw2R7c6W+u0xiqBSQQs9fs nYorJzMbX11UkIxvL5qoKtscq8nlu3MAwPms0KIKNERu/nZ0fz73BS598QKYUpwsqwGr KSy5PFw6WtZwIFasEk3ziT5sg2hzJIowBBzGUQYUmzEO6s9FKkR2T6kP3BxLRhs8ZKdq K5YQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:organization:reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date; bh=tNtJP8zipnj1ef+s9YICvjgBx1SjOdxJH6obm/r5bjE=; b=Px5GcFvHYQj1eXxC+Sxu7LDSTDOQmN2nA6s4IzCkwg/owrQal+F8u05eJGBACUcRAI nO8FnEaBf3P4L5l043a1vccBE6tfZf9nkl+9Y2gRACOYN9MTa3Ip82+SrGAgOWwuoC+V uimeZ8YjfvvfXnqpQAEQLevJ2Up74OcrayK0E5tn3vIix9susyRSKTTOLhrHIPeqoRSq icxrp61GTnt8rgHY5Z9n89OYWkz1bXkm52fEsnwDDgCMREjG2NXfMPjaOUV2CHV0KPc+ AnG0GilzZV87JWXS263X5wGDkpENerGXJIAbqOeKkIz2mVBKuWkZ4f3pde9oKxVbVtnh /rag== X-Gm-Message-State: ACrzQf0t7YSnjYWm3G7J3zwFpx8fOgWSRRw7563wjegaYK1FJx4+Fmrz oGF+CxzoH64o+NBCcyIecmA5/Q== X-Received: by 2002:a05:6000:713:b0:22c:a1f0:5161 with SMTP id bs19-20020a056000071300b0022ca1f05161mr3205008wrb.104.1664180053422; Mon, 26 Sep 2022 01:14:13 -0700 (PDT) Received: from [192.168.27.65] (home.beaume.starnux.net. [82.66.176.246]) by smtp.gmail.com with ESMTPSA id w10-20020a05600c474a00b003b4ac05a8a4sm12775102wmo.27.2022.09.26.01.14.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Sep 2022 01:14:12 -0700 (PDT) Message-ID: Date: Mon, 26 Sep 2022 10:14:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH] pinctrl: qcom: restrict drivers per ARM/ARM64 Content-Language: en-US To: Krzysztof Kozlowski , Bjorn Andersson , Andy Gross , Konrad Dybcio , Linus Walleij , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220925091908.34836-1-krzysztof.kozlowski@linaro.org> From: Neil Armstrong Reply-To: neil.armstrong@linaro.org Organization: Linaro Developer Services In-Reply-To: <20220925091908.34836-1-krzysztof.kozlowski@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 25/09/2022 11:19, Krzysztof Kozlowski wrote: > There is no point to allow selecting pin-controller drivers for Qualcomm > ARMv7 SoCs when building ARM64 kernel, and vice versa. This makes > kernel configuration more difficult as many do not remember the Qualcomm > SoCs. There won't be a single image for ARMv7 and ARMv8/9 SoCs, so no > features/options are lost. > > Signed-off-by: Krzysztof Kozlowski > --- > drivers/pinctrl/qcom/Kconfig | 38 ++++++++++++++++++++++++++++++++++++ > 1 file changed, 38 insertions(+) > > diff --git a/drivers/pinctrl/qcom/Kconfig b/drivers/pinctrl/qcom/Kconfig > index 2961b5eb8e10..bb1b4dd440d0 100644 > --- a/drivers/pinctrl/qcom/Kconfig > +++ b/drivers/pinctrl/qcom/Kconfig > @@ -15,6 +15,7 @@ config PINCTRL_MSM > config PINCTRL_APQ8064 > tristate "Qualcomm APQ8064 pin controller driver" > depends on OF > + depends on ARM || COMPILE_TEST > depends on PINCTRL_MSM > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -23,6 +24,7 @@ config PINCTRL_APQ8064 > config PINCTRL_APQ8084 > tristate "Qualcomm APQ8084 pin controller driver" > depends on OF > + depends on ARM || COMPILE_TEST > depends on PINCTRL_MSM > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -31,6 +33,7 @@ config PINCTRL_APQ8084 > config PINCTRL_IPQ4019 > tristate "Qualcomm IPQ4019 pin controller driver" > depends on OF > + depends on ARM || COMPILE_TEST > depends on PINCTRL_MSM > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -39,6 +42,7 @@ config PINCTRL_IPQ4019 > config PINCTRL_IPQ8064 > tristate "Qualcomm IPQ8064 pin controller driver" > depends on OF > + depends on ARM || COMPILE_TEST > depends on PINCTRL_MSM > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -47,6 +51,7 @@ config PINCTRL_IPQ8064 > config PINCTRL_IPQ8074 > tristate "Qualcomm Technologies, Inc. IPQ8074 pin controller driver" > depends on OF > + depends on ARM64 || COMPILE_TEST > depends on PINCTRL_MSM > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for > @@ -57,6 +62,7 @@ config PINCTRL_IPQ8074 > config PINCTRL_IPQ6018 > tristate "Qualcomm Technologies, Inc. IPQ6018 pin controller driver" > depends on OF > + depends on ARM64 || COMPILE_TEST > depends on PINCTRL_MSM > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for > @@ -67,6 +73,7 @@ config PINCTRL_IPQ6018 > config PINCTRL_MSM8226 > tristate "Qualcomm 8226 pin controller driver" > depends on OF > + depends on ARM || COMPILE_TEST > depends on PINCTRL_MSM > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -76,6 +83,7 @@ config PINCTRL_MSM8226 > config PINCTRL_MSM8660 > tristate "Qualcomm 8660 pin controller driver" > depends on OF > + depends on ARM || COMPILE_TEST > depends on PINCTRL_MSM > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -84,6 +92,7 @@ config PINCTRL_MSM8660 > config PINCTRL_MSM8960 > tristate "Qualcomm 8960 pin controller driver" > depends on OF > + depends on ARM || COMPILE_TEST > depends on PINCTRL_MSM > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -100,6 +109,7 @@ config PINCTRL_MDM9607 > config PINCTRL_MDM9615 > tristate "Qualcomm 9615 pin controller driver" > depends on OF > + depends on ARM || COMPILE_TEST > depends on PINCTRL_MSM > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -108,6 +118,7 @@ config PINCTRL_MDM9615 > config PINCTRL_MSM8X74 > tristate "Qualcomm 8x74 pin controller driver" > depends on OF > + depends on ARM || COMPILE_TEST > depends on PINCTRL_MSM > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -116,6 +127,7 @@ config PINCTRL_MSM8X74 > config PINCTRL_MSM8909 > tristate "Qualcomm 8909 pin controller driver" > depends on OF > + depends on ARM || COMPILE_TEST > depends on PINCTRL_MSM > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -132,6 +144,7 @@ config PINCTRL_MSM8916 > config PINCTRL_MSM8953 > tristate "Qualcomm 8953 pin controller driver" > depends on OF > + depends on ARM64 || COMPILE_TEST > depends on PINCTRL_MSM > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -152,6 +165,7 @@ config PINCTRL_MSM8976 > config PINCTRL_MSM8994 > tristate "Qualcomm 8994 pin controller driver" > depends on OF > + depends on ARM64 || COMPILE_TEST > depends on PINCTRL_MSM > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -161,6 +175,7 @@ config PINCTRL_MSM8994 > config PINCTRL_MSM8996 > tristate "Qualcomm MSM8996 pin controller driver" > depends on OF > + depends on ARM64 || COMPILE_TEST > depends on PINCTRL_MSM > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -169,6 +184,7 @@ config PINCTRL_MSM8996 > config PINCTRL_MSM8998 > tristate "Qualcomm MSM8998 pin controller driver" > depends on OF > + depends on ARM64 || COMPILE_TEST > depends on PINCTRL_MSM > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -177,6 +193,7 @@ config PINCTRL_MSM8998 > config PINCTRL_QCM2290 > tristate "Qualcomm QCM2290 pin controller driver" > depends on OF > + depends on ARM64 || COMPILE_TEST > depends on PINCTRL_MSM > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -185,6 +202,7 @@ config PINCTRL_QCM2290 > config PINCTRL_QCS404 > tristate "Qualcomm QCS404 pin controller driver" > depends on OF > + depends on ARM64 || COMPILE_TEST > depends on PINCTRL_MSM > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -232,6 +250,7 @@ config PINCTRL_QCOM_SSBI_PMIC > config PINCTRL_SC7180 > tristate "Qualcomm Technologies Inc SC7180 pin controller driver" > depends on OF > + depends on ARM64 || COMPILE_TEST > depends on PINCTRL_MSM > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -241,6 +260,7 @@ config PINCTRL_SC7180 > config PINCTRL_SC7280 > tristate "Qualcomm Technologies Inc SC7280 pin controller driver" > depends on OF > + depends on ARM64 || COMPILE_TEST > depends on PINCTRL_MSM > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -250,6 +270,7 @@ config PINCTRL_SC7280 > config PINCTRL_SC7280_LPASS_LPI > tristate "Qualcomm Technologies Inc SC7280 LPASS LPI pin controller driver" > depends on GPIOLIB > + depends on ARM64 || COMPILE_TEST > depends on PINCTRL_LPASS_LPI > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -259,6 +280,7 @@ config PINCTRL_SC7280_LPASS_LPI > config PINCTRL_SC8180X > tristate "Qualcomm Technologies Inc SC8180x pin controller driver" > depends on (OF || ACPI) > + depends on ARM64 || COMPILE_TEST > depends on PINCTRL_MSM > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -268,6 +290,7 @@ config PINCTRL_SC8180X > config PINCTRL_SC8280XP > tristate "Qualcomm Technologies Inc SC8280xp pin controller driver" > depends on OF > + depends on ARM64 || COMPILE_TEST > depends on PINCTRL_MSM > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -277,6 +300,7 @@ config PINCTRL_SC8280XP > config PINCTRL_SDM660 > tristate "Qualcomm Technologies Inc SDM660 pin controller driver" > depends on OF > + depends on ARM64 || COMPILE_TEST > depends on PINCTRL_MSM > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -286,6 +310,7 @@ config PINCTRL_SDM660 > config PINCTRL_SDM845 > tristate "Qualcomm Technologies Inc SDM845 pin controller driver" > depends on (OF || ACPI) > + depends on ARM64 || COMPILE_TEST > depends on PINCTRL_MSM > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -295,6 +320,7 @@ config PINCTRL_SDM845 > config PINCTRL_SDX55 > tristate "Qualcomm Technologies Inc SDX55 pin controller driver" > depends on OF > + depends on ARM || COMPILE_TEST > depends on PINCTRL_MSM > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -304,6 +330,7 @@ config PINCTRL_SDX55 > config PINCTRL_SM6115 > tristate "Qualcomm Technologies Inc SM6115,SM4250 pin controller driver" > depends on GPIOLIB && OF > + depends on ARM64 || COMPILE_TEST > depends on PINCTRL_MSM > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -313,6 +340,7 @@ config PINCTRL_SM6115 > config PINCTRL_SM6125 > tristate "Qualcomm Technologies Inc SM6125 pin controller driver" > depends on OF > + depends on ARM64 || COMPILE_TEST > depends on PINCTRL_MSM > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -322,6 +350,7 @@ config PINCTRL_SM6125 > config PINCTRL_SM6350 > tristate "Qualcomm Technologies Inc SM6350 pin controller driver" > depends on GPIOLIB && OF > + depends on ARM64 || COMPILE_TEST > depends on PINCTRL_MSM > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -331,6 +360,7 @@ config PINCTRL_SM6350 > config PINCTRL_SM6375 > tristate "Qualcomm Technologies Inc SM6375 pin controller driver" > depends on GPIOLIB && OF > + depends on ARM64 || COMPILE_TEST > depends on PINCTRL_MSM > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -340,6 +370,7 @@ config PINCTRL_SM6375 > config PINCTRL_SDX65 > tristate "Qualcomm Technologies Inc SDX65 pin controller driver" > depends on GPIOLIB && OF > + depends on ARM || COMPILE_TEST > depends on PINCTRL_MSM > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -349,6 +380,7 @@ config PINCTRL_SDX65 > config PINCTRL_SM8150 > tristate "Qualcomm Technologies Inc SM8150 pin controller driver" > depends on OF > + depends on ARM64 || COMPILE_TEST > depends on PINCTRL_MSM > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -358,6 +390,7 @@ config PINCTRL_SM8150 > config PINCTRL_SM8250 > tristate "Qualcomm Technologies Inc SM8250 pin controller driver" > depends on OF > + depends on ARM64 || COMPILE_TEST > depends on PINCTRL_MSM > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -367,6 +400,7 @@ config PINCTRL_SM8250 > config PINCTRL_SM8250_LPASS_LPI > tristate "Qualcomm Technologies Inc SM8250 LPASS LPI pin controller driver" > depends on GPIOLIB > + depends on ARM64 || COMPILE_TEST > depends on PINCTRL_LPASS_LPI > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -375,6 +409,7 @@ config PINCTRL_SM8250_LPASS_LPI > > config PINCTRL_SM8350 > tristate "Qualcomm Technologies Inc SM8350 pin controller driver" > + depends on ARM64 || COMPILE_TEST > depends on PINCTRL_MSM > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -384,6 +419,7 @@ config PINCTRL_SM8350 > config PINCTRL_SM8450 > tristate "Qualcomm Technologies Inc SM8450 pin controller driver" > depends on GPIOLIB && OF > + depends on ARM64 || COMPILE_TEST > depends on PINCTRL_MSM > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -393,6 +429,7 @@ config PINCTRL_SM8450 > config PINCTRL_SM8450_LPASS_LPI > tristate "Qualcomm Technologies Inc SM8450 LPASS LPI pin controller driver" > depends on GPIOLIB > + depends on ARM64 || COMPILE_TEST > depends on PINCTRL_LPASS_LPI > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the > @@ -402,6 +439,7 @@ config PINCTRL_SM8450_LPASS_LPI > config PINCTRL_SC8280XP_LPASS_LPI > tristate "Qualcomm Technologies Inc SC8280XP LPASS LPI pin controller driver" > depends on GPIOLIB > + depends on ARM64 || COMPILE_TEST > depends on PINCTRL_LPASS_LPI > help > This is the pinctrl, pinmux, pinconf and gpiolib driver for the Reviewed-by: Neil Armstrong