summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorXu Yang <xu.yang_2@nxp.com>2026-04-27 15:57:55 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-05-22 11:20:56 +0200
commit8f6aa392653e52a45858cff5c063df550028836b (patch)
tree24a884ba404545acff4cf722c6b8a76ad81aba5d /kernel
parent2796646f6d892c1eb6818c7ca41fdfa12568e8d1 (diff)
usb: chipidea: core: convert ci_role_switch to local variable
When a system contains multiple USB controllers, the global ci_role_switch variable may be overwritten by subsequent driver initialization code. This can cause issues in the following cases: - The 2nd ci_hdrc_probe() sees ci_role_switch.fwnode as non-NULL even though the "usb-role-switch" property is not present for the controller. - When the ci_hdrc device is unbound and bound again, ci_role_switch fwnode will not be reassigned, and the old value will be used instead. Convert ci_role_switch to a local variable to fix these issues. Fixes: 05559f10ed79 ("usb: chipidea: add role switch class support") Cc: stable <stable@kernel.org> Acked-by: Peter Chen <peter.chen@kernel.org> Reviewed-by: Frank Li <Frank.Li@nxp.com> Signed-off-by: Xu Yang <xu.yang_2@nxp.com> Link: https://patch.msgid.link/20260427075755.3611217-1-xu.yang_2@nxp.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions