From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (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 968FE3A0B13 for ; Thu, 2 Apr 2026 12:34:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775133271; cv=none; b=uJARD92j8kEqd2zZA5ma/YBMOwyecC6qmqRnuQy5l78I5/FskM3ZPopJBLIX+xqGupnKtbCZJ2T+Gdc81q7DhinwNYbsiZYE89Mt7a9zRtvxCadPXwRZ84XQxa1kUZ8uFp+NWC/g++LB+w0GraK3qEJmBneYRn4+Cwdvz4Mh4wQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775133271; c=relaxed/simple; bh=vBVr1hY9zmi6eTqZ1irgBj8oY02q9+mPcGyT8biDgPk=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=IkMGC6uk0ueJPJVlPojzzTAb4zkowbIOZYQ2N2xRswWtbHpeeJwPB0LIpNwatKv63Vrem0dDS3vbPdtKqsudG6QODseGjgw9u8jYoghG4suTL2wU9HVn6MXIv0h5T++4fsL0+ODNWjoNZly7WGglfXUhG1rOwOoUwcJgMG3LgLU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1w8HFR-0004fG-Cz; Thu, 02 Apr 2026 14:34:09 +0200 Received: from lupine.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::4e] helo=lupine) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w8HFP-003NFN-36; Thu, 02 Apr 2026 14:34:07 +0200 Received: from pza by lupine with local (Exim 4.98.2) (envelope-from ) id 1w8HFP-000000009U5-3YvQ; Thu, 02 Apr 2026 14:34:07 +0200 Message-ID: <2ff25486a332ee3bfae1b30147445a44b11ff42e.camel@pengutronix.de> Subject: Re: [PATCH v10 4/5] reset: rzv2h-usb2phy: Convert to regmap API From: Philipp Zabel To: Tommaso Merciai , tomm.merciai@gmail.com, peda@axentia.se Cc: linux-renesas-soc@vger.kernel.org, biju.das.jz@bp.renesas.com, Fabrizio Castro , Lad Prabhakar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm , Arnd Bergmann , Ulf Hansson , Josua Mayer , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 02 Apr 2026 14:34:07 +0200 In-Reply-To: <0732e1c53f21671b3a1a78db99fbbe3b78016d52.1775047175.git.tommaso.merciai.xr@bp.renesas.com> References: <0732e1c53f21671b3a1a78db99fbbe3b78016d52.1775047175.git.tommaso.merciai.xr@bp.renesas.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2-0+deb13u1 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: devicetree@vger.kernel.org On Mi, 2026-04-01 at 17:16 +0200, Tommaso Merciai wrote: > Replace raw MMIO accesses (readl/writel) with regmap_read() and > regmap_multi_reg_write() via devm_regmap_init_mmio(). > Drop the manual spinlock as regmap provides internal locking. >=20 > Replace the custom rzv2h_usb2phy_regval struct with the standard > reg_sequence, and encode assert/deassert sequences as reg_sequence > arrays rather than individual scalar fields in the of_data > descriptor. >=20 > Use the reg_sequence .delay_us field to encode the 11 =C2=B5s post-assert > delay, replacing the explicit usleep_range(11, 20) call in > rzv2h_usbphy_reset_assert(). >=20 > Select REGMAP_MMIO in Kconfig. >=20 > Signed-off-by: Tommaso Merciai Reviewed-by: Philipp Zabel regards Philipp