Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1716318 > unrolled thread

[PATCH] extcon: max77693: Allow MHL attach notifier

Started byMaciej Purski <m.purski@samsung.com>
First post2017-08-21 13:10 +0200
Last post2017-08-25 02:40 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH] extcon: max77693: Allow MHL attach notifier Maciej Purski <m.purski@samsung.com> - 2017-08-21 13:10 +0200
    Re: [PATCH] extcon: max77693: Allow MHL attach notifier Chanwoo Choi <cw00.choi@samsung.com> - 2017-08-25 02:40 +0200

#1716318 — [PATCH] extcon: max77693: Allow MHL attach notifier

FromMaciej Purski <m.purski@samsung.com>
Date2017-08-21 13:10 +0200
Subject[PATCH] extcon: max77693: Allow MHL attach notifier
Message-ID<ugSKJ-3D7-3@gated-at.bofh.it>
Without this patch extcon couldn't notify attaching MHL cable.

Signed-off-by: Maciej Purski <m.purski@samsung.com>
---
 drivers/extcon/extcon-max77693.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/extcon/extcon-max77693.c b/drivers/extcon/extcon-max77693.c
index 6216346..b325be8 100644
--- a/drivers/extcon/extcon-max77693.c
+++ b/drivers/extcon/extcon-max77693.c
@@ -811,8 +811,7 @@ static int max77693_muic_chg_handler(struct max77693_muic_info *info)
 			 */
 			extcon_set_state_sync(info->edev, EXTCON_CHG_USB_DCP,
 						attached);
-			if (!cable_attached)
-				extcon_set_state_sync(info->edev,
+			extcon_set_state_sync(info->edev,
 					EXTCON_DISP_MHL, cable_attached);
 			break;
 		}
-- 
2.7.4

[toc] | [next] | [standalone]


#1719673

FromChanwoo Choi <cw00.choi@samsung.com>
Date2017-08-25 02:40 +0200
Message-ID<uiaPf-5kN-13@gated-at.bofh.it>
In reply to#1716318
On 2017년 08월 21일 20:07, Maciej Purski wrote:
> Without this patch extcon couldn't notify attaching MHL cable.
> 
> Signed-off-by: Maciej Purski <m.purski@samsung.com>
> ---
>  drivers/extcon/extcon-max77693.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/extcon/extcon-max77693.c b/drivers/extcon/extcon-max77693.c
> index 6216346..b325be8 100644
> --- a/drivers/extcon/extcon-max77693.c
> +++ b/drivers/extcon/extcon-max77693.c
> @@ -811,8 +811,7 @@ static int max77693_muic_chg_handler(struct max77693_muic_info *info)
>  			 */
>  			extcon_set_state_sync(info->edev, EXTCON_CHG_USB_DCP,
>  						attached);
> -			if (!cable_attached)
> -				extcon_set_state_sync(info->edev,
> +			extcon_set_state_sync(info->edev,
>  					EXTCON_DISP_MHL, cable_attached);
>  			break;
>  		}
> 

Applied it. Thanks.

-- 
Best Regards,
Chanwoo Choi
Samsung Electronics

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web