From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796392037; b=sA6JArKBMmb8oHr0jB5f/pC2AMapqPS/TXJmcuVtPQAN6ELdnE8Vl1K+1Wa/xicyjmXS l5hSyPkAaMNID5wMizaOGhVm/w4Ko9smICu0Kr7lfgdVaS21pbpG3A3aE8aFZ61hsJC/F vWwLEytOOjGFlg5XhOdj8Rn92PPxQ5bjGQXnMmoGJUoyZQNzq4o7bB8v27AHFkvBHek2S gk7GZhD/SCxA2/xKy1rOmbpe4+3/XSvJ184H5sAFTfln49V7oaxxhE0ZumPuna6j8ro5Y ackNfdGNKY3P4qVuC8/799wrP6cPu31qeA+11iWj+3kpLVfy6lP00nM1y0cBOpENKRA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796392037; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:Date:From: To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To:X-Proofpoint-Spam-Details-Enc: X-Proofpoint-ORIG-GUID:X-Authority-Analysis:X-Proofpoint-Spam-Info: X-Proofpoint-GUID:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=J3JkkuPdJNO14WouLim8wAbCt2HvEFLYcHu5Nfp/N00=; b=q/jLvrXRUyUycudimYs4ptuUup0KbCq/AqBV05jKdpTkTS2D4YIEBeeOzEVGKezD6A4N UEmF+OpDgyqCnHNSUgduxrQRz3k2Gg7bx7abZjq233yE4Hh94v/YO3RGIcXKo+oPOMBFl yUm1epEIzpIS+KL2cdtze2ofaTSAGnizHGbkNnNSQnR80U7dj96C55Jjdhei7xgiMCmHW X+N806rUSejcjq9hWpH/Hkjw2XYOo15TOpb9TN3bQwUrWwqmQedy3rwLZxWggZqdno7ZS Vt81k/gcAqm7IPFRCT8/QgdU/4p3bN++VTamBjkr4ycHpOdimZQZ2Nt+xieuVADibqQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=gswxyTx3; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=i0cy1Emm; arc=none smtp.remote-ip=205.220.168.131 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D7B91606A686 for ; Fri, 4 Dec 2026 13:47:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D7B91606A686 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=gswxyTx3; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=i0cy1Emm Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B4BI2mT1841538 for ; Fri, 4 Dec 2026 13:47:16 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to; s=qcppdkim1; bh=J3JkkuPdJNO14WouLim8wAbC t2HvEFLYcHu5Nfp/N00=; b=gswxyTx3SetbYe8XxqkLu+t2esZfL1NxGO2kulWM iZ/uCvZp+uM5Oz8RwPXkdaioPJxIQoD7Mt0kdjiORh3DpZ4S/NioqhPgWET4Q7xi xKREkLr/IJSSfwmFSGYJwg8r7dmQ20nf9PJG6nQgeTv2VdJ1WWuJla7qG2mESJOd yxwt6EE8nmjsfNaib5+aWgvac/1OHHn2DBkAS5v+G6RG4xgNmmjKUG8XwRJJrVch TR5ZdytwQ+DmxHOUbTfgJeS3w3Mw40CUxkEEU0HtnPNUrZ6HrV03gynzKVTNbmqQ 2jJrUwSizZKAedMwS9ljWTNMKNs3s5r4OS/S5NaToOPZnA== Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4jbq7q1ftg-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 04 Dec 2026 13:47:15 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-94961511b61so146054085a.3 for ; Fri, 04 Dec 2026 05:47:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796392035; x=1796996835; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=J3JkkuPdJNO14WouLim8wAbCt2HvEFLYcHu5Nfp/N00=; b=i0cy1EmmNsXnqu5iPePMnDp3YI76HUs3Mg5ah/IBVdjABG1uzOQBVQ4ECXdXUACLZc iQuXZ81Buzqfuo3AiKurzCLOIbnCsz2Pooyli1huB4mh9hD7Y+TEbdeloSlkeKZvg9EO ShfrFVSyIVzpi1AuoF5OwC23Og01KN37iLjSBFi8eUbOBLLgMyFnA9VUo06tmR8PBf09 wO0MnDkrHOnaJ5m43mlyqmGtBogWoY6q1b/bvux7cr7qKgteUpPlC49RWkS3KQrkgzEk qMsaT0r23cusgwUrOqXApEjNSw436UxYf2aoODH0OuTdz9E0o30SMs6fdbvhManh3Ey0 tx2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796392035; x=1796996835; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=J3JkkuPdJNO14WouLim8wAbCt2HvEFLYcHu5Nfp/N00=; b=qF0+nGkdDxLS0C/oOw3MdD+DFlG6SQnqhrc/hgCbHYc58IEJqqJ8rnyyr8Ps0e2GS+ juds7Fjs51mlRI26qoZxm6g1IyWmJVqqfhE8Yc8rpFz3GE3SnCtg9KjvIyvLsLY/OFox FJMiOLvXok1mjgnDm/zw+NwSIz08mjLokS7fPrMvu2t/XaRb+ARwxaT29qUfPPBvVbMu lCyTMfVAObF4mc47FN11HHpF/yzCSys5o7/ecjbipGp8c0R6dsVk5IMGQYXNrVDPRxVm BT9CnyexSTDy2T3DNGoKGdCrCLRyBCnPqv0FrFDzSt8kzV7qxThGZeD/0R6YbMtNknGU 2Weg== X-Forwarded-Encrypted: i=1; AL+hErFPCbSUNcf+FRawz7ZwaWgn+tq/QylvPTjZQ72m1xp1eDyBxZ5xBoKOX5+vYyCTEhDwKCYn/vn8mvyN41/O@vger.kernel.org X-Gm-Message-State: APuU4Z8wVQ+/C15xNWLYKWAU+RxQICnuxP9i9YTwSw9sdhCtG4Oq/tX2 h8YlcJ9Y8ga3lApbslr4clJk+7DW5tTb6hRtKw+Jpw7+ApRsYvyV9J+Nf+4Lj2J22WZLyvDRCAW EYE75rUpOV3yiT6PCCUYma6stF8/3TxPS7qgTV9a9WM77QmFTGWO0I/wY8TZ1sO1uS8DT X-Gm-Gg: AZFdTZd+5STjG4BNedTtodP9HNCntCaWzBBLuaWcjy8O+7zZRDT/g4iH2WfHKd0scL2 Cw8I473NhBa5W9zi0+PFvZxL0GrSrk2WJkSFtUbGZFcoqxEOBWQ4k1jNjTmrJJlzIDwz5P1mCE5 l7ODJcuUAClUh5H2oL598jhgcr5mWFJgXxnn3F6+xmA1cC0B+tUzmNqs/WoRIxs3qLaQ2oQrAap pEG77aDoYb9wd85XlTSkUII8K9aj8QVSN1U0jymiA5JfXJ+iu2XyFHMzf3LAz8gYq9H7ihU0fFD 3y0Q7CpxYNy4NgHI4O0gjVcsNNr8wkLNnuya4SadBCH97WJiyWvE2zdYVCIt/RjirFIt/5sTRs7 fh+Opwvex5ZK1u30dcM6aWoCrAeXj+GnEnEDy6QuRacILjBy1RDXgS/StVaaMpQ== X-Received: by 2002:a05:620a:2843:b0:93f:3163:3e25 with SMTP id af79cd13be357-94a827922camr266487185a.24.1796392034601; Fri, 04 Dec 2026 05:47:14 -0800 (PST) X-Received: by 2002:a05:620a:2843:b0:93f:3163:3e25 with SMTP id af79cd13be357-94a827922camr266481785a.24.1796392033940; Fri, 04 Dec 2026 05:47:13 -0800 (PST) Received: from localhost ([130.25.105.85]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bbe00a2f98sm168795135e9.9.2026.12.04.05.47.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 05:47:13 -0800 (PST) Date: Fri, 4 Dec 2026 14:47:12 +0100 From: Lorenzo Bianconi To: Alex Elder Cc: sboyd@kernel.org, bmasney+clk@redhat.com, jbrunet+clk@baylibre.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, p.zabel@pengutronix.de, andersson@kernel.org, konradybcio@kernel.org, abelvesa@kernel.org, arnd@arndb.de, gregkh@linuxfoundation.org, daniel@riscstar.com, mohd.anwar@oss.qualcomm.com, fabrice.gasnier@foss.st.com, alexandre.torgue@foss.st.com, marex@nabladev.com, changhuang.liang@starfivetech.com, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 2/4] reset: toshiba: introduce a TC9564 reset driver Message-ID: References: <20261203200948.1595470-1-elder@riscstar.com> <20261203200948.1595470-3-elder@riscstar.com> <70717fcc-59a5-4029-92d7-42617160c757@riscstar.com> X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Un9wxTbMUDZm+oaY" Content-Disposition: inline In-Reply-To: <70717fcc-59a5-4029-92d7-42617160c757@riscstar.com> X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjA0MDA1NCBTYWx0ZWRfX+bheQUFl494Y dtWJrY/ZV65kUdirTKMU0b/s5MelsF4ubUiwmPNR3bNSGfCpl6dz5taIb4mJ9bdsj06KWfe1ZaR awPyRLFz/ZN0mJQGFtuOaRPtGqVDQPM9Fs0EezwJGP/xEMC+Hj3ipDADx+cyjTjqTiJtYrg3CYZ vpXRKpjLoLJgI0MRFTP15PmxOdbBFMkE/XjGFYJ2gvd21xce45p8u10GsffBYqj0chgYLEbbhy7 6f7qhWwOYy9D6YYCj+nchklJ6JEQ2MWrLCqQczaQ1CFp/lxQ+LuP6BsnqlReUqCUOfEy6OYP+Y5 gYhk9lo4sLSxeik79MmRa4K1KNKSNK5Bs+AajzaqI7YyZJAtnu/GNzp9h8ozWObVPoWIVr79qLd 1UUt9QA92gj5lGirx2NqRduiRKuSauIe6xLleMmu5/Y46OfTWjkSMFFSdIqgEZIyvsGb5iYPrGK MleTOjE3p/HLVevytEQ== X-Proofpoint-ORIG-GUID: i_BiawecYQMaPYEL869cmGzFU9V3AV4n X-Authority-Analysis: v=2.4 cv=HOtWhYtv c=1 sm=1 tr=0 ts=6b12c463 cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=RcFDq6c+avmIvxkL9iwlxA==:17 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=EUspDBNiAAAA:8 a=ee_2aqc6AAAA:8 a=84AiC_8bmQjDLoUn-VQA:9 a=CjuIK1q_8ugA:10 a=DfxHtd_X_eUyKpq_lgoA:9 a=NFOGd7dJGGMPyQGDc5-O:22 a=VOpmJXOdbJOWo2YY3GeN:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMjA0MDA1NCBTYWx0ZWRfX9BJFq4FN5lRa hJiSMJUkF4pHCT2eLYwOflbd/glTsfv+vW9cCAaFHx/BBp2GviMcXtQOtveIBBGh37Mh4RalZR4 XupzV+/n4zjriCOGTuv+Pjgxf9j60wk= X-Proofpoint-GUID: i_BiawecYQMaPYEL869cmGzFU9V3AV4n X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-04_02,2026-12-03_04,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 priorityscore=1501 clxscore=1015 phishscore=0 malwarescore=0 lowpriorityscore=0 bulkscore=0 adultscore=0 impostorscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612040054 --Un9wxTbMUDZm+oaY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Dec 04, Alex Elder wrote: > On 12/4/26 3:42 AM, Lorenzo Bianconi wrote: > > > Define a new auxiliary device driver that manages resets implemented > > > by the Toshiba TC9564 SoC. The TC9564 clock driver will create the > > > reset device, which will bind to this driver. > > >=20 > > > The reset controller uses two registers to control a set of 13 resets > > > that can be asserted or deasserted. Only a subset of the resets can > > > currently be managed. > > >=20 > > > The MMIO region containing the two control registers is mapped by > > > the clock controller driver, and passed via the auxiliary device's > > > platform data. > > >=20 > > > Some common definitions are added to to > > > specify the interface between the clock and reset drivers. > > >=20 > > > Reviewed-by: Philipp Zabel > > > Reviewed-by: Lorenzo Bianconi > > > Co-developed-by: Daniel Thompson > > > Signed-off-by: Daniel Thompson > > > Signed-off-by: Alex Elder > > > --- > > > v5: - Code related to the I2C and PCIE resets (including code that > > > warned if they were used) has been removed. > > > - The Kconfig now selects AUXILIARY_BUS > > > - Philipp's Reviewed-by tag has been added. > > >=20 > > > MAINTAINERS | 1 + > > > drivers/reset/Kconfig | 8 ++ > > > drivers/reset/Makefile | 1 + > > > drivers/reset/reset-tc9564.c | 165 +++++++++++++++++++++++++++++= +++ > > > include/linux/soc/qcom/tc9563.h | 9 ++ > > > 5 files changed, 184 insertions(+) > > > create mode 100644 drivers/reset/reset-tc9564.c > > >=20 >=20 >=20 > . . . >=20 > > > diff --git a/include/linux/soc/qcom/tc9563.h b/include/linux/soc/qcom= /tc9563.h > > > index 086f37a40d801..f778ce9ae2e7c 100644 > > > --- a/include/linux/soc/qcom/tc9563.h > > > +++ b/include/linux/soc/qcom/tc9563.h > > > @@ -16,4 +16,13 @@ > > > #define TC9563_GPIO_CONFIG TC9563_GPIO_EN0_OFFSET > > > #define TC9563_RESET_GPIO TC9563_GPIO_OUT0_OFFSET > > > +/* Name of the clock driver and the reset auxiliary device it create= s */ > > > +#define TC9564_CLK_MODNAME "clk_tc9564" > > > +#define TC9564_RESET_DEV_NAME "tc9564-reset" > > > + > > > +/* Platform data passed to the TC9564 reset auxiliary driver */ > > > +struct tc9564_aux_data { > > > + void __iomem *regs; > >=20 > > nit: I guess we do not really need it. >=20 > I'm not sure what you mean here. The mapped registers pointer > is required by the auxiliary reset driver, so we need to pass > it via platform data. >=20 >=20 > If what you're saying is that we could just pass the pointer > alone, rather than a structure that *contains* the pointer, > that is technically true. (And I think that's what you're > saying.) >=20 > The reason I did it this way is that assigning an __iomem > tagged pointer to a simple void pointer (like the platform > data) produces a "sparse" warning: >=20 > warning: incorrect type in assignment (different address spaces) >=20 > That happens in the clock driver (when setting the platform > data) and in the auxiliary reset driver (when getting it > from the platform data). I didn't like that, so I enclosed > it in a structure to avoid the problem. >=20 > I *would* prefer to just pass the mapped pointer. But even if > I try to cast away the warning with (void *) we get a different > warning from "sparse": >=20 > warning: cast removes address space '__iomem' of expression ack, right. I missed it. Thx :) Regards, Lorenzo >=20 > I think the __iomem tag has value and putting it inside a > structure preserves it (and avoids these warnings). So > that's how I did it. >=20 > Unless there are other objections I'd like to keep it this way. >=20 > Thanks. >=20 > -Ales >=20 >=20 > > Regards, > > Lorenzo > >=20 > > > +}; > > > + > > > #endif /* __QCOM_TC9563_H */ > > > --=20 > > > 2.53.0 > > >=20 >=20 --Un9wxTbMUDZm+oaY Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCaxLEYAAKCRA6cBh0uS2t rPt/AP9QqdzX83SsiVRhjIpUWQmAuDA7YmkGopiFYh575QU84gD8CeJcWaEViqkI 28xZrgxJhyRdk2x7tMU547Od2OUNYg8= =jphs -----END PGP SIGNATURE----- --Un9wxTbMUDZm+oaY--