Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp185495rwb; Thu, 6 Oct 2022 16:47:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM64R7PIM3yjt3YBOt+4i81rRx5sytwLL3o1V9IhE/0iAUP/nN9nZnz6KJ7Gy9SKD+1XLeQg X-Received: by 2002:a63:5547:0:b0:456:c63b:7139 with SMTP id f7-20020a635547000000b00456c63b7139mr1987437pgm.179.1665100028369; Thu, 06 Oct 2022 16:47:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665100028; cv=none; d=google.com; s=arc-20160816; b=JIvY3lksgHSAqFBneMXmjas+W/1QJxAGtzJisApkJTryyabkR7egimyWZEtF6n7MYP 31+7Umy0BF3We9f+WwL82g8FKF0SJjw2vpVyAh19oC0qzzGsUiRw8nktJEHnaYmU0u98 CWA2jCRK/NJalghJmg3zGGWDx1YuOs2C2rScFLlsBA57SnUqxDqE2cJLhUo1dHyxaF8z 9oFIczeqbg/hB/FgpO9CVkKYoPLFy+XCYN201hOhRbeCZV4YVPeSO7tbL8MH4GD++7uD i89zcWUHgh4dY4iXhpSrfAeR7WFAGCcGeMhrXxIuf3M7G6kV15FkfIfPt4i8slLh4wDX WwSQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+Xo/G55EiERjQPHhle1qrOHDFbfvYNh2DEdV62/lG6s=; b=LyXltdIWwd57mqqZLhgn2BaCK/k2DUxFgjKLsoXdctex8irvneJ3A+viJN6VAUBU0X +n6I3uUBUFN+j2yQfa8SVPy46H3YN2EZc6fAWSHb7Bmryo/rf7QHkvNtgYq0riM/ShMT UL0qqZOZXoRFN5lLvGeiUDFanhb7oFmLYUHG7zZiYkcK6B8b618aLKV4y2Ku68hjo7fO iawgs7BeHfr5yXFFas6yMsm8te6HvaXEx3jzB8Hm20imAV1tDfPi2Qdnm1MCS70QRbWR F3snZ0aHGM4GFP5R0+Nc73Ud6X5Yg3R6KL7B66m1Hf0MVTz+L6GCkvKu6/tZSso75WMu Y/UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=fO1a8EP+; 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 5-20020a630e45000000b004085af5007bsi930252pgo.428.2022.10.06.16.45.28; Thu, 06 Oct 2022 16:47:08 -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=fO1a8EP+; 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 S232195AbiJFXWi (ORCPT + 99 others); Thu, 6 Oct 2022 19:22:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232273AbiJFXWc (ORCPT ); Thu, 6 Oct 2022 19:22:32 -0400 Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0E5FCD5EC; Thu, 6 Oct 2022 16:22:31 -0700 (PDT) Received: by mail-il1-x130.google.com with SMTP id r20so1750633ilt.11; Thu, 06 Oct 2022 16:22:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=+Xo/G55EiERjQPHhle1qrOHDFbfvYNh2DEdV62/lG6s=; b=fO1a8EP+HwgtYlc2HlxT7DHN2H5u3ogQw53bVBfZ0MCCmTM4M7n3ijhjF3iXjC2Fmj um7eRWaPvodm7yT4rstLUHvZHL+BmLvRf3YWRUwORCzFe5pIJFUcamH6S8wWd9GlWiQ1 K7NIt0peEuxBmi2QXDd0MtjkkVMu1dMD6PvH4jG7xMtYENIr/PGlvPaBniJy38N0evz9 BzONwy3aKn7t/L5FSZGN7tELjllXjg5yhhS83KeOJXYHzogEvj9Wd8aAW7j5RSY706dL R9qBlmTOOksvZP/jyIy7b5W0pb9Wy4BJkv9rC/2rD+TBThZNAPZPONANRshsznc44zWF vdng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=+Xo/G55EiERjQPHhle1qrOHDFbfvYNh2DEdV62/lG6s=; b=LNGK3ru9+MrfRSRZbe2IJMjuHsHuenVtLMwyQiHHSctP/Db/RBjpM0l3tyeXwe7Waa xhhdIAuTOm5XPo8mm3MHzj0vJFQYNooqBM1skAfkvZybCKYddmKExdq/kYgKR46qsjy9 Cx360quloJPPZcjXefXoXciofndMFLiyvDiiGdrFcCcmdsviCFXK8DFUdyHxROcZVU4L b4zelFtpQjkQI4W58gWbFElNLwPtLvRqewBz4e5FZCBtca6ahAKpF+UI9bqqP1woDKPD qUQsbEgBvOw3y2Btbu0jy3xOOzbunND0Z1HcnpVQfBtgx9ggnqFXprLUumBVhLM7PdDj mSfg== X-Gm-Message-State: ACrzQf0xTU8nUJpZr2eAoYcFfPDt40C9UhfJ2s3Mmwnugf9vkg5wGQJQ Ys0MWO14C2qyePY+aJc8BAbeUWQqM/5rDA== X-Received: by 2002:a05:6e02:19cd:b0:2fa:22ce:5c05 with SMTP id r13-20020a056e0219cd00b002fa22ce5c05mr910900ill.305.1665098550965; Thu, 06 Oct 2022 16:22:30 -0700 (PDT) Received: from localhost ([2607:fea8:a2e2:2d00::d5cc]) by smtp.gmail.com with UTF8SMTPSA id a10-20020a027a0a000000b003627dc2a94esm273820jac.96.2022.10.06.16.22.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Oct 2022 16:22:30 -0700 (PDT) From: Richard Acayan To: linux-arm-msm@vger.kernel.org Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Richard Acayan , Lee Jones , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Subject: [PATCH v8 2/3] pinctrl: qcom: do not reinitialize gpio valid mask Date: Thu, 6 Oct 2022 19:22:18 -0400 Message-Id: <20221006232219.37505-3-mailingradian@gmail.com> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221006232219.37505-1-mailingradian@gmail.com> References: <20221006232219.37505-1-mailingradian@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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 It may be necessary for some devices to specify reserved gpios in the device-specific DTS, in addition to the reserved gpios common to all devices with a given SoC. Remove this bitmap_fill() call so that the settings applied to the gpio valid mask by DTS are not overridden by the driver's reserved gpios. Signed-off-by: Richard Acayan --- drivers/pinctrl/qcom/pinctrl-msm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinctrl-msm.c index a2abfe987ab1..f697e9f64360 100644 --- a/drivers/pinctrl/qcom/pinctrl-msm.c +++ b/drivers/pinctrl/qcom/pinctrl-msm.c @@ -687,9 +687,8 @@ static int msm_gpio_init_valid_mask(struct gpio_chip *gc, const int *reserved = pctrl->soc->reserved_gpios; u16 *tmp; - /* Driver provided reserved list overrides DT and ACPI */ + /* Driver provided reserved list overrides other settings here */ if (reserved) { - bitmap_fill(valid_mask, ngpios); for (i = 0; reserved[i] >= 0; i++) { if (i >= ngpios || reserved[i] >= ngpios) { dev_err(pctrl->dev, "invalid list of reserved GPIOs\n"); -- 2.38.0