summaryrefslogtreecommitdiff
path: root/drivers/extcon/extcon-rt8973a.c
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2015-11-09 04:10:15 +0300
committerChanwoo Choi <cw00.choi@samsung.com>2016-01-25 07:16:53 +0300
commit8b45b6a0741678902810d7be95e635c210fbb198 (patch)
treed79afeed652c392dee1464cc57eadba3c39d8bd7 /drivers/extcon/extcon-rt8973a.c
parentb51b387020ee1c2bc27bf9121ca9b9d4113e433d (diff)
downloadlinux-8b45b6a0741678902810d7be95e635c210fbb198.tar.xz
extcon: Add the EXTCON_CHG_USB_SDP to support SDP charing port
This patch adds the new EXTCON_CHG_USB_SDP connector to support SDP (Standard Downstream Port) USB charging port. The commit 11eecf910bd8 ("extcon: Modify the id and name of external connector") add the new EXTCON_CHG_USB_SDP connector which support the both data transfer and usb charging at the same time. Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Diffstat (limited to 'drivers/extcon/extcon-rt8973a.c')
-rw-r--r--drivers/extcon/extcon-rt8973a.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/extcon/extcon-rt8973a.c b/drivers/extcon/extcon-rt8973a.c
index 7635a8eaf4c6..97e074d70eca 100644
--- a/drivers/extcon/extcon-rt8973a.c
+++ b/drivers/extcon/extcon-rt8973a.c
@@ -93,6 +93,7 @@ static struct reg_data rt8973a_reg_data[] = {
static const unsigned int rt8973a_extcon_cable[] = {
EXTCON_USB,
EXTCON_USB_HOST,
+ EXTCON_CHG_USB_SDP,
EXTCON_CHG_USB_DCP,
EXTCON_JIG,
EXTCON_NONE,
@@ -398,6 +399,9 @@ static int rt8973a_muic_cable_handler(struct rt8973a_muic_info *info,
/* Change the state of external accessory */
extcon_set_cable_state_(info->edev, id, attached);
+ if (id == EXTCON_USB)
+ extcon_set_cable_state_(info->edev, EXTCON_CHG_USB_SDP,
+ attached);
return 0;
}