usb: gadget: udc: renesas_usb3: Add role switch support for RZ/V2M
authorBiju Das <biju.das.jz@bp.renesas.com>
Sat, 21 Jan 2023 14:58:47 +0000 (14:58 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Jan 2023 14:48:16 +0000 (15:48 +0100)
commit3827fa1ef38f52d9de7ec6e52b4f724dd7b60bb2
treeaf1ecd1a95dba0d8b23af9f5cc1267e1b6f2e6d9
parent9cad72dfc5567c66ab0e5a0a2474c5f36c268694
usb: gadget: udc: renesas_usb3: Add role switch support for RZ/V2M

As RZ/V2M has both HOST and PERI reset module, we need to do reset release
before accessing registers in respective IP module.

This patch adds role switch support for RZ/V2M.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20230121145853.4792-7-biju.das.jz@bp.renesas.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/renesas_usb3.c