{"id":2225704,"url":"http://patchwork.ozlabs.org/api/patches/2225704/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/20260421-emmc-v2-2-0ebd3322b676@oss.qualcomm.com/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/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,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260421-emmc-v2-2-0ebd3322b676@oss.qualcomm.com>","list_archive_url":null,"date":"2026-04-21T13:00:09","name":"[v2,2/3] drivers: mmc: uclass: Set removable flag based on device tree property","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"b0e638b2086b2a981bf87b8a77a5c73473732710","submitter":{"id":90810,"url":"http://patchwork.ozlabs.org/api/people/90810/?format=json","name":"Balaji Selvanathan","email":"balaji.selvanathan@oss.qualcomm.com"},"delegate":{"id":151538,"url":"http://patchwork.ozlabs.org/api/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/20260421-emmc-v2-2-0ebd3322b676@oss.qualcomm.com/mbox/","series":[{"id":500798,"url":"http://patchwork.ozlabs.org/api/series/500798/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=500798","date":"2026-04-21T13:00:07","name":"Enable eMMC and SD card support for QCS615","version":2,"mbox":"http://patchwork.ozlabs.org/series/500798/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2225704/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2225704/checks/","tags":{},"related":[],"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=UFAg7Ebp;\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=OOy1Sgi0;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; 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=\"UFAg7Ebp\";\n\tdkim=pass (2048-bit key;\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.b=\"OOy1Sgi0\";\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=balaji.selvanathan@oss.qualcomm.com"],"Received":["from phobos.denx.de (phobos.denx.de [85.214.62.61])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g0Msp6dTcz1yGt\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 21 Apr 2026 23:00:46 +1000 (AEST)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id E1886841D6;\n\tTue, 21 Apr 2026 15:00:37 +0200 (CEST)","by phobos.denx.de (Postfix, from userid 109)\n id 837E483BC8; Tue, 21 Apr 2026 15:00:36 +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 492E6842CD\n for <u-boot@lists.denx.de>; Tue, 21 Apr 2026 15:00:33 +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 63L9no0P046130\n for <u-boot@lists.denx.de>; Tue, 21 Apr 2026 13:00:31 GMT","from mail-pl1-f197.google.com (mail-pl1-f197.google.com\n [209.85.214.197])\n by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4dp0y1t0ph-1\n (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)\n for <u-boot@lists.denx.de>; Tue, 21 Apr 2026 13:00:31 +0000 (GMT)","by mail-pl1-f197.google.com with SMTP id\n d9443c01a7336-2b24cd2e2b3so39972085ad.0\n for <u-boot@lists.denx.de>; Tue, 21 Apr 2026 06:00:30 -0700 (PDT)","from hu-bselvana-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 d9443c01a7336-2b5fab0cb92sm130117335ad.50.2026.04.21.06.00.23\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 21 Apr 2026 06:00:28 -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 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 cc:content-transfer-encoding:content-type:date:from:in-reply-to\n :message-id:mime-version:references:subject:to; s=qcppdkim1; bh=\n xezJYEmgRPQjcSs0pZ+Hpoi0Uui/ZV5odBiKclxrND4=; b=UFAg7EbprargwjM6\n yFgZZozx5/cyhscakJTPXI4gIIBGet9RdOkcHEsmvUOVtx3A8Hq7QojFY+Ib+Wzg\n WP0A4L8Iq4TY/rEo+x4wlzaWsGFT7Q2iBUU2PRYvg4sOvPU5avD1F5eZ18PC77sC\n aMCRm6UgUn2SCjfeD4S1/U81oMgrp/ySUWOxrNRgjzr6V/jwzjyUf4t8ireNQNYL\n tE8HpX1az5IuG1+0MLoZ5ek8m25qT2A2GUi/NUExgJleh+zSO067W+HKVzzPcH4K\n WmWWAfvk6ZB09SuxdvprQwuV5kIaqC1iGkJ1DszvipCvKSGM9rYlwZUGEtu/cyEu\n 8gJK5g==","v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oss.qualcomm.com; s=google; t=1776776430; x=1777381230; darn=lists.denx.de;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:from:to:cc:subject:date:message-id\n :reply-to; bh=xezJYEmgRPQjcSs0pZ+Hpoi0Uui/ZV5odBiKclxrND4=;\n b=OOy1Sgi0G4ECYCXEk3OijLJ8w1pU4f34ZpUoipiB9RbnlnSpEXs1d2BHO+sgjo1Hxz\n gO9BrIYTHhO6oDj2FFcHpUaka5DRX3cudRFcvPWWC4WVReVPAoCODJVSd70IJfbiQ50L\n 8j2gEyuw+gou/j5U2BCD2c3NcssLWriLf3kmLIcfRt4TX/uS1z6zhwUwewaARsp9sQaB\n FkkOVd5+lHr98R4OJ3pxPmtRTl2fvv+n/sqc2RNcP3TYc2BHY2vSsykFKXJalzqqsADE\n IgLLIRRDpYizD70359C0NqcQ+RN8NcxYlZtQiaR8V5jnNH0YD/5qoGQkjsgn7+8hTf3j\n A+vg=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776776430; x=1777381230;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to\n :cc:subject:date:message-id:reply-to;\n bh=xezJYEmgRPQjcSs0pZ+Hpoi0Uui/ZV5odBiKclxrND4=;\n b=bmNERjui/8XqgrPX7LqZTzUQYvzgSNxryze6qOtjo4LSE4CvEr/iX/O1VSZ4rtDSfW\n OI5ak4z+2Y4+HxCj8ZC7aWiVSANht08jobxnBUH1l7AKrylEQbGnFH+qB/8BX4oHLnFh\n 9E4AjScPjz5vDXbzN7jSKo92MDxjPhu4WER8g2Qua8eWtUmP2jzvJ6Lj9k6sKZ65MQB6\n Dkcx8ldGL6tyiZFHOa7YNKnczehO7tCSjSi2dZyzew+9D478q9NwVOTuft/Kjqt3nv9w\n tGJ56xD+FAMCdILrOlg+Q66azZv10VasN8RQpYgcO1H05XTVe0xXghl0uG2UY+jdjpc3\n M4UQ==","X-Forwarded-Encrypted":"i=1;\n AFNElJ/m2LZL4oKK8dGkqp2FM6r4tidRfpIk0+h2lvUs7vQ/t9HYAAMWt7/Qb4WVv+TOWEbifeePRhs=@lists.denx.de","X-Gm-Message-State":"AOJu0YzzX1o1JwGi2rWNDY+LoJTIiXfCpDtXePJP8v0lUNvYMJrktrhA\n 1rKAnAVei8EFZvwKa8em3RSoQ8p4PdRiDPQz04GygF/LqqKDDziNJ/ney0L3/CLxXIG3pENphYu\n xgOsgLVhz7pHP7LzQnRKZf0/LucuS7TeQhGVp2TvJ+MoWfaVHKaRZoZaq","X-Gm-Gg":"AeBDievKrNt7Jw8EIO3In6uCt/HbU8UI/nr1lWfAlO7BNihlrv51IDkZ2B4H0N4izL0\n u3aM1IqykdytRPHQ09RH6b6wvGeDQlYMq3ihkHMDpCFIF7plL67OjreoxfMTzc82DBpwlBIBvlD\n a4kXFHWMC/E78Uyf1HXdwB5Gl59n5a6wPgFu/FFe2aHueark5BEy3F8eFaMacLCV6fFzBooDLw0\n lH0FqT2h02FAWups5CYSeOSegdtGzJCfT1LiLj9vqvZb+LGOpUsBJSjpSSejG+X1VAlZqj7T8Md\n MOC/sq96D7COcYY8u3qvVhdyhKZxKqZWiuH1BaD5MDFgXz1x4nZZ3UD+r0nfZBu3Ow+nKNCLfme\n 1G/QF9y+Jkq1H/0RrJkmEpNA2hAQqAzQB1E80oP60uQG55xKSVboiFmjt63leKThy/QGOw3ePll\n evE/wsmP9tO4RpdDVo4CUYgh3VNNjFkIihL9s3Lg9pXqBPdjEaJJ43RBk1oz9c","X-Received":["by 2002:a17:902:c94b:b0:2a9:e8b:5326 with SMTP id\n d9443c01a7336-2b5f9f51e59mr171282475ad.23.1776776429575;\n Tue, 21 Apr 2026 06:00:29 -0700 (PDT)","by 2002:a17:902:c94b:b0:2a9:e8b:5326 with SMTP id\n d9443c01a7336-2b5f9f51e59mr171281615ad.23.1776776428658;\n Tue, 21 Apr 2026 06:00:28 -0700 (PDT)"],"From":"Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>","Date":"Tue, 21 Apr 2026 18:30:09 +0530","Subject":"[PATCH v2 2/3] drivers: mmc: uclass: Set removable flag based on\n device tree property","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"7bit","Message-Id":"<20260421-emmc-v2-2-0ebd3322b676@oss.qualcomm.com>","References":"<20260421-emmc-v2-0-0ebd3322b676@oss.qualcomm.com>","In-Reply-To":"<20260421-emmc-v2-0-0ebd3322b676@oss.qualcomm.com>","To":"Sumit Garg <sumit.garg@kernel.org>, u-boot-qcom@groups.io,\n u-boot@lists.denx.de","Cc":"Lukasz Majewski <lukma@denx.de>,\n Casey Connolly <casey.connolly@linaro.org>,\n Neil Armstrong <neil.armstrong@linaro.org>, Tom Rini <trini@konsulko.com>,\n Aswin Murugan <aswin.murugan@oss.qualcomm.com>,\n Stephan Gerhold <stephan.gerhold@linaro.org>,\n Varadarajan Narayanan <quic_varada@quicinc.com>,\n Peng Fan <peng.fan@nxp.com>, Jaehoon Chung <jh80.chung@samsung.com>,\n Loic Poulain <loic.poulain@oss.qualcomm.com>,\n Patrice Chotard <patrice.chotard@foss.st.com>,\n Marek Vasut <marek.vasut+renesas@mailbox.org>,\n Paul Sajna <sajattack@postmarketos.org>,\n Abbarapu Venkatesh Yadav <venkyada@qti.qualcomm.com>,\n Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>,\n Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>","X-Mailer":"b4 0.14.3","X-Developer-Signature":"v=1; a=ed25519-sha256; t=1776776410; l=1844;\n i=balaji.selvanathan@oss.qualcomm.com; s=20260213; h=from:subject:message-id;\n bh=JrvS40pjc/azUCX9N8yLSKcxUAOuzgbKQx8jXDu7EhY=;\n b=WIZAQru/cw3QSHArLCA4+xk8EVOAzrdFDFamiwZ3lpxW8mUNIaDiGaNgakMFkCGvsK+/env3W\n rMVfCxcez9nAuzJmReBFK8SolCXMNYXU5fpvnHp7JbhdIyh5G2c1CCp","X-Developer-Key":"i=balaji.selvanathan@oss.qualcomm.com; a=ed25519;\n pk=CDpYiUU3SH7KGEtsBvY2tBGPiWfMxqWJF0p2LftOfnc=","X-Authority-Analysis":"v=2.4 cv=VNLtWdPX c=1 sm=1 tr=0 ts=69e774ef cx=c_pps\n a=cmESyDAEBpBGqyK7t0alAg==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17\n a=IkcTkHD0fZMA:10 a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10\n a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22\n a=EUspDBNiAAAA:8 a=XGATPFSgMOfaP4SSs2EA:9 a=QEXdDO2ut3YA:10\n a=1OuFwYUASf3TG4hYMiVC:22","X-Proofpoint-Spam-Details-Enc":"AW1haW4tMjYwNDIxMDEyOSBTYWx0ZWRfX99ghHuOoi1ku\n dhB8jJ+QRzCvVSMLmN6lnBnBMnb4stBFMvTNCGuaatL8NppeA/OfxovFifU1BFwvt4XzP1lPwrc\n A1go5WmPMDE9OmdqCGj0HivwtYKHlTiSi7YjQUMslBe6ufVBtOPLBR97aOX0EaxRHqjHSQYrjEG\n 7ta3oqyHKtWDCHM47ocSZpOSXYGMc55bFVPvjwXzLw3wXY2GwnTewsH6Wuqdi2fqYH9wrTyGV7M\n rtO3bazte6MFJMGwA+psJZ5M2qvZ6xe5wLHuUyDukV+SR3hUpYaOqwLpx9A0z7JKqIkJrYk2/wO\n LCdvifIxtnXZPD3nCqZ0PyxxXbtwlkKB9R0Odf598ziwV6F/osD+cwcRw4tqpzoHOiAJvXRU8cB\n J+D94VibiPy8IYoLlAlXZLucthkiybVFmYY2Z0gE1UMrsP6OJ6i8hb6tj9isgi2clMaU6spxF4t\n mCWXIDyoDUPfEGgJMzg==","X-Proofpoint-ORIG-GUID":"Nk3H1hyVw-iTNhaLzdqFi9m6o5kiTFkU","X-Proofpoint-GUID":"Nk3H1hyVw-iTNhaLzdqFi9m6o5kiTFkU","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-21_02,2026-04-20_02,2025-10-01_01","X-Proofpoint-Spam-Details":"rule=outbound_notspam policy=outbound score=0\n bulkscore=0 clxscore=1015 spamscore=0 phishscore=0 suspectscore=0\n priorityscore=1501 lowpriorityscore=0 impostorscore=0 adultscore=0\n malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc=\n route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2604070000\n definitions=main-2604210129","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":"The block device removable flag should reflect whether the MMC\ndevice is physically removable (SD card) or soldered (eMMC). This\ninformation is specified in the device tree via the \"non-removable\"\nproperty and stored in the MMC_CAP_NONREMOVABLE capability flag.\n\nUpdate the removable flag in the block device descriptor during\ncontroller probe to properly reflect the device's removable status.\nThis allows the block layer and upper layers (particularly EFI boot\nmanager) to distinguish between eMMC and SD cards for appropriate\nhandling.\n\nThe default removable=1 is set in mmc_bind(), and this change\noverrides it only for non-removable devices after mmc_of_parse()\nhas set the MMC_CAP_NONREMOVABLE capability from the device tree.\n\nReviewed-by: Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>\nSigned-off-by: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>\n---\nChanges in v2:\n- Moved removable flag update from generic mmc-uclass.c to platform-\n  specific msm_sdhci.c driver\n---\n drivers/mmc/msm_sdhci.c | 7 +++++++\n 1 file changed, 7 insertions(+)","diff":"diff --git a/drivers/mmc/msm_sdhci.c b/drivers/mmc/msm_sdhci.c\nindex 66f3cf2de4f..13fd4ae8a7d 100644\n--- a/drivers/mmc/msm_sdhci.c\n+++ b/drivers/mmc/msm_sdhci.c\n@@ -189,6 +189,7 @@ static int msm_sdc_probe(struct udevice *dev)\n \tstruct sdhci_host *host = &prv->host;\n \tu32 core_version, core_minor, core_major;\n \tstruct reset_ctl bcr_rst;\n+\tstruct blk_desc *bdesc;\n \tu32 caps;\n \tint ret;\n \n@@ -252,6 +253,12 @@ static int msm_sdc_probe(struct udevice *dev)\n \tif (ret)\n \t\treturn ret;\n \n+\tif (plat->cfg.host_caps & MMC_CAP_NONREMOVABLE) {\n+\t\tbdesc = mmc_get_blk_desc(&plat->mmc);\n+\t\tif (bdesc)\n+\t\t\tbdesc->removable = 0;\n+\t}\n+\n \thost->mmc = &plat->mmc;\n \thost->mmc->dev = dev;\n \thost->ops = &msm_sdhci_ops;\n","prefixes":["v2","2/3"]}