From patchwork Sun Aug 7 12:26:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Molly Sophia X-Patchwork-Id: 12938148 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D8F58C25B0C for ; Sun, 7 Aug 2022 12:27:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234057AbiHGM1P (ORCPT ); Sun, 7 Aug 2022 08:27:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234053AbiHGM1N (ORCPT ); Sun, 7 Aug 2022 08:27:13 -0400 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69555B7FA; Sun, 7 Aug 2022 05:27:12 -0700 (PDT) Received: by mail-pg1-x52a.google.com with SMTP id f65so6336051pgc.12; Sun, 07 Aug 2022 05:27:12 -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; bh=8zU84gQmE6XXoGBx6p/jfGHY5q82lsww29jgFqcrpdo=; b=jXMHDp9wifXmiAPmpRE+z/oUm/JwLrA/lfAcSepkyoy2SDwMqtd+ZlKwLHUUSLXuMl 37cR6t9RXHxlszTM33hZ6wkA0g4O2SkHG0mTR47F/NVe3k5VE5GvBf0j8oxVtdc70BiU 5hsRXN0rypNT4NaT44S1Jy1lmzXLjJgvIXTXmN+d2fo3eXx0aTWiyeVdCH+wUl9XSjgv JKU4Ws08NfKkuVkkYVC/0AiAo1AHsRKaELv56tQhRvj2KtNp+y2O+izjNO8Mv6egJKsA b8WGZBz10B4YVir/ifTVdjYlARZZ2Vrgkk1dSwY4Og32CZahHSa8pdCr48dsSEWBt+tx s+mQ== 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; bh=8zU84gQmE6XXoGBx6p/jfGHY5q82lsww29jgFqcrpdo=; b=adlQ5B0AsXENv/FDl372+nvByehb1i0g7XuskAFmN6dKknsdMbv435sHaoq8ymKmuQ MctMTcT5rbwrFheLPBfeBcJ6lF/ED7BkInNxAsB9QvvuKlTYvmwTq1ewI8Btg3nDsBG/ 5WtbbtQJosYlYV/R/tr4HoNOoBQUbjPyGmwCECC8AM0/kptay2mPjYOX3xg1oHZ5UvKy zSrZUMrfrichPMMyEWFK96/JceprqQN0Ur/EkyzSKBcVCRBEJqZiljAZr2HCU/S4wKF9 O1SJjFOns52BHjJJHpT8koc57FzPQ6rel/Dq03Y91Lc6arpNeoew5hrlmxXf/ShElIIg cJrA== X-Gm-Message-State: ACgBeo0c4hE6yH3vGpGDF0GO/qB5WgB2FbRfDE0uY7P8QDOsONKTJF4R HYKSdxeq2y8RGyBPqogqx/I= X-Google-Smtp-Source: AA6agR56hO7U2HU+o1XnpqbGZdVQtP8cbvyygzF0+fcYbIisqKkUD5Lv9X2RmFBVp5L+V1XpvIP1Qw== X-Received: by 2002:a63:698a:0:b0:41c:8dfb:29cb with SMTP id e132-20020a63698a000000b0041c8dfb29cbmr12065549pgc.170.1659875231899; Sun, 07 Aug 2022 05:27:11 -0700 (PDT) Received: from Redmi-G.localdomain ([112.0.190.111]) by smtp.googlemail.com with ESMTPSA id n7-20020a170902e54700b0016c16648213sm6716709plf.20.2022.08.07.05.27.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Aug 2022 05:27:11 -0700 (PDT) From: Molly Sophia To: Bjorn Andersson , Andy Gross , Konrad Dybcio , Linus Walleij , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Molly Sophia Subject: [PATCH 1/2] pinctrl: qcom: sc8180x: Fix gpio_wakeirq_map Date: Sun, 7 Aug 2022 20:26:44 +0800 Message-Id: <20220807122645.13830-2-mollysophia379@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220807122645.13830-1-mollysophia379@gmail.com> References: <20220807122645.13830-1-mollysophia379@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Currently in the wakeirq_map, gpio36 and gpio37 have the same wakeirq number, resulting in gpio37 being unable to trigger interrupts. It looks like that this is a typo in the wakeirq map. So fix it. Signed-off-by: Molly Sophia Tested-by: Bjorn Andersson Reviewed-by: Bjorn Andersson --- drivers/pinctrl/qcom/pinctrl-sc8180x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/qcom/pinctrl-sc8180x.c b/drivers/pinctrl/qcom/pinctrl-sc8180x.c index 6bec7f143134..b4bf009fe23e 100644 --- a/drivers/pinctrl/qcom/pinctrl-sc8180x.c +++ b/drivers/pinctrl/qcom/pinctrl-sc8180x.c @@ -1582,7 +1582,7 @@ static const int sc8180x_acpi_reserved_gpios[] = { static const struct msm_gpio_wakeirq_map sc8180x_pdc_map[] = { { 3, 31 }, { 5, 32 }, { 8, 33 }, { 9, 34 }, { 10, 100 }, { 12, 104 }, { 24, 37 }, { 26, 38 }, { 27, 41 }, { 28, 42 }, { 30, 39 }, { 36, 43 }, - { 37, 43 }, { 38, 45 }, { 39, 118 }, { 39, 125 }, { 41, 47 }, + { 37, 44 }, { 38, 45 }, { 39, 118 }, { 39, 125 }, { 41, 47 }, { 42, 48 }, { 46, 50 }, { 47, 49 }, { 48, 51 }, { 49, 53 }, { 50, 52 }, { 51, 116 }, { 51, 123 }, { 53, 54 }, { 54, 55 }, { 55, 56 }, { 56, 57 }, { 58, 58 }, { 60, 60 }, { 68, 62 }, { 70, 63 }, { 76, 86 }, From patchwork Sun Aug 7 12:26:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Molly Sophia X-Patchwork-Id: 12938149 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7B27C25B0C for ; Sun, 7 Aug 2022 12:27:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234156AbiHGM1X (ORCPT ); Sun, 7 Aug 2022 08:27:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234100AbiHGM1T (ORCPT ); Sun, 7 Aug 2022 08:27:19 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14D18BC9D; Sun, 7 Aug 2022 05:27:18 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id o3so6344409ple.5; Sun, 07 Aug 2022 05:27:18 -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; bh=wBAib5lIj4PJUGlyk4iTQzVyGIBH+CGO5pPhuP30EHg=; b=PUDC2IIQRPWZaLKg5j4NoAxtZknUO2RQ6OMTliQSBQMejjRC+zIRVOJeg4Btkhr8Wu D1HdkwGaRwMZKIliT9FFNPoeP6fH/2YUmn//XW+aMqyfysjjEtd/eGJCJ+gUxftGB69S m61KXZ+a60W8DzNnmZ92B/yxxd2cyzgvkinnbS9UFYl8Iuj6FMQs3DE0AdgX6N+qXjsK N7xRTrNTuABf6/nyt1sslsdAR+LNorR0xanYA8DdL9tESqkM4HSN70uV21CH7e49Nt4r iXNHVnY4mrFRHf2v8V0vNmu/bNPFgPK+/Yzdh3t+qLzoI0R3gtGgUnETUu85Nswk1h9N ogEQ== 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; bh=wBAib5lIj4PJUGlyk4iTQzVyGIBH+CGO5pPhuP30EHg=; b=jnrO2k1TlTPsGLkVSojg3i5/xqhfCxnCMXPyuefYSbKiHYLzhs8EQj3JA4L790dMSu qKKCaDIcgi7ok8pPRq4L4R8Gyhu/S0/DzZDMC0offaWbJY8TSRcT6PRA9nYmaI6Kjbv4 mOQPAhgTnNmnAKdnLyPiHj+b4pZxXNdV7EFrGj8bSjKVZ+6kzP+l4D6GP0cA6X79lby5 v4EWFoDMG/3dBVAwhzdSFgNF8B3zfRe0OIg6+jdqMaheziVTaRsknzGufxGPEAKSiyF/ zUi6mXptuqb1Ptk/r5dJvuakpza/PCWzxqqH/yCsYf4vcTidcZ2Z99Io9OMgyDK03MI8 oTPQ== X-Gm-Message-State: ACgBeo2cWb3R/TtSU5xJ+ym5BwD3Fh7SjzYWAyQK3nYfYEj71Imdk3E0 y3p7565yNmr2JAohNbH97BY= X-Google-Smtp-Source: AA6agR5LeRELmDiZAAxgS+mUHslGi2AL4mX/OT6YLOWhzCNtQm7Fn4niAptlu1/dzlAi7G4z0T5D4Q== X-Received: by 2002:a17:90b:1894:b0:1f5:1041:a4ed with SMTP id mn20-20020a17090b189400b001f51041a4edmr16358767pjb.125.1659875237512; Sun, 07 Aug 2022 05:27:17 -0700 (PDT) Received: from Redmi-G.localdomain ([112.0.190.111]) by smtp.googlemail.com with ESMTPSA id n7-20020a170902e54700b0016c16648213sm6716709plf.20.2022.08.07.05.27.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Aug 2022 05:27:16 -0700 (PDT) From: Molly Sophia To: Bjorn Andersson , Andy Gross , Konrad Dybcio , Linus Walleij , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Molly Sophia Subject: [PATCH 2/2] pinctrl: qcom: sc8180x: Fix wrong pin numbers Date: Sun, 7 Aug 2022 20:26:45 +0800 Message-Id: <20220807122645.13830-3-mollysophia379@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220807122645.13830-1-mollysophia379@gmail.com> References: <20220807122645.13830-1-mollysophia379@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The pin numbers for UFS_RESET and SDC2_* are not consistent in the pinctrl driver for sc8180x. So fix it. Signed-off-by: Molly Sophia Reviewed-by: Bjorn Andersson --- drivers/pinctrl/qcom/pinctrl-sc8180x.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/pinctrl/qcom/pinctrl-sc8180x.c b/drivers/pinctrl/qcom/pinctrl-sc8180x.c index b4bf009fe23e..704a99d2f93c 100644 --- a/drivers/pinctrl/qcom/pinctrl-sc8180x.c +++ b/drivers/pinctrl/qcom/pinctrl-sc8180x.c @@ -530,10 +530,10 @@ DECLARE_MSM_GPIO_PINS(187); DECLARE_MSM_GPIO_PINS(188); DECLARE_MSM_GPIO_PINS(189); -static const unsigned int sdc2_clk_pins[] = { 190 }; -static const unsigned int sdc2_cmd_pins[] = { 191 }; -static const unsigned int sdc2_data_pins[] = { 192 }; -static const unsigned int ufs_reset_pins[] = { 193 }; +static const unsigned int ufs_reset_pins[] = { 190 }; +static const unsigned int sdc2_clk_pins[] = { 191 }; +static const unsigned int sdc2_cmd_pins[] = { 192 }; +static const unsigned int sdc2_data_pins[] = { 193 }; enum sc8180x_functions { msm_mux_adsp_ext,