From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chanwoo Choi Subject: Re: [PATCH] extcon: palmas: Fix boot up state of VBUS when using GPIO detection Date: Wed, 15 Jun 2016 10:57:24 +0900 Message-ID: <5760B604.10407@samsung.com> References: <1465913075-30166-1-git-send-email-rogerq@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-reply-to: <1465913075-30166-1-git-send-email-rogerq@ti.com> Sender: linux-kernel-owner@vger.kernel.org To: Roger Quadros , myungjoo.ham@samsung.com Cc: balbi@kernel.org, nm@ti.com, grygorii.strashko@ti.com, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org List-Id: linux-omap@vger.kernel.org On 2016=EB=85=84 06=EC=9B=94 14=EC=9D=BC 23:04, Roger Quadros wrote: > If USB cable is connected prior to boot, we don't get any interrupts > so we must manually check the VBUS state and report it during probe. > If we don't do it then USB controller will never know that peripheral > cable was connected till the user unplugs and replugs the cable. >=20 > Fixes: b7aad8e2685b ("extcon: palmas: Add the support for VBUS detect= ion by using GPIO") > Signed-off-by: Roger Quadros > --- > drivers/extcon/extcon-palmas.c | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/drivers/extcon/extcon-palmas.c b/drivers/extcon/extcon-p= almas.c > index 8b3226d..caff46c 100644 > --- a/drivers/extcon/extcon-palmas.c > +++ b/drivers/extcon/extcon-palmas.c > @@ -360,6 +360,8 @@ static int palmas_usb_probe(struct platform_devic= e *pdev) > =20 > palmas_enable_irq(palmas_usb); > /* perform initial detection */ > + if (palmas_usb->enable_gpio_vbus_detection) > + palmas_vbus_irq_handler(palmas_usb->gpio_vbus_irq, palmas_usb); > palmas_gpio_id_detect(&palmas_usb->wq_detectid.work); > device_set_wakeup_capable(&pdev->dev, true); > return 0; >=20 Applied it. Thanks, Chanwoo Choi