WSL2-Linux-Kernel/drivers/staging/dt3155
H Hartley Sweeten 6536560cab Staging: dt3155: fix 50Hz configuration
According to the header file, dt3155_io.h, the 50/60 Hz configuration
is controlled by a bit in the I2C CSR2 register (bit 2).  The function
dt3155_init_isr actually reads the I2C CONFIG register into the global
I2C_CSR union variable then modifies the bit.  It then does a write
to the I2C CONFIG register with the global I2C_CONFIG union variable
which is not even set with a value anywhere in the driver.

My guess is 50Hz operation doesn't even work as-is.

Fix this by actually reading and writing the correct register with
the correct value.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Simon Horman <horms@verge.net.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-04-30 09:30:10 -07:00
..
Kconfig Staging: dt3155: add it to the build 2010-03-03 16:42:31 -08:00
Makefile Staging: dt3155: add it to the build 2010-03-03 16:42:31 -08:00
TODO Staging: dt3155: add TODO file 2010-03-03 16:42:31 -08:00
allocator.README Staging: add dt3155 driver 2010-03-03 16:42:31 -08:00
allocator.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
allocator.h staging: dt3155: revert u_long to u64 usage 2010-03-03 16:43:07 -08:00
dt3155.h staging: dt3155: revert u_long to u64 usage 2010-03-03 16:43:07 -08:00
dt3155.sysvinit Staging: add dt3155 driver 2010-03-03 16:42:31 -08:00
dt3155_drv.c Staging: dt3155: fix 50Hz configuration 2010-04-30 09:30:10 -07:00
dt3155_drv.h Staging: dt3155: replace u_int and u_long usage 2010-03-03 16:42:56 -08:00
dt3155_io.c staging: dt3155: revert u_long to u64 usage 2010-03-03 16:43:07 -08:00
dt3155_io.h staging: dt3155: revert u_long to u64 usage 2010-03-03 16:43:07 -08:00
dt3155_isr.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
dt3155_isr.h staging: dt3155: revert u_long to u64 usage 2010-03-03 16:43:07 -08:00