Searched hist:d0fbdcbe (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/media/i2c/ccs/ |
H A D | ccs.h | d0fbdcbe Thu Jun 18 06:12:51 CDT 2020 Sakari Ailus <sakari.ailus@linux.intel.com> media: ccs: Request for "reset" GPIO
The DT bindings documented "reset-gpios" property but the driver never made use of it. Instead it used a GPIO called "xshutdown", with apprently wrong polarity.
Fix this by requesting "reset" GPIO with the right polarity first, and if that fails, then request "xshutdown" GPIO with the old polarity. This way it works for new users as expected while if someone, somewhere, depended on "xshutdown" GPIO, that continues to work as well.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
|
H A D | ccs-core.c | d0fbdcbe Thu Jun 18 06:12:51 CDT 2020 Sakari Ailus <sakari.ailus@linux.intel.com> media: ccs: Request for "reset" GPIO
The DT bindings documented "reset-gpios" property but the driver never made use of it. Instead it used a GPIO called "xshutdown", with apprently wrong polarity.
Fix this by requesting "reset" GPIO with the right polarity first, and if that fails, then request "xshutdown" GPIO with the old polarity. This way it works for new users as expected while if someone, somewhere, depended on "xshutdown" GPIO, that continues to work as well.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
|