Re: [PATCH v4 4/6] reset: Add Cortina Systems CS7542 global reset controller

From: Philipp Zabel

Date: Wed Nov 25 2026 - 06:19:22 EST


On Mi, 2026-11-25 at 13:34 +0300, Fil Dunsky via B4 Relay wrote:
> From: Fil Dunsky <filipp.dunsky@xxxxxxxxx>
>
> Use the shared syscon regmap to control three PCIe and seven network
> engine reset signals. PCIe consumers supply their own assert and
> recovery timing. Verify level transitions of the network resets before
> the consumer releases DMA buffers. Reject the unassigned group ID to
> preserve exclusive ownership of the underlying lines.
>
> The clock provider registers early for timers. Match the platform
> device for the same syscon when reset consumers can probe.
>
> Signed-off-by: Fil Dunsky <filipp.dunsky@xxxxxxxxx>
> ---
> drivers/reset/Kconfig | 10 ++++
> drivers/reset/Makefile | 1 +
> drivers/reset/reset-cs7542.c | 134 +++++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 145 insertions(+)
>
[...]
> diff --git a/drivers/reset/reset-cs7542.c b/drivers/reset/reset-cs7542.c
> new file mode 100644
> index 000000000..b86c82554
> --- /dev/null
> +++ b/drivers/reset/reset-cs7542.c
> @@ -0,0 +1,134 @@
[...]
> +static int cs7542_reset_probe(struct platform_device *pdev)
> +{
> + struct device *dev = &pdev->dev;
> + struct cs7542_reset *rst;
> +
> + /* Clock-only descriptions also use this syscon. */
> + if (!of_property_present(dev->of_node, "#reset-cells"))
> + return 0;
> +
> + rst = devm_kzalloc(dev, sizeof(*rst), GFP_KERNEL);

devm_kzalloc_obj()


regards
Philipp