From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5E3A613A863; Fri, 6 Dec 2024 15:17:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733498228; cv=none; b=BOT9aQfM80oCPG2ut7/xcoWBzC0FuX7YLVSDAgSQZm81fwu3tzYC4JT/3JZbtHqJEaMo9QJkK5Wj41uOQz3grgEnqKDnxWGKh4r4E5efOSvCtiSzkZlWAppMlHKSd8r6pFgRzZOxJyBqD3OFnDuzosQAxioySZhzAX9ZmjEABcQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733498228; c=relaxed/simple; bh=7Q2e6COPFczLmFb0WiOFrQKtjcZ+EtdCnZ59T9s/wNw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=M8ER5ukgp6flD2iLQig7cGsUqkn2B6HM+hQMByyFJbzWEHJycvXyWtkmgAf+6h7JRimAfVwdMhYmXLmGOKYKBXB0FllZJLJXMyHDBYjw6mWDlJpgvlkHtfgMLXC6/3Csouwk4ahKo4FOyHN4aEKpFEgornRufURSkQu4D6eG+1A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FgYkdHtR; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="FgYkdHtR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C082EC4CED1; Fri, 6 Dec 2024 15:17:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1733498228; bh=7Q2e6COPFczLmFb0WiOFrQKtjcZ+EtdCnZ59T9s/wNw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FgYkdHtRxoEeG0UyeIgmRvEqVkjpn2v0rtxwy+V5BcxSgoxTJlv9671gFxQpXJKbP XJzHAn83DV3sYR4g2VPRN71LpiNt3W9R607bP50wyfC2/zYmHIUYE4qYEKzH6+DKaT +CUNJZQe67OyIJtuTvP19wMztbeaaEzctfiekl5A= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Anjelique Melendez , Johan Hovold , Konrad Dybcio , Linus Walleij Subject: [PATCH 6.6 491/676] pinctrl: qcom: spmi: fix debugfs drive strength Date: Fri, 6 Dec 2024 15:35:10 +0100 Message-ID: <20241206143712.538830150@linuxfoundation.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241206143653.344873888@linuxfoundation.org> References: <20241206143653.344873888@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Johan Hovold commit 6bc0ebfb1d920f13c522545f114cdabb49e9408a upstream. Commit 723e8462a4fe ("pinctrl: qcom: spmi-gpio: Fix the GPIO strength mapping") fixed a long-standing issue in the Qualcomm SPMI PMIC gpio driver which had the 'low' and 'high' drive strength settings switched but failed to update the debugfs interface which still gets this wrong. Fix the debugfs code so that the exported values match the hardware settings. Note that this probably means that most devicetrees that try to describe the firmware settings got this wrong if the settings were derived from debugfs. Before the above mentioned commit the settings would have actually matched the firmware settings even if they were described incorrectly, but now they are inverted. Fixes: 723e8462a4fe ("pinctrl: qcom: spmi-gpio: Fix the GPIO strength mapping") Fixes: eadff3024472 ("pinctrl: Qualcomm SPMI PMIC GPIO pin controller driver") Cc: Anjelique Melendez Cc: stable@vger.kernel.org # 3.19 Signed-off-by: Johan Hovold Reviewed-by: Konrad Dybcio Link: https://lore.kernel.org/20241025121622.1496-1-johan+linaro@kernel.org Signed-off-by: Linus Walleij Signed-off-by: Greg Kroah-Hartman --- drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c +++ b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c @@ -667,7 +667,7 @@ static void pmic_gpio_config_dbg_show(st "push-pull", "open-drain", "open-source" }; static const char *const strengths[] = { - "no", "high", "medium", "low" + "no", "low", "medium", "high" }; pad = pctldev->desc->pins[pin].drv_data;