diff options
author | Peter Chen <peter.chen@nxp.com> | 2020-02-17 09:26:43 +0800 |
---|---|---|
committer | Peter Chen <peter.chen@nxp.com> | 2020-07-28 14:06:59 +0800 |
commit | 62b9825827518843f0f93dec6730ddcde14eb5b2 (patch) | |
tree | a0310c351b016268a29b0e60fd57eb82d7b21925 /include/linux/usb/chipidea.h | |
parent | c71d13f9a868e2ea4d31284bc7975c7ec145167f (diff) | |
download | linux-62b9825827518843f0f93dec6730ddcde14eb5b2.tar.gz linux-62b9825827518843f0f93dec6730ddcde14eb5b2.tar.bz2 linux-62b9825827518843f0f93dec6730ddcde14eb5b2.zip |
usb: chipidea: add query_available_role interface
The glue layer may need to know current available role to do some
setting, eg, the wakeup setting. So we add ci_hdrc_query_available_role
for that.
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Diffstat (limited to 'include/linux/usb/chipidea.h')
-rw-r--r-- | include/linux/usb/chipidea.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/usb/chipidea.h b/include/linux/usb/chipidea.h index 54167a2d28ea..025b41687ce9 100644 --- a/include/linux/usb/chipidea.h +++ b/include/linux/usb/chipidea.h @@ -99,5 +99,7 @@ struct platform_device *ci_hdrc_add_device(struct device *dev, struct ci_hdrc_platform_data *platdata); /* Remove ci hdrc device */ void ci_hdrc_remove_device(struct platform_device *pdev); +/* Get current available role */ +enum usb_dr_mode ci_hdrc_query_available_role(struct platform_device *pdev); #endif |