Re: [PATCH 5/8] usb: ohci-da8xx: add vbus and overcurrent gpios

2019-02-08 Thread Sekhar Nori
Hi Bartosz, On 05/02/19 3:55 PM, Bartosz Golaszewski wrote: > +static irqreturn_t ohci_da8xx_oc_handler(int irq, void *data) > +{ > + struct da8xx_ohci_hcd *da8xx_ohci = data; > + > + if (gpiod_get_value_cansleep(da8xx_ohci->oc_gpio)) > + gpiod_set_value_cansleep(da8xx_ohci->vb

[PATCH 5/8] usb: ohci-da8xx: add vbus and overcurrent gpios

2019-02-05 Thread Bartosz Golaszewski
From: Bartosz Golaszewski There are two users upstream which register external callbacks for switching the port power on/off and overcurrent protection. Both users only use two GPIOs for that. Instead of having that functionality in the board files, move the logic into the OHCI driver - including