From: Chanwoo Choi Date: Thu, 6 Dec 2012 12:36:18 +0000 (+0900) Subject: extcon: max77693: Fix bug when detecting MHL/Dock-Audio with USB/TA cable X-Git-Tag: v3.9-rc1~124^2~113^2~12 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e2738f59c6db185a70a683059980bd2296571ca;p=pandora-kernel.git extcon: max77693: Fix bug when detecting MHL/Dock-Audio with USB/TA cable This patch fix bug that muic couldn't detect MHL/Dock-Audio with USB/TA cable on exception situation. I explain detail case on following: When MHL(with USB/TA cable) or Dock-Audio with USB/TA cable is attached, the MUIC device happen following two interrupt. - 'MAX77693_MUIC_IRQ_INT1_ADC' for detecting MHL/Dock-Audio. - 'MAX77693_MUIC_IRQ_INT2_CHGTYP' for detecting USB/TA cable connected to MHL/Dock-Audio. Always, happen eariler MAX77693_MUIC_IRQ_INT1_ADC interrupt than MAX77693_MUIC_IRQ_INT2_CHGTYP interrupt. If user attach MHL with USB/TA cable and immediately detach MHL with USB/TA cable before MAX77693_MUIC_IRQ_INT2_CHGTYP interrupt is happened, USB/TA connected to MHL cable remain connected state to target. But USB/TA connected to MHL cable isn't connected to target. user be faced with unusual action. So, driver should check this situation in spite of that, previous charger type is N/A. Signed-off-by: Chanwoo Choi Signed-off-by: Myungjoo Ham --- Reading git-diff-tree failed