Re: [PATCH v6 3/3] scsi: ufs: rpmb: Drop the unregistered ufs_rpmb bus

From: Alexey Charkov

Date: Thu Nov 12 2026 - 07:44:31 EST


On Thu, Nov 12, 2026 at 4:41 AM Stanley Jhu <stanleyjhu@xxxxxxxxxx> wrote:
>
> ufs_rpmb_probe() assigns ufs_rpmb_bus_type to dev.bus without ever
> calling bus_register(). Since commit 36f35b8df697 ("driver core: reject
> devices with unregistered buses"), device_register() rejects
> unregistered buses with -EINVAL and UFS RPMB region registration fails.
>
> ufs_rpmb_bus_type defines no callbacks and has no drivers, and
> consumers look up regions through /sys/class/rpmb. Drop
> ufs_rpmb_bus_type and leave dev.bus unset.
>
> Fixes: b06b8c421485 ("scsi: ufs: core: Add OP-TEE based RPMB driver for UFS devices")
> Cc: stable@xxxxxxxxxxxxxxx
> Reviewed-by: Bean Huo <beanhuo@xxxxxxxxxx>
> Signed-off-by: Stanley Jhu <stanleyjhu@xxxxxxxxxx>
> ---

Thanks a lot, Stanley! Works like a charm on my Rockchip RK3576 with
two UFS 2.2 parts, FORESEE C2G071 and BIWIN BWU2A0526B128G.

Tested-by: Alexey Charkov <alchark@xxxxxxxxxxx>

Best regards,
Alexey