Re: [PATCH] bus: fsl-mc: register the object drivers after misc_class exists

From: Ioana Ciornei

Date: Mon Sep 07 2026 - 09:54:56 EST


On Tue, Sep 01, 2026 at 10:04:37PM +0200, Vincent Jardin via B4 Relay wrote:
> From: Vincent Jardin <vjardin@xxxxxxx>
>
> Unbinding and re-binding the root DPRC fails with:
>
> sysfs: cannot create duplicate filename '/dev/char/10:256'
> misc_register / fsl_mc_uapi_create_device_file /
> dprc_setup / dprc_probe
>

Do you mean that the above error messages are triggered by an unbind and
bind sequence like below?

$ echo dprc.1 > /sys/bus/fsl-mc/drivers/fsl_mc_dprc/unbind
$ echo dprc.1 > /sys/bus/fsl-mc/drivers/fsl_mc_dprc/bind

I am asking this because I cannot seem to trigger it myself. There is a
misc_deregister() which should remove the char device upon unbinding the
root DPRC.

Ioana