lkml.org 
[lkml]   [2010]   [Mar]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subjectstaging/dt3155: Question about dt3155_init_isr
Date
From
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
\
 
 \ /
  Last update: 2010-03-02 00:21    [W:0.022 / U:1.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site