{"id":2223735,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2223735/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/20260416051151.2825532-1-varadarajan.narayanan@oss.qualcomm.com/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/1.1/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null},"msgid":"<20260416051151.2825532-1-varadarajan.narayanan@oss.qualcomm.com>","date":"2026-04-16T05:11:51","name":"[v2] mmc: msm_sdhci: Use max-frequency to get clock rate","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"190bb4ed9a014dbb5e76d26bc707f450764ba6b1","submitter":{"id":92283,"url":"http://patchwork.ozlabs.org/api/1.1/people/92283/?format=json","name":"Varadarajan Narayanan","email":"varadarajan.narayanan@oss.qualcomm.com"},"delegate":{"id":151538,"url":"http://patchwork.ozlabs.org/api/1.1/users/151538/?format=json","username":"kcxt","first_name":"Casey","last_name":"Connolly","email":"casey.connolly@linaro.org"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/20260416051151.2825532-1-varadarajan.narayanan@oss.qualcomm.com/mbox/","series":[{"id":500075,"url":"http://patchwork.ozlabs.org/api/1.1/series/500075/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=500075","date":"2026-04-16T05:11:51","name":"[v2] mmc: msm_sdhci: Use max-frequency to get clock rate","version":2,"mbox":"http://patchwork.ozlabs.org/series/500075/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2223735/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2223735/checks/","tags":{},"headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256\n header.s=qcppdkim1 header.b=XdBIKcpQ;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.a=rsa-sha256 header.s=google header.b=Ju/8+70o;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)","phobos.denx.de;\n dmarc=none (p=none dis=none) header.from=oss.qualcomm.com","phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de","phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=qualcomm.com header.i=@qualcomm.com\n header.b=\"XdBIKcpQ\";\n\tdkim=pass (2048-bit key;\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.b=\"Ju/8+70o\";\n\tdkim-atps=neutral","phobos.denx.de; dmarc=none (p=none dis=none)\n header.from=oss.qualcomm.com","phobos.denx.de; spf=pass\n smtp.mailfrom=varadarajan.narayanan@oss.qualcomm.com"],"Received":["from phobos.denx.de (unknown\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fx5jc2G3Zz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 16 Apr 2026 15:12:20 +1000 (AEST)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id C72B0840AB;\n\tThu, 16 Apr 2026 07:12:06 +0200 (CEST)","by phobos.denx.de (Postfix, from userid 109)\n id 96ECE840AB; Thu, 16 Apr 2026 07:12:05 +0200 (CEST)","from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com\n [205.220.168.131])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 4DFC983C2B\n for <u-boot@lists.denx.de>; Thu, 16 Apr 2026 07:12:03 +0200 (CEST)","from pps.filterd (m0279863.ppops.net [127.0.0.1])\n by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 63G4TDOo1553076\n for <u-boot@lists.denx.de>; Thu, 16 Apr 2026 05:12:01 GMT","from mail-pf1-f199.google.com (mail-pf1-f199.google.com\n [209.85.210.199])\n by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4djrsn842j-1\n (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)\n for <u-boot@lists.denx.de>; Thu, 16 Apr 2026 05:12:01 +0000 (GMT)","by mail-pf1-f199.google.com with SMTP id\n d2e1a72fcca58-82a6c70f1f8so5113278b3a.0\n for <u-boot@lists.denx.de>; Wed, 15 Apr 2026 22:12:01 -0700 (PDT)","from hu-varada-blr.qualcomm.com\n (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com. [103.229.18.19])\n by smtp.gmail.com with ESMTPSA id\n d2e1a72fcca58-82f670374aasm4352919b3a.12.2026.04.15.22.11.55\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 15 Apr 2026 22:11:59 -0700 (PDT)"],"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,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,\n RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED,\n SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2","DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=\n content-transfer-encoding:date:from:message-id:mime-version\n :subject:to; s=qcppdkim1; bh=F/jwK1zTCEyhoI/iLoo2rY+VeIMFvnJeR2O\n YoqSAnq4=; b=XdBIKcpQTBEeZUiuBBSLdyGHPBOSKI+LuzbnqeCanF8vMn+5Yki\n d2L0JLzHxxPPO1HOLSN3eKVSeWNIN8v4jJI/d+7f2EPf24LcgtuzQXkwBX2dlHmT\n MKZyRizXJe2U2F3SrSMnORLsbWJsMifOFWZSaeSukQh1F2mtBBys7PbI6XEhsEab\n 2Oh/ug0l0O4RCSAGeVJHxI7N4iILS4aPP9sZOk/xjuHuzeTnpx/g7RWteu2k3oyQ\n Gw7lNN+f9jnuOtyiYcQtR5ER26FfCpxKnWL5NNs4HehjQFJTxYau3aPsM5XC6spl\n A/1NCRLN0s3ZEeHpl4IwHRLomXrbHsXs3Lg==","v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oss.qualcomm.com; s=google; t=1776316321; x=1776921121; darn=lists.denx.de;\n h=content-transfer-encoding:mime-version:message-id:date:subject:to\n :from:from:to:cc:subject:date:message-id:reply-to;\n bh=F/jwK1zTCEyhoI/iLoo2rY+VeIMFvnJeR2OYoqSAnq4=;\n b=Ju/8+70o1ryEStdkxcr6OKGSGEQNht0n7kLnQ6mVf7j56GzXYCRYTV3RTRyKWAEJEo\n NHWZAbmxM1I/N+mS22OJJZ759dmb7XUS95FbpsiPX9ULZcdMHSMWH96HoE9ol+2cjMEN\n dIF54FfeV/Qxtg7TFD92EDyw2AjJoZm6FLgmVBuRu7YYdu/+kPZewvIFUz9uxj9Y78mU\n fBOyT+EVwRL4FZfl8p8sVQuKqSAzf93SnsJ1UorBHgBwkN0/rlJDCm5Uvn16V6bpTriF\n vOus+ChczKPkS9rM1oAU0ELPvb0+V6YuNfGpCOZsUC7iO5bflQi5MtOrPwpyXqsafR4s\n tR1w=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776316321; x=1776921121;\n h=content-transfer-encoding:mime-version:message-id:date:subject:to\n :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id\n :reply-to;\n bh=F/jwK1zTCEyhoI/iLoo2rY+VeIMFvnJeR2OYoqSAnq4=;\n b=dIp4Jo6GSbFyt6lO+DZ5U5O/v6fpfyIcewfMLGVEG23LQiiJLVkYu9GIulPnfjVRd4\n HISz5NEPEhVUNrdOFyNSVXQrVMGb/hYQ+KfHFShyotjKJXYHM6uQrxAufjFlHzKsbzW7\n t2FmrgeRw/IIDMIchIiUt5AtXMxa+6ll5Yp4VmGrhV82ZWdmkLwTuJbfFz0uif5qvXCO\n 7o/yoJHiZDY9Jz9cl9Q2kl0jcprcBzEyxv/fIyhMLA8n1AZKqgfFMl2M9KEyQkGJDboL\n fTZjsZKRFbn4WQm1NcfHeidz6kCtA2jOUmicfFaMPufE32natReFN30yOQ+takpz96Hj\n dqDg==","X-Forwarded-Encrypted":"i=1;\n AFNElJ/qmrpNrb+hV2tLOfPpUMufg7RM/H+0VDkZbGdVsQCv+fgj3nynNwteM+Ia1H5O+0qSJw31XBo=@lists.denx.de","X-Gm-Message-State":"AOJu0Ywb9F2DeYNK2f6seSxIXkduieuYaihyGUSf26b1od22J12C2Rwt\n ipPV8JuHcCNp77VaYxuCHJBBMPTyRV+umdSfFXG7rK5jBNGUAQQqfiYi2M3HALJm6rqxhGQ3GJY\n Us1qjI/+/mhfFjs9vW/nPjvUIdbzJcHwSBIBrHI1g8QicQyBesVGhiys9","X-Gm-Gg":"AeBDievJIJbDA4/d5pDN95UgrOvKyQTLI/snvpxV14IWwv+yU0SebmqgK+zJu14N+mU\n mLy/SrD4lFfIFkvvIKYIO/cCqWqF74c5idHiqoKcvhQ+JGORyG5gnpgRNgmSt1Yc7FVk2ysPRw3\n 49+IsvywJMfZOL9YVt1DSrxLkr8WChPNprKwb08qAw7r8l0tbWoHLRlnor6soP4hCCHqrHqkZ5h\n u9MhzrKLE+Pu4XkGkgTqWmFG0P/5z9CzYNEyw0KCCITjlBeJ9ZAxGf7JoQdHhV/oyVEvS+yQtOe\n q8QB6JKxJ3SgKYdEQyZQGHt8tsqyIRJsbqtvXxpO7LbQu1eTWgV7Y7GoCuHcnBU68xAlzzsjd+y\n AgX9p4Tnv6jA8CbRFf5v01XnAvkk+cjCARZRGnn+E7XKvxtBSmVOepRHV94IFQvuPYUhLFZ6HPO\n LzkaTEDz2Q7JVl1ulO5OyaWehbI74qFMhCuvYrvO+WAxbkQ/fRLsg=","X-Received":["by 2002:a05:6a00:1946:b0:82c:dde3:f2ef with SMTP id\n d2e1a72fcca58-82f0c35f7c9mr23823173b3a.50.1776316320691;\n Wed, 15 Apr 2026 22:12:00 -0700 (PDT)","by 2002:a05:6a00:1946:b0:82c:dde3:f2ef with SMTP id\n d2e1a72fcca58-82f0c35f7c9mr23823150b3a.50.1776316320151;\n Wed, 15 Apr 2026 22:12:00 -0700 (PDT)"],"From":"Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>","To":"casey.connolly@linaro.org, neil.armstrong@linaro.org,\n sumit.garg@kernel.org, peng.fan@nxp.com, jh80.chung@samsung.com,\n trini@konsulko.com, loic.poulain@oss.qualcomm.com,\n varadarajan.narayanan@oss.qualcomm.com, u-boot-qcom@groups.io,\n u-boot@lists.denx.de","Subject":"[PATCH v2] mmc: msm_sdhci: Use max-frequency to get clock rate","Date":"Thu, 16 Apr 2026 10:41:51 +0530","Message-Id":"<20260416051151.2825532-1-varadarajan.narayanan@oss.qualcomm.com>","X-Mailer":"git-send-email 2.34.1","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-Proofpoint-ORIG-GUID":"4BSv3HCEt4yeSGQoFxq8f-MnuEQZlfmo","X-Proofpoint-GUID":"4BSv3HCEt4yeSGQoFxq8f-MnuEQZlfmo","X-Proofpoint-Spam-Details-Enc":"AW1haW4tMjYwNDE2MDA0NiBTYWx0ZWRfX48bj5wLXLZ5V\n QMuLiQOHTgKx4TA0S9YGX9Q6SB7FDTHsdghLXZ16vsqLA2AJo/0WtlXaaVCJH4Ck9qYXXr3Vaim\n SCcHYs9JEjXbj765KyXaVj2u7Q+0utbwnJHKy4M6I+iZby//8PgDOtdtnIP21DcvcWOGCM+oFdz\n GfNRiWITpCTzpG56I8SMcYRl/7A9NOVVsCo07juG3QVl1cqXlZ/1cTieNAnxu/LPmoRDBMavdsc\n J9xbwOyf3Gh7ElsHkZlRnXTuOx79O3Indb4nUptuxA2o85UFIgp1vUEie0vj9pcPWuCvuE2kyo4\n Gtr+n7pkfEY3/Tw7BrrZ3If9tIGWa8XvHg8P4dt6TjffITLacuF5Q2zalAtdbU4NcLXZCwWeW7W\n GlGrn2HTlqaQXkLWiPDl/A0KK0oAKWnCRd7Ldmo7WW7/RtS6RVjOq1ikkacgx3Jdf2pihUCSQRJ\n cRo0OH9SIAEe5xweuWg==","X-Authority-Analysis":"v=2.4 cv=EojiaycA c=1 sm=1 tr=0 ts=69e06fa1 cx=c_pps\n a=WW5sKcV1LcKqjgzy2JUPuA==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17\n a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22\n a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=EUspDBNiAAAA:8\n a=YBpYqEoKsAOojBjESW8A:9 a=OpyuDcXvxspvyRM73sMx:22","X-Proofpoint-Virus-Version":"vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-04-16_01,2026-04-13_04,2025-10-01_01","X-Proofpoint-Spam-Details":"rule=outbound_notspam policy=outbound score=0\n priorityscore=1501 bulkscore=0 adultscore=0 spamscore=0 phishscore=0\n impostorscore=0 suspectscore=0 lowpriorityscore=0 malwarescore=0\n clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc=\n route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2604070000\n definitions=main-2604160046","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.39","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<https://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>","X-Virus-Scanned":"clamav-milter 0.103.8 at phobos.denx.de","X-Virus-Status":"Clean"},"content":"msm_sdc_clk_init() uses clock-frequency to get the clock rate for SDC\nclocks. However, the DT files seem to use max-frequency for the same.\nSince msm_sdc_clk_init() doesn't find clock-frequency in the DT, it sets\n201500000 as the clock rate and this results in timeout errors on IPQ\nplatforms.\n\nAdditionally, clock-frequency is not DT bindings compliant. Hence, get\nclock rate using DT bindings compliant max-frequency.\n\nSigned-off-by: Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>\n---\n drivers/mmc/msm_sdhci.c | 3 +--\n 1 file changed, 1 insertion(+), 2 deletions(-)","diff":"diff --git a/drivers/mmc/msm_sdhci.c b/drivers/mmc/msm_sdhci.c\nindex 66f3cf2de4f..aaa87923604 100644\n--- a/drivers/mmc/msm_sdhci.c\n+++ b/drivers/mmc/msm_sdhci.c\n@@ -71,8 +71,7 @@ static int msm_sdc_clk_init(struct udevice *dev)\n \n \tvar_info = (void *)dev_get_driver_data(dev);\n \n-\tret = ofnode_read_u32(node, \"clock-frequency\", (uint *)(&clk_rate));\n-\tif (ret)\n+\tif (ofnode_read_u32(node, \"max-frequency\", (uint *)(&clk_rate)))\n \t\tclk_rate = 201500000;\n \n \tret = clk_get_bulk(dev, &prv->clks);\n","prefixes":["v2"]}