Messages in this thread | | | Subject | staging/dt3155: Question about dt3155_init_isr | Date | Mon, 1 Mar 2010 18:19:34 -0500 | From | "H Hartley Sweeten" <> |
| |
Hello all,
In dt3155_drv.c the function dt3155_init_isr() sets up the card for interrupt generation. About half way thru the function is the following:
/* 50/60 Hz should be set before this point but let's make sure it is */ /* right anyway */
ReadI2C(dt3155_lbase[ minor ], CONFIG, &i2c_csr2.reg); i2c_csr2.fld.HZ50 = FORMAT50HZ; WriteI2C(dt3155_lbase[ minor ], CONFIG, i2c_config.reg);
Based on the register definitions in dt3155_io.h shouldn't this actually be:
ReadI2C(dt3155_lbase[ minor ], CSR2, &i2c_csr2.reg); i2c_csr2.fld.HZ50 = FORMAT50HZ; WriteI2C(dt3155_lbase[ minor ], CSR2, i2c_csr2.reg);
Regards, Hartley
| |