]> git.baikalelectronics.ru Git - kernel.git/commit
[media] au0828: rework GPIO management for HVR-950q
authorDevin Heitmueller <dheitmueller@kernellabs.com>
Mon, 19 Aug 2013 21:25:16 +0000 (18:25 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 28 Feb 2014 18:21:31 +0000 (15:21 -0300)
commit052954b2aaa9ca31e8e3df664beaae427257e088
tree2310280a9bf8bfcd41725c73b7586a6b7ec49058
parentb0abab2f22febbd318af1eeb8be1bf25d604cbd4
[media] au0828: rework GPIO management for HVR-950q

Restructure the way we bring the various GPIOs out of reset.  In particular:

1.  we only need to setup the GPIOs as outputs once
2.  there's no point in writing 0x40 to register 0x00 since that's the EEPROM
    write protect and already it's configured as an input
3.  Separate out the act of enabling the power supply and bringing the tuner
    and demod out of reset.  If you don't then the chip may not be properly
    enabled (as the power supply is still ramping up when the chip comes
    out of reset).  This can result in probing failures.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/au0828/au0828-cards.c