| Message ID | 20260703193855.110619-24-mukesh.ojha@oss.qualcomm.com (mailing list archive) |
|---|---|
| State | New |
| Headers |
Return-Path: <linux-sunxi+bounces-24141-sunxi=pue.re@lists.linux.dev>
X-Original-To: noreply@patchwork.local
Delivered-To: noreply@patchwork.local
Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mxe881.netcup.net (Postfix) with ESMTPS id BBAFB1C0929
for <noreply@patchwork.local>; Fri, 3 Jul 2026 21:50:59 +0200 (CEST)
Authentication-Results: mxe881;
dkim=pass header.d=qualcomm.com;
dkim=pass header.d=oss.qualcomm.com;
spf=pass (sender IP is 172.105.105.114)
smtp.mailfrom=linux-sunxi+bounces-24141-noreply=patchwork.local@lists.linux.dev
smtp.helo=tor.lore.kernel.org
Received-SPF: pass (mxe881: domain of lists.linux.dev designates
172.105.105.114 as permitted sender) client-ip=172.105.105.114;
envelope-from=linux-sunxi+bounces-24141-noreply=patchwork.local@lists.linux.dev;
helo=tor.lore.kernel.org;
Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org
[100.90.174.1])
by tor.lore.kernel.org (Postfix) with ESMTP id 51BF6300E600
for <noreply@patchwork.local>; Fri, 3 Jul 2026 19:48:51 +0000 (UTC)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id CB7F2266EE9;
Fri, 3 Jul 2026 19:48:46 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com
header.b="Oe2yBMtu";
dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com
header.b="V9kM/O7X"
X-Original-To: linux-sunxi@lists.linux.dev
Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com
[205.220.180.131])
(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 E25CD329E5A
for <linux-sunxi@lists.linux.dev>; Fri, 3 Jul 2026 19:48:44 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org;
arc=none smtp.client-ip=205.220.180.131
ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
t=1783108126; cv=none;
b=VFmIhWOpbNIcu3nAbA+qffpYypMSHWTzie7FPf12Oaqkw632ite6VGJizIQF/REAtKNS+4Ou5bWZtU7mbUkxUpNp0hVxh7TaIfKmSchZsJ2zgRXWV/EiUF2pgsNujMyxeDhcVA93T0oxmRmn2DDh0lrBItH/U17PicSAE0We76g=
ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
s=arc-20240116; t=1783108126; c=relaxed/simple;
bh=KKoYBENlGwSryGtgIQNpuBsFHNXkIZL9mEja8t22cvs=;
h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:
MIME-Version;
b=BIC8LYw2SGlt6kLIpVJ7Csi6XfspvHnhha/rPZwcDBW6p0dYCFdWKrYVSP5YXzfwSMXgvfl03GnTDgaHNYpFvY3rw7TCn2NxMZ8edFGE/kkzF2dGyh6CHxlv9om1jPtVTBnXIOpnwwlSPDSvGjAdGzvRHTY7qMxjwu9R7NCYpAk=
ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com;
spf=pass smtp.mailfrom=oss.qualcomm.com;
dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com
header.b=Oe2yBMtu;
dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com
header.b=V9kM/O7X; arc=none smtp.client-ip=205.220.180.131
Authentication-Results: smtp.subspace.kernel.org;
dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com
Authentication-Results: smtp.subspace.kernel.org;
spf=pass smtp.mailfrom=oss.qualcomm.com
Received: from pps.filterd (m0279872.ppops.net [127.0.0.1])
by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id
663HiZSa530691
for <linux-sunxi@lists.linux.dev>; Fri, 3 Jul 2026 19:48:44 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=
cc:content-transfer-encoding:date:from:in-reply-to:message-id
:mime-version:references:subject:to; s=qcppdkim1; bh=vTaFds4j6VI
tza7UvAMztb4cdgVduD/jcDAbw1WAnR0=; b=Oe2yBMtuiakzJoNHyUhWZrUssrK
VkYy44as8rYFaPVY3qYkY58rW5vsbqBLlEVR1wNCoOP409lsvwRermF3M/2rZckO
jDRSAa1yhBNtN9Z35pxSi31zhiIjTvpsUGRTw/pqHw+R0wHgO6YcLOKJUyc8SVKP
c6zl/n2I5OUPpbZRdTcpiWOUvbo0NlKiTQ5N1OKL+St860bWesJlesEKMiGuGXfV
2eby/uOoEfslWXMef31inHLf1ztWTQyHIMq7e5WpqVs0l1nAzq6GJnq4lPGmaaTM
w39ZQFAZOHylcs/I2t11wpHn4o1yjBTu6D/2Ao7mpX6BoNbpRrVQAm2oUnQ==
Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com
[209.85.216.72])
by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4f648n3spc-1
(version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)
for <linux-sunxi@lists.linux.dev>; Fri, 03 Jul 2026 19:48:43 +0000 (GMT)
Received: by mail-pj1-f72.google.com with SMTP id
98e67ed59e1d1-37d4f23eb37so1715056a91.0
for <linux-sunxi@lists.linux.dev>;
Fri, 03 Jul 2026 12:48:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=oss.qualcomm.com; s=google; t=1783108123; x=1783712923;
darn=lists.linux.dev;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:from:to:cc:subject:date
:message-id:reply-to;
bh=vTaFds4j6VItza7UvAMztb4cdgVduD/jcDAbw1WAnR0=;
b=V9kM/O7Xg5a3eVCII6PVTEasfdzVFaatpS3Me1kysHU8NvUJ22janic9ke/m/5ghIH
8r/DcRCY2LwxQwUHUoQ3lKqaZw/iPyKlbf+UnpmPm1zolnTG78bBumX3yBU5UmLKO0LF
JyTEEZX8Wa+RxG+9MRBvKrq+SgNSW/FhZHAMnUxco3t2CigcC40dPxicjwJ8fl5DCbRr
1lTcCJhX+WVTZS/4wlVK3W9Ln5TTDUBU91J9dZCSNRmbyEmI3kEpN5dW6Vga3HZYBc+v
bMwu+r/DbeC2o8bPK0f6k0nUkH+9SPx06Qx+cuPMwUVsbCrPnyzA1Q2IwsmZHBO7IEeH
okUw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20251104; t=1783108123; x=1783712923;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from
:to:cc:subject:date:message-id:reply-to;
bh=vTaFds4j6VItza7UvAMztb4cdgVduD/jcDAbw1WAnR0=;
b=ELLMm3qPeFXdWVFsaGAxm7KXr5bo5sGBUXBXILgMDKx6Vy5JA3jiQoMhXOBQ1aIlsu
o+2ZuB03iZSr8MOxG3Q0ho2wZYQ6f4voIkgQLPW+E/YqcpG2kxRAIRlyskQwcXXl+S10
mm9tWOV5r2zyGcC+N6J64rn2KAFkRqQ6+xaBLNck/Co7DqYVlxuAqJzigfVUFw10zsTR
OamvhLDfFwmX6ITqyfCRviXKQ5L4XrOEbqCIyvujNExc1K7ZtNoNA0HmtIaMxoomftoj
DDjM+21iKTqyxY7dOOdhy8B94dZyddhxOYzhQ7ek37qN7Pce1qasbdPbc45cZAwxj7Ik
cjdw==
X-Forwarded-Encrypted: i=1;
AHgh+RoUqRcYSoVMcgclP4XzG1c5AgGwyMznLBkVwJEfccxqvL1kEkXtZKcIvBXyJUIlIkuaeyJ8ccMFCkTlmw==@lists.linux.dev
X-Gm-Message-State: AOJu0Yy4ekYs4jxhR4i+kLLRMrxVgNQk8hrP8ahRzbpz8j76GyOrpNOr
99edSJf3o8CbksdOVr1NuUObNSL7iUpyVbMvmU42qMDwq77lNN3OnuztJ5CgmaI0KATcP0Db2pf
zZNCoHghiqY0PqCFadhqukPKZXUesTDKmrp9mwDQ3b+/ObFjyslYhxsO1FFCsWX3mdA==
X-Gm-Gg: AfdE7cnr9G7iSSpSDS9kMHdTIN0YPGSqtYA//k/iEYsQJj7r7yUi/4iRo3OpqRAZHs3
GA9KZjhE9GuV3sGgS6I1tmr/OrFcFN6ZAOLeUet+LY9DGfUHegAR3wM8J9WiP6FlYPYcyA1gpn0
SShMsobvR/eHVWCUSNBaHCa8d5Kor4sNnlvmzaYnZFCgedip1OUEVKtNSRvtq1Q+ecJ5GrEVn5a
TAkbS18cxoxm/AeH4fz7zJ8oJ/WhtfKuKR7GvDSbqz937VLLTASWRTyKzBtFgVX0ASlzKzv1ElZ
4JTY9Q2KWXYG1HcyGenLaQbXtWAjt7C/vPCijLB1CYAY4zfOYXtmfT3QelMnmkDABtkQtBA7eHA
T1FDivYGticFqXr+ckoO96Ec0+AWCP19O2VVQlA==
X-Received: by 2002:a17:90b:4a46:b0:37f:f89a:a1e6 with SMTP id
98e67ed59e1d1-3825c50b0aamr934565a91.0.1783108122653;
Fri, 03 Jul 2026 12:48:42 -0700 (PDT)
X-Received: by 2002:a17:90b:4a46:b0:37f:f89a:a1e6 with SMTP id
98e67ed59e1d1-3825c50b0aamr934462a91.0.1783108122019;
Fri, 03 Jul 2026 12:48:42 -0700 (PDT)
Received: from hu-mojha-hyd.qualcomm.com ([202.46.23.25])
by smtp.gmail.com with ESMTPSA id
5a478bee46e88-30f290b6bc2sm10065845eec.27.2026.07.03.12.48.18
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Fri, 03 Jul 2026 12:48:41 -0700 (PDT)
From: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
To: Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Liviu Dudau <liviu.dudau@arm.com>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
Joel Stanley <joel@jms.id.au>,
Andrew Jeffery <andrew@codeconstruct.com.au>,
Paul Cercueil <paul@crapouillou.net>,
Anitha Chrisanthus <anitha.chrisanthus@intel.com>,
Paul Kocialkowski <paulk@sys-base.io>,
Linus Walleij <linusw@kernel.org>, Chen-Yu Tsai <wens@kernel.org>,
Jernej Skrabec <jernej.skrabec@gmail.com>,
Samuel Holland <samuel@sholland.org>,
Alexey Brodkin <abrodkin@synopsys.com>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>,
Michal Simek <michal.simek@amd.com>,
Daniel Scally <dan.scally@ideasonboard.com>,
Jacopo Mondi <jacopo.mondi@ideasonboard.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Eddie James <eajames@linux.ibm.com>,
Tiffany Lin <tiffany.lin@mediatek.com>,
Andrew-CT Chen <andrew-ct.chen@mediatek.com>,
Yunfei Dong <yunfei.dong@mediatek.com>,
Minghsiu Tsai <minghsiu.tsai@mediatek.com>,
Houlong Wei <houlong.wei@mediatek.com>,
Matthias Brugger <matthias.bgg@gmail.com>,
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>,
Joseph Liu <kwliu@nuvoton.com>, Marvin Lin <kflin@nuvoton.com>,
Dmitry Osipenko <dmitry.osipenko@collabora.com>,
Krzysztof Kozlowski <krzk@kernel.org>,
Thierry Reding <thierry.reding@kernel.org>,
Jonathan Hunter <jonathanh@nvidia.com>,
Srinivas Kandagatla <srini@kernel.org>, Arnd Bergmann <arnd@arndb.de>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Ge Gordon <gordon.ge@bst.ai>, Adrian Hunter <adrian.hunter@intel.com>,
Ulf Hansson <ulfh@kernel.org>, Rob Herring <robh@kernel.org>,
Saravana Kannan <saravanak@kernel.org>,
Mathieu Poirier <mathieu.poirier@linaro.org>,
Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
Shengjiu Wang <shengjiu.wang@gmail.com>,
Xiubo Li <Xiubo.Lee@gmail.com>, Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Frank Li <Frank.Li@nxp.com>,
Sascha Hauer <s.hauer@pengutronix.de>,
Peter Ujfalusi <peter.ujfalusi@linux.intel.com>,
Bard Liao <yung-chuan.liao@linux.intel.com>,
Daniel Baluta <daniel.baluta@nxp.com>,
Orson Zhai <orsonzhai@gmail.com>,
Baolin Wang <baolin.wang@linux.alibaba.com>,
Peter Chen <peter.chen@cixtech.com>,
Fugang Duan <fugang.duan@cixtech.com>
Cc: Ekansh Gupta <ekansh.gupta@oss.qualcomm.com>,
BST Linux Kernel Upstream Group <bst-upstream@bstai.top>,
Fabio Estevam <festevam@gmail.com>,
Nicolin Chen <nicoleotsuka@gmail.com>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Kai Vehmanen <kai.vehmanen@linux.intel.com>,
Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>,
Vijendar Mukunda <Vijendar.Mukunda@amd.com>,
Chunyan Zhang <zhang.lyra@gmail.com>,
CIX Linux Kernel Upstream Group <cix-kernel-upstream@cixtech.com>,
linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org,
dri-devel@lists.freedesktop.org, linux-aspeed@lists.ozlabs.org,
linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org,
linux-sunxi@lists.linux.dev, linux-media@vger.kernel.org,
openbmc@lists.ozlabs.org, linux-mediatek@lists.infradead.org,
kernel@collabora.com, linux-tegra@vger.kernel.org,
linux-mmc@vger.kernel.org, devicetree@vger.kernel.org,
linux-remoteproc@vger.kernel.org, linux-staging@lists.linux.dev,
linux-sound@vger.kernel.org, linuxppc-dev@lists.ozlabs.org,
imx@lists.linux.dev, sound-open-firmware@alsa-project.org,
Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
Subject: [PATCH 23/42] mmc: sdhci-of-bst: Use
devm_of_reserved_mem_device_init_by_idx()
Date: Sat, 4 Jul 2026 01:08:36 +0530
Message-ID: <20260703193855.110619-24-mukesh.ojha@oss.qualcomm.com>
X-Mailer: git-send-email 2.53.0
In-Reply-To: <20260703193855.110619-1-mukesh.ojha@oss.qualcomm.com>
References: <20260703193855.110619-1-mukesh.ojha@oss.qualcomm.com>
Precedence: bulk
X-Mailing-List: linux-sunxi@lists.linux.dev
List-Id: <linux-sunxi.lists.linux.dev>
List-Subscribe: <mailto:linux-sunxi+subscribe@lists.linux.dev>
List-Unsubscribe: <mailto:linux-sunxi+unsubscribe@lists.linux.dev>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Proofpoint-Spam-Info: AW1haW4tMjYwNzAzMDIwMCBTYWx0ZWRfX7QEUgfC/rmb5
JqTLZfTGngbto/lOulAOzj6VYyEsxSv8FHS55+tmHgEFV+9AVSJqvzy90Dg1BHmOuEiiWwxG4K3
4gk4wzFzJhhiVGWphLOr6GnmZFCrHGs=
X-Proofpoint-ORIG-GUID: ml4KytKiINJqSETY4ZP4OFTWiFfVl69K
X-Authority-Analysis: v=2.4 cv=O4wJeh9W c=1 sm=1 tr=0 ts=6a48121b cx=c_pps
a=RP+M6JBNLl+fLTcSJhASfg==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17
a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22
a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=EUspDBNiAAAA:8
a=BxB3lidwPopAx76cZsYA:9 a=iS9zxrgQBfv6-_F4QbHw:22
X-Proofpoint-GUID: ml4KytKiINJqSETY4ZP4OFTWiFfVl69K
X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzAzMDIwMCBTYWx0ZWRfXwCBxg+B1vRcc
96neH1SCQ0/+tjcuBqwszZQqVqYfeOwEEaiiuwEZPE5HJ6c0JneiQ2RYDNUcoTLJm18m/XHBxp6
fpwocadB+zFxK1y48w7LsHltg9MiIQDYrVfRkMBIgVxlsNar7A4zsG4tqh6Ls356c9bjIn1FafT
Y0iVQDBe39P5Q2foAZSV+KiYeBm/X1wKmdG8qCuplNPpJnfc2LgmJkureUk0mN4X9715J1l6XIU
OlZKg4PY0Vl4gnAD7/wtpccsAvnXIVtyffuL0AlEI9A0posMAb4HDeXDBJ5KOPYijybvshwPfJp
Au5I3sLyTmnbKxHaVWefpV443RqO0b6eMkYV1Q/7SFakSx2radua1JZtUZxIj34Zpb467XBsV/E
vY2Cndq9+CD5yicfYwpcvFjkNBoIWxJ8u0JQXHemlYeKAAjiC6VvB09wxmxE5C1yVnUcDCIOCub
ox5C8ttiU77KNTqfPMQ==
X-Proofpoint-Virus-Version: vendor=baseguard
engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49
definitions=2026-07-03_03,2026-07-03_01,2025-10-01_01
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0
impostorscore=0 priorityscore=1501 bulkscore=0 clxscore=1015 phishscore=0
suspectscore=0 malwarescore=0 spamscore=0 adultscore=0 lowpriorityscore=0
classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0
reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607030200
X-Rspamd-Server: rspamd-worker-8404
X-Spamd-Result: default: False [-0.66 / 15.00];
BAYES_HAM(-5.50)[100.00%];
RBL_SENDERSCORE(2.00)[172.105.105.114:from];
SUSPICIOUS_RECIPS(1.50)[];
MID_CONTAINS_FROM(1.00)[];
R_MISSING_CHARSET(0.50)[];
MAILLIST(-0.15)[generic];
BAD_REP_POLICIES(0.10)[];
MIME_GOOD(-0.10)[text/plain];
HAS_LIST_UNSUB(-0.01)[];
FROM_HAS_DN(0.00)[];
FUZZY_BLOCKED(0.00)[rspamd.com];
FREEMAIL_CC(0.00)[oss.qualcomm.com,bstai.top,gmail.com,pengutronix.de,linux.intel.com,linux.dev,amd.com,cixtech.com,vger.kernel.org,lists.freedesktop.org,lists.ozlabs.org,lists.infradead.org,lists.linux.dev,collabora.com,alsa-project.org];
PRECEDENCE_BULK(0.00)[];
TAGGED_RCPT(0.00)[];
R_DKIM_ALLOW(0.00)[qualcomm.com:s=qcppdkim1];
DBL_BLOCKED_OPENRESOLVER(0.00)[tor.lore.kernel.org:rdns,tor.lore.kernel.org:helo,qualcomm.com:email,qualcomm.com:dkim];
FROM_NEQ_ENVFROM(0.00)[mukesh.ojha@oss.qualcomm.com,linux-sunxi@lists.linux.dev];
ARC_ALLOW(0.00)[subspace.kernel.org:s=arc-20240116:i=1];
TAGGED_FROM(0.00)[bounces-24141-noreply=patchwork.local];
DKIM_TRACE(0.00)[qualcomm.com:+];
DMARC_POLICY_ALLOW(0.00)[qualcomm.com,reject];
R_SPF_ALLOW(0.00)[+ip4:172.105.105.114];
FORGED_SENDER_MAILLIST(0.00)[];
TO_DN_SOME(0.00)[];
RCVD_COUNT_SEVEN(0.00)[8];
RCPT_COUNT_GT_50(0.00)[93];
FORGED_RECIPIENTS_MAILLIST(0.00)[];
ASN(0.00)[asn:63949, ipnet:172.105.96.0/20, country:SG];
FREEMAIL_TO(0.00)[kernel.org,arm.com,linux.intel.com,suse.de,gmail.com,ffwll.ch,jms.id.au,codeconstruct.com.au,crapouillou.net,intel.com,sys-base.io,sholland.org,synopsys.com,ideasonboard.com,amd.com,linux.ibm.com,mediatek.com,collabora.com,nuvoton.com,nvidia.com,arndb.de,linuxfoundation.org,bst.ai,linaro.org,perex.cz,suse.com,nxp.com,pengutronix.de,linux.alibaba.com,cixtech.com];
RCVD_TLS_LAST(0.00)[];
MIME_TRACE(0.00)[0:+];
RCVD_VIA_SMTP_AUTH(0.00)[]
X-Rspamd-Queue-Id: BBAFB1C0929
X-MORS-Enabled: yes
X-MORS-DOMAIN: patchwork.local
X-MORS-HOSTING: hosting172546
X-MORS-USER: hosting172546
X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?=
|
| Series |
of: reserved_mem: Introduce devres helpers and convert drivers
|
|
Commit Message
Mukesh Ojha
July 3, 2026, 7:38 p.m. UTC
Use the devres-managed devm_of_reserved_mem_device_init_by_idx() instead
of the manual of_reserved_mem_device_init_by_idx()/
of_reserved_mem_device_release() pair, letting the device resource
manager handle cleanup automatically.
Signed-off-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
---
drivers/mmc/host/sdhci-of-bst.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
Comments
On Fri, Jul 3, 2026 at 9:48 PM Mukesh Ojha <mukesh.ojha@oss.qualcomm.com> wrote: > > Use the devres-managed devm_of_reserved_mem_device_init_by_idx() instead > of the manual of_reserved_mem_device_init_by_idx()/ > of_reserved_mem_device_release() pair, letting the device resource > manager handle cleanup automatically. > > Signed-off-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com> Acked-by: Ulf Hansson <ulfh@kernel.org> Kind regards Uffe > --- > drivers/mmc/host/sdhci-of-bst.c | 7 ++----- > 1 file changed, 2 insertions(+), 5 deletions(-) > > diff --git a/drivers/mmc/host/sdhci-of-bst.c b/drivers/mmc/host/sdhci-of-bst.c > index f8d3df715e1a..304554ced690 100644 > --- a/drivers/mmc/host/sdhci-of-bst.c > +++ b/drivers/mmc/host/sdhci-of-bst.c > @@ -405,7 +405,6 @@ static void sdhci_bst_free_bounce_buffer(struct sdhci_host *host) > host->bounce_buffer, host->bounce_addr); > host->bounce_buffer = NULL; > } > - of_reserved_mem_device_release(mmc_dev(host->mmc)); > } > > static int sdhci_bst_alloc_bounce_buffer(struct sdhci_host *host) > @@ -417,7 +416,7 @@ static int sdhci_bst_alloc_bounce_buffer(struct sdhci_host *host) > /* Fixed SRAM bounce size to 32KB: verified config under 32-bit DMA addressing limit */ > bounce_size = SZ_32K; > > - ret = of_reserved_mem_device_init_by_idx(mmc_dev(mmc), mmc_dev(mmc)->of_node, 0); > + ret = devm_of_reserved_mem_device_init_by_idx(mmc_dev(mmc), mmc_dev(mmc)->of_node, 0); > if (ret) { > dev_err(mmc_dev(mmc), "Failed to initialize reserved memory\n"); > return ret; > @@ -425,10 +424,8 @@ static int sdhci_bst_alloc_bounce_buffer(struct sdhci_host *host) > > host->bounce_buffer = dma_alloc_coherent(mmc_dev(mmc), bounce_size, > &host->bounce_addr, GFP_KERNEL); > - if (!host->bounce_buffer) { > - of_reserved_mem_device_release(mmc_dev(mmc)); > + if (!host->bounce_buffer) > return -ENOMEM; > - } > > host->bounce_buffer_size = bounce_size; > > -- > 2.53.0 >
On 03/07/2026 22:38, Mukesh Ojha wrote: > Use the devres-managed devm_of_reserved_mem_device_init_by_idx() instead > of the manual of_reserved_mem_device_init_by_idx()/ > of_reserved_mem_device_release() pair, letting the device resource > manager handle cleanup automatically. > > Signed-off-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com> Acked-by: Adrian Hunter <adrian.hunter@intel.com> > --- > drivers/mmc/host/sdhci-of-bst.c | 7 ++----- > 1 file changed, 2 insertions(+), 5 deletions(-) > > diff --git a/drivers/mmc/host/sdhci-of-bst.c b/drivers/mmc/host/sdhci-of-bst.c > index f8d3df715e1a..304554ced690 100644 > --- a/drivers/mmc/host/sdhci-of-bst.c > +++ b/drivers/mmc/host/sdhci-of-bst.c > @@ -405,7 +405,6 @@ static void sdhci_bst_free_bounce_buffer(struct sdhci_host *host) > host->bounce_buffer, host->bounce_addr); > host->bounce_buffer = NULL; > } > - of_reserved_mem_device_release(mmc_dev(host->mmc)); > } > > static int sdhci_bst_alloc_bounce_buffer(struct sdhci_host *host) > @@ -417,7 +416,7 @@ static int sdhci_bst_alloc_bounce_buffer(struct sdhci_host *host) > /* Fixed SRAM bounce size to 32KB: verified config under 32-bit DMA addressing limit */ > bounce_size = SZ_32K; > > - ret = of_reserved_mem_device_init_by_idx(mmc_dev(mmc), mmc_dev(mmc)->of_node, 0); > + ret = devm_of_reserved_mem_device_init_by_idx(mmc_dev(mmc), mmc_dev(mmc)->of_node, 0); > if (ret) { > dev_err(mmc_dev(mmc), "Failed to initialize reserved memory\n"); > return ret; > @@ -425,10 +424,8 @@ static int sdhci_bst_alloc_bounce_buffer(struct sdhci_host *host) > > host->bounce_buffer = dma_alloc_coherent(mmc_dev(mmc), bounce_size, > &host->bounce_addr, GFP_KERNEL); > - if (!host->bounce_buffer) { > - of_reserved_mem_device_release(mmc_dev(mmc)); > + if (!host->bounce_buffer) > return -ENOMEM; > - } > > host->bounce_buffer_size = bounce_size; >
diff --git a/drivers/mmc/host/sdhci-of-bst.c b/drivers/mmc/host/sdhci-of-bst.c index f8d3df715e1a..304554ced690 100644 --- a/drivers/mmc/host/sdhci-of-bst.c +++ b/drivers/mmc/host/sdhci-of-bst.c @@ -405,7 +405,6 @@ static void sdhci_bst_free_bounce_buffer(struct sdhci_host *host) host->bounce_buffer, host->bounce_addr); host->bounce_buffer = NULL; } - of_reserved_mem_device_release(mmc_dev(host->mmc)); } static int sdhci_bst_alloc_bounce_buffer(struct sdhci_host *host) @@ -417,7 +416,7 @@ static int sdhci_bst_alloc_bounce_buffer(struct sdhci_host *host) /* Fixed SRAM bounce size to 32KB: verified config under 32-bit DMA addressing limit */ bounce_size = SZ_32K; - ret = of_reserved_mem_device_init_by_idx(mmc_dev(mmc), mmc_dev(mmc)->of_node, 0); + ret = devm_of_reserved_mem_device_init_by_idx(mmc_dev(mmc), mmc_dev(mmc)->of_node, 0); if (ret) { dev_err(mmc_dev(mmc), "Failed to initialize reserved memory\n"); return ret; @@ -425,10 +424,8 @@ static int sdhci_bst_alloc_bounce_buffer(struct sdhci_host *host) host->bounce_buffer = dma_alloc_coherent(mmc_dev(mmc), bounce_size, &host->bounce_addr, GFP_KERNEL); - if (!host->bounce_buffer) { - of_reserved_mem_device_release(mmc_dev(mmc)); + if (!host->bounce_buffer) return -ENOMEM; - } host->bounce_buffer_size = bounce_size;