Re: [PATCH V2] USB: bcma: switch to GPIO descriptor for power control

2015-11-01 Thread Hauke Mehrtens
On 11/01/2015 10:04 AM, Rafał Miłecki wrote: > So far we were using simple (legacy) GPIO functions & some poor logic to > control power. It got many drawbacks: we were ignoring OF flags > (GPIO_ACTIVE_LOW), we were not setting direction to output and we were > assuming gpio_request success all the

[PATCH V2] USB: bcma: switch to GPIO descriptor for power control

2015-11-01 Thread Rafał Miłecki
So far we were using simple (legacy) GPIO functions & some poor logic to control power. It got many drawbacks: we were ignoring OF flags (GPIO_ACTIVE_LOW), we were not setting direction to output and we were assuming gpio_request success all the time. Fix it by switching to gpiod functions and addi