From patchwork Tue Apr 9 18:03:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 787230 Delivered-To: patch@linaro.org Received: by 2002:adf:fdd2:0:b0:346:15ad:a2a with SMTP id i18csp348850wrs; Tue, 9 Apr 2024 11:04:45 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVFVME6hOU5e2sK7Cg55fkzaWGXJGk3U6z6Rkg+enaO1ZEx01cFSfsYGMZi1ozFGSYXRaIQEFguzDOhnmHuokhU X-Google-Smtp-Source: AGHT+IFyRsmPOJVaIjspbdeyh7MkuT/O6tpdO6xAm/TztF4YjlA95Mf7wgvQMhzjfaXshpeg/NxP X-Received: by 2002:a17:906:370c:b0:a51:e42f:a4a7 with SMTP id d12-20020a170906370c00b00a51e42fa4a7mr134378ejc.24.1712685885017; Tue, 09 Apr 2024 11:04:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1712685885; cv=none; d=google.com; s=arc-20160816; b=Rz+c7NO9SUyewdZ2gnCwv3IqpdkZr/bFAgW4Ssk6OacHieagvMKfLbA/T7+QBbCRIo 94aCfVaBSi7n9UQbeGwraT12QA105J9QDRYiwrHwo2PrzKKozSibH9uzGqGx8CDOtzrg /N2diKaBnXV60/KbA9rQNiSLfekl/GMPVqaElH40xf9zZtN20WzdixBenEzJ//A9tYt6 zXhfzb4NLEo4wnip5fe8Wf/Q/LIJg3SGpI6IPQVC8KCpb7UIbiyK63K0u5B9plEdROav FXoaZ47dA14y03hqBBzpst43gaNikgO4SaD112pt5uUCyEDosDKhBaGds/BBYtXrvXKw R95w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=R0pR7USvI+Ih/FdJ1dMA4BzTcYnSBcRZgZ9bLcEt9nA=; fh=l1dqhLO5z0XlFWHhIhA7jn7sD9Gz0XDjE1yUiD1hdKE=; b=nfVDOph1EiwVDaSVyoYSuO4B1316JpcWLK9Zbm8VZX7lcAgxQk1ENl9vy14Sgclz47 +n6QtkP3mcZA0piTldmQMI2y5kX2fitUXCblJKWyiQ5PFS84Ps450z2i+iZfT4+OPH8Z szoAWW+0soOmQZ9q/o8oQPlmZyUz/XOdxznFxJURrsyY5KjWKgwLXiSvGLtA6opKQtAq OrC3c8JtEvH8zpuS95Uxj/+Vfy8c8hxVGp+CMWAfikwVlac2lNA1kvuOgZ4HVrv4rgdl D5B7PH0w7oOMtukJV767aKRYQd1af9PXmhtoaCC0yEk0g9PpCmn0NdldCZh1eBg7DDSV O0Qw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I2MnXh24; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id kj26-20020a170907765a00b00a3f6ba0165dsi4710458ejc.261.2024.04.09.11.04.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 11:04:44 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I2MnXh24; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 58B5888196; Tue, 9 Apr 2024 20:03:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="I2MnXh24"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8E7FD87F01; Tue, 9 Apr 2024 20:03:17 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id AF94E880D6 for ; Tue, 9 Apr 2024 20:03:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=caleb.connolly@linaro.org Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a51a1c8d931so546023166b.0 for ; Tue, 09 Apr 2024 11:03:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712685795; x=1713290595; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=R0pR7USvI+Ih/FdJ1dMA4BzTcYnSBcRZgZ9bLcEt9nA=; b=I2MnXh24vDVbLzOb9Drwnhcw/oUWbMrFQGRqZQSUxo1iNLRcx+OEai8k8EkgI1scjF 85w1xgHSSAQUXUpFiD2DXG3BVC+YGO5FDFwpfGvwZopdT593dGlU90oqv8RqME2RZrSX GcuJ6xDXAW49ByQMjjnX3ai4dJt84L7UQCVv4K3MJt9kw32FWMJhW/sDcG80yfFzW2vY pxIjkwS2+Gg5cCNIB6QR/62soIgh+TW+T1ad28Lc9j34Sa2KNZ3Sysu3D+XWmqkTm006 AUbUvRkqHREpZcKE4LLyVF/Io88s7GIoez7qDgSXlVMc/onnj3FduGdXuwW7vFuy50S3 4DYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712685795; x=1713290595; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=R0pR7USvI+Ih/FdJ1dMA4BzTcYnSBcRZgZ9bLcEt9nA=; b=j/Y0oPfmjbcZ6/lkTP0BgEgTCe8fE5MgynHHAMg3e6n1EOicO0xqktZQpSEBxy1CWV jsmbFdJ8xXH/TGl0iShLprkIienAPJjqh7aBzwu77uDMnsURxpUoxZKSQST6f79oNKP7 +mociLG10egkJXdBzufFetPs3klM1meuKNXKFad8L5Yf8jYymN3O0bdIJNHAdpAVrXaz dhtNP3ZSOzUDuYxfs40q0APVnMPBZeKSnRbG2XDBLkeRjVQKM+FB380CJK4y/AI5YhFK W6Qfk+KouxzYFlXkf9FrEyvuxZGcN5Er2O+6OQmO98kPLF9l+xA4Tl3mA22/WsV9x+Zc OPJQ== X-Gm-Message-State: AOJu0YzrSzF/hW7HWX4cbivH+GDAEbTWKgE+93P2r61P7geuniLuHRI0 Jr/95Sucl/U7OdK8ys037sdZnviT/AeXr5pMq0oFCxyi9cEtY6aobMwjR3F4SBQ= X-Received: by 2002:a17:906:3492:b0:a51:b931:59c2 with SMTP id g18-20020a170906349200b00a51b93159c2mr146451ejb.73.1712685795284; Tue, 09 Apr 2024 11:03:15 -0700 (PDT) Received: from [192.168.0.113] ([2a02:8109:aa0d:be00::570d]) by smtp.gmail.com with ESMTPSA id d4-20020a170907272400b00a4e5866448bsm5928783ejl.155.2024.04.09.11.03.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 11:03:14 -0700 (PDT) From: Caleb Connolly Date: Tue, 09 Apr 2024 20:03:05 +0200 Subject: [PATCH 6/7] pinctrl: qcom: sdm845: add special pin names MIME-Version: 1.0 Message-Id: <20240409-b4-qcom-mmc-fixes-v1-6-5039164ecbf7@linaro.org> References: <20240409-b4-qcom-mmc-fixes-v1-0-5039164ecbf7@linaro.org> In-Reply-To: <20240409-b4-qcom-mmc-fixes-v1-0-5039164ecbf7@linaro.org> To: Caleb Connolly , Neil Armstrong , Sumit Garg , Peng Fan , Jaehoon Chung , Tom Rini , Ramon Fried , Lukasz Majewski , Sean Anderson Cc: u-boot@lists.denx.de X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1218; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=kvJA2hpDrvXL5Le9dVlPd02xqhweuffSPTKkrxeYBNo=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBmFYLY2jKbBZWPPDKbWgwMi5egMc6k4+UAoMEDM LiuclyMnQOJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZhWC2AAKCRAFgzErGV9k ts/VD/wIVwIsYAsl4ZJEe+Wl3x9b/5kKfmPqgbHLcaV4V9BL4VcA+JQmnkbpb6PKIdHIIFDI5Gg iIGxITozvsLJREZplFmmIRKe9rq02M3UW0sML9ST0IuLv2gmu/pXboYaG/LdjeqWsHs1bIxdFr8 /5cG8VJfrSqyPp8BqgeyALcxD8E/m4Qg8tcX3Gpo7sUjSPmXG9eUSx8IQP3J+roGGEahUcn/ErP 3URw8mDuBGZHBxVdS3M7Xotk2V36XANcPDokRBBa47tn9EQdFX9W02KHqogPRYjKRtpF4t/Xp1d P8To2o1uRveyEVmI7jaDFnkPmvk58HstsVq5wuvRGz6lufeG1hhas7OmwnpRDxzUcqz5DdtS8ww IwKJnol1PRVxuKf3dZDw4zUjC5vcahhC7hNCL195pZlS/fMxJ4lJ6VI9HvNbPPgU94EbV3Mq1+h +QsrTBGea5tDtH1n732Pt0L1jQujpChoPkTddj6NdwkG27rYeoASMsqOFzWXuMRrwDStxbX10Tn 5GEgqMDWstjMET5Utz5lbaVdVa3KNHFVvXtzPPZ33IKsDOCC9UcxcrfPSQDTOqhp1WEsNxQ4I7f AgokHlQIMKvMZcRqXaDQ4djfpoeBw9OQDyk/1Qju/WPQpxgPxJKjACU/mTAElU+VwbJdKYLskcI 5Avbzl5cYrkhEmw== X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Adjust sdm845_get_pin_name() to return the correct names for the special pins. This fixes a non-fatal -ENOSYS error when probing MMC. Signed-off-by: Caleb Connolly Reviewed-by: Neil Armstrong --- drivers/pinctrl/qcom/pinctrl-sdm845.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/qcom/pinctrl-sdm845.c b/drivers/pinctrl/qcom/pinctrl-sdm845.c index 459a4329ec80..c1e5cc01fded 100644 --- a/drivers/pinctrl/qcom/pinctrl-sdm845.c +++ b/drivers/pinctrl/qcom/pinctrl-sdm845.c @@ -65,9 +65,20 @@ static const char *sdm845_get_function_name(struct udevice *dev, static const char *sdm845_get_pin_name(struct udevice *dev, unsigned int selector) { - snprintf(pin_name, MAX_PIN_NAME_LEN, "gpio%u", selector); + static const char *special_pins_names[] = { + "ufs_reset", + "sdc2_clk", + "sdc2_cmd", + "sdc2_data", + }; + + if (selector >= 150 && selector <= 154) + snprintf(pin_name, MAX_PIN_NAME_LEN, special_pins_names[selector - 150]); + else + snprintf(pin_name, MAX_PIN_NAME_LEN, "gpio%u", selector); + return pin_name; } static unsigned int sdm845_get_function_mux(__maybe_unused unsigned int pin,