summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorJack Pham <jackp@codeaurora.org>2017-03-02 11:37:00 -0800
committerJack Pham <jackp@codeaurora.org>2017-03-20 19:05:09 -0700
commitfd0ff67425eb9f6b5cb211e50ca3b8f3a81bea4a (patch)
tree7f83ba53915f203ef74c8b12b517ea534f6fb38e /include/linux/debugobjects.h
parent563b2f7a6bed72d34560df5f4358e948eb52a43f (diff)
usb: pd: Determine dual_role writeable based on PD capability
Allowing 'data_role' and 'power_role' sysfs attributes to be writeable implies that they can be changed independently. This is only true if there is a PD-capable device attached, otherwise the write permission should not be set. Also make sure to call dual_role_instance_changed() at the conclusion of initiating a DR swap in order to trigger the is_writeable() callback to update the permissions. Note that the PR swap case is already handled during the call to usbpd_set_state(PE_{SRC,SNK}_READY). Change-Id: I3f4bcaa8ae32af9a124e6f0967509c784e776f7d Signed-off-by: Jack Pham <jackp@codeaurora.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions