linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] extcon: max77693: Fix cable name of MHL-TA and USB-HOST
@ 2015-01-29  8:45 Jaewon Kim
  2015-01-29  8:45 ` [PATCH 1/2] extcon: max77693: Fix cable name of MHL-TA Jaewon Kim
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jaewon Kim @ 2015-01-29  8:45 UTC (permalink / raw)
  To: Chanwoo Choi, linux-kernel; +Cc: Inki Dae, Jaewon Kim

This patch series fixes extcon cable name of MHL-TA
and unify the term 'USB-HOST' and 'USB-OTG' to 'USB-HOST'.

Jaewon Kim (2):
  extcon: max77693: Fix cable name of MHL-TA
  extcon: max77693: Fix cable name of USB-HOST

 drivers/extcon/extcon-max77693.c |   32 ++++++++++++++++----------------
 1 file changed, 16 insertions(+), 16 deletions(-)

-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] extcon: max77693: Fix cable name of MHL-TA
  2015-01-29  8:45 [PATCH 0/2] extcon: max77693: Fix cable name of MHL-TA and USB-HOST Jaewon Kim
@ 2015-01-29  8:45 ` Jaewon Kim
  2015-01-29  8:45 ` [PATCH 2/2] extcon: max77693: Fix cable name of USB-HOST Jaewon Kim
  2015-01-30  2:39 ` [PATCH 0/2] extcon: max77693: Fix cable name of MHL-TA and USB-HOST Chanwoo Choi
  2 siblings, 0 replies; 4+ messages in thread
From: Jaewon Kim @ 2015-01-29  8:45 UTC (permalink / raw)
  To: Chanwoo Choi, linux-kernel; +Cc: Inki Dae, Jaewon Kim

This patch fixes extcon cable name of MHL-TA instead of MHL_TA
to unify cable name style.

Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
---
 drivers/extcon/extcon-max77693.c |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/extcon/extcon-max77693.c b/drivers/extcon/extcon-max77693.c
index 740a14d..1c2af58 100644
--- a/drivers/extcon/extcon-max77693.c
+++ b/drivers/extcon/extcon-max77693.c
@@ -228,7 +228,7 @@ static const char *max77693_extcon_cable[] = {
 	[EXTCON_CABLE_SLOW_CHARGER]		= "Slow-charger",
 	[EXTCON_CABLE_CHARGE_DOWNSTREAM]	= "Charge-downstream",
 	[EXTCON_CABLE_MHL]			= "MHL",
-	[EXTCON_CABLE_MHL_TA]			= "MHL_TA",
+	[EXTCON_CABLE_MHL_TA]			= "MHL-TA",
 	[EXTCON_CABLE_JIG_USB_ON]		= "JIG-USB-ON",
 	[EXTCON_CABLE_JIG_USB_OFF]		= "JIG-USB-OFF",
 	[EXTCON_CABLE_JIG_UART_OFF]		= "JIG-UART-OFF",
@@ -823,19 +823,19 @@ static int max77693_muic_chg_handler(struct max77693_muic_info *info)
 		case MAX77693_MUIC_GND_MHL:
 		case MAX77693_MUIC_GND_MHL_VB:
 			/*
-			 * MHL cable with MHL_TA(USB/TA) cable
+			 * MHL cable with MHL-TA(USB/TA) cable
 			 * - MHL cable include two port(HDMI line and separate
 			 * micro-usb port. When the target connect MHL cable,
-			 * extcon driver check whether MHL_TA(USB/TA) cable is
-			 * connected. If MHL_TA cable is connected, extcon
+			 * extcon driver check whether MHL-TA(USB/TA) cable is
+			 * connected. If MHL-TA cable is connected, extcon
 			 * driver notify state to notifiee for charging battery.
 			 *
-			 * Features of 'MHL_TA(USB/TA) with MHL cable'
+			 * Features of 'MHL-TA(USB/TA) with MHL cable'
 			 * - Support MHL
 			 * - Support charging through micro-usb port without
 			 *   data connection
 			 */
-			extcon_set_cable_state(info->edev, "MHL_TA", attached);
+			extcon_set_cable_state(info->edev, "MHL-TA", attached);
 			if (!cable_attached)
 				extcon_set_cable_state(info->edev,
 						      "MHL", cable_attached);
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] extcon: max77693: Fix cable name of USB-HOST
  2015-01-29  8:45 [PATCH 0/2] extcon: max77693: Fix cable name of MHL-TA and USB-HOST Jaewon Kim
  2015-01-29  8:45 ` [PATCH 1/2] extcon: max77693: Fix cable name of MHL-TA Jaewon Kim
@ 2015-01-29  8:45 ` Jaewon Kim
  2015-01-30  2:39 ` [PATCH 0/2] extcon: max77693: Fix cable name of MHL-TA and USB-HOST Chanwoo Choi
  2 siblings, 0 replies; 4+ messages in thread
From: Jaewon Kim @ 2015-01-29  8:45 UTC (permalink / raw)
  To: Chanwoo Choi, linux-kernel; +Cc: Inki Dae, Jaewon Kim

This patch unifies the term called 'USB_OTG' and 'USB_HOST'
into USB_HOST. OTG(On-The-Go) function supports USB host and
this driver sents 'USB-Host event. So, unifies term to USB_HOST.

Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
---
 drivers/extcon/extcon-max77693.c |   20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/drivers/extcon/extcon-max77693.c b/drivers/extcon/extcon-max77693.c
index 1c2af58..b1d95aa 100644
--- a/drivers/extcon/extcon-max77693.c
+++ b/drivers/extcon/extcon-max77693.c
@@ -190,8 +190,8 @@ enum max77693_muic_acc_type {
 	/* The below accessories have same ADC value so ADCLow and
 	   ADC1K bit is used to separate specific accessory */
 						/* ADC|VBVolot|ADCLow|ADC1K| */
-	MAX77693_MUIC_GND_USB_OTG = 0x100,	/* 0x0|      0|     0|    0| */
-	MAX77693_MUIC_GND_USB_OTG_VB = 0x104,	/* 0x0|      1|     0|    0| */
+	MAX77693_MUIC_GND_USB_HOST = 0x100,	/* 0x0|      0|     0|    0| */
+	MAX77693_MUIC_GND_USB_HOST_VB = 0x104,	/* 0x0|      1|     0|    0| */
 	MAX77693_MUIC_GND_AV_CABLE_LOAD = 0x102,/* 0x0|      0|     1|    0| */
 	MAX77693_MUIC_GND_MHL = 0x103,		/* 0x0|      0|     1|    1| */
 	MAX77693_MUIC_GND_MHL_VB = 0x107,	/* 0x0|      1|     1|    1| */
@@ -403,8 +403,8 @@ static int max77693_muic_get_cable_type(struct max77693_muic_info *info,
 
 			/**
 			 * [0x1|VBVolt|ADCLow|ADC1K]
-			 * [0x1|     0|     0|    0] USB_OTG
-			 * [0x1|     1|     0|    0] USB_OTG_VB
+			 * [0x1|     0|     0|    0] USB_HOST
+			 * [0x1|     1|     0|    0] USB_HSOT_VB
 			 * [0x1|     0|     1|    0] Audio Video cable with load
 			 * [0x1|     0|     1|    1] MHL without charging cable
 			 * [0x1|     1|     1|    1] MHL with charging cable
@@ -523,7 +523,7 @@ static int max77693_muic_dock_handler(struct max77693_muic_info *info,
 		 * - Support charging and data connection through micro-usb port
 		 *           if USB cable is connected between target and host
 		 *	     device.
-		 * - Support OTG device (Mouse/Keyboard)
+		 * - Support OTG(On-The-Go) device (Ex: Mouse/Keyboard)
 		 */
 		ret = max77693_muic_set_path(info, info->path_usb, attached);
 		if (ret < 0)
@@ -609,9 +609,9 @@ static int max77693_muic_adc_ground_handler(struct max77693_muic_info *info)
 				MAX77693_CABLE_GROUP_ADC_GND, &attached);
 
 	switch (cable_type_gnd) {
-	case MAX77693_MUIC_GND_USB_OTG:
-	case MAX77693_MUIC_GND_USB_OTG_VB:
-		/* USB_OTG, PATH: AP_USB */
+	case MAX77693_MUIC_GND_USB_HOST:
+	case MAX77693_MUIC_GND_USB_HOST_VB:
+		/* USB_HOST, PATH: AP_USB */
 		ret = max77693_muic_set_path(info, CONTROL1_SW_USB, attached);
 		if (ret < 0)
 			return ret;
@@ -704,7 +704,7 @@ static int max77693_muic_adc_handler(struct max77693_muic_info *info)
 
 	switch (cable_type) {
 	case MAX77693_MUIC_ADC_GROUND:
-		/* USB_OTG/MHL/Audio */
+		/* USB_HOST/MHL/Audio */
 		max77693_muic_adc_ground_handler(info);
 		break;
 	case MAX77693_MUIC_ADC_FACTORY_MODE_USB_OFF:
@@ -886,7 +886,7 @@ static int max77693_muic_chg_handler(struct max77693_muic_info *info)
 			 * - Support charging and data connection through micro-
 			 *   usb port if USB cable is connected between target
 			 *   and host device
-			 * - Support OTG device (Mouse/Keyboard)
+			 * - Support OTG(On-The-Go) device (Ex: Mouse/Keyboard)
 			 */
 			ret = max77693_muic_set_path(info, info->path_usb,
 						    attached);
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] extcon: max77693: Fix cable name of MHL-TA and USB-HOST
  2015-01-29  8:45 [PATCH 0/2] extcon: max77693: Fix cable name of MHL-TA and USB-HOST Jaewon Kim
  2015-01-29  8:45 ` [PATCH 1/2] extcon: max77693: Fix cable name of MHL-TA Jaewon Kim
  2015-01-29  8:45 ` [PATCH 2/2] extcon: max77693: Fix cable name of USB-HOST Jaewon Kim
@ 2015-01-30  2:39 ` Chanwoo Choi
  2 siblings, 0 replies; 4+ messages in thread
From: Chanwoo Choi @ 2015-01-30  2:39 UTC (permalink / raw)
  To: Jaewon Kim; +Cc: linux-kernel, Inki Dae

Hi Jaewon,

On 01/29/2015 05:45 PM, Jaewon Kim wrote:
> This patch series fixes extcon cable name of MHL-TA
> and unify the term 'USB-HOST' and 'USB-OTG' to 'USB-HOST'.
> 
> Jaewon Kim (2):
>   extcon: max77693: Fix cable name of MHL-TA
>   extcon: max77693: Fix cable name of USB-HOST
> 
>  drivers/extcon/extcon-max77693.c |   32 ++++++++++++++++----------------
>  1 file changed, 16 insertions(+), 16 deletions(-)
> 

Looks good to me. Applied patch1 and 2.
But, I changes the patch title of patch2 as following:
- extcon: max77693: Use HOST term to express USB-HOST cable instead of OTG term

Thanks,
Chanwoo Choi


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-01-30  2:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-29  8:45 [PATCH 0/2] extcon: max77693: Fix cable name of MHL-TA and USB-HOST Jaewon Kim
2015-01-29  8:45 ` [PATCH 1/2] extcon: max77693: Fix cable name of MHL-TA Jaewon Kim
2015-01-29  8:45 ` [PATCH 2/2] extcon: max77693: Fix cable name of USB-HOST Jaewon Kim
2015-01-30  2:39 ` [PATCH 0/2] extcon: max77693: Fix cable name of MHL-TA and USB-HOST Chanwoo Choi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).