Jean Delvare wrote: > Hi all, > > I have the following patch, which addresses a might-sleep-in-tasklet > issue in the ds1374 driver. I'm not too sure if the new code is right > or not, as I have never been using workqueues before, and I also don't > have a DS1374 chip to test my changes on. > > Can anyone comment on the patch and tell me if anything is wrong? > > Can anyone with a DS1374 chip please test it? I've attached a similar patch that has been tested using the DS1374 on the Freescale MPC8349MDS reference system. It is patterned after a similar change made to the m41t00 driver. The changes work, but I am also unfamiliar with workqueues, so my patch may not be any better. > > I want this to be fixed now, because in -mm the ds1374 driver also uses > the new mutex implementation, which is not allowed in tasklets, but is > OK in workqueues. > > Thanks. >