Em domingo, 2 de abril de 2017 19:51:03 UTC-3, Emilio López escreveu: > > Hi, > > El 30/03/17 a las 23:48, Vinicius Maciel escribió: > > Hi, > > > > I'm calling spi_sync_transfer inside a threaded interrupt function and > > makes kernel crash. > > Threaded interrupt functions are supposed can sleep. Could be a problem > > on sun4i_spi_transfer_one > > when call wait_for_completion_timeout? > > > > kernel log: https://pastebin.com/RNAdGTHE > > It's hard to say without looking at the code, is this max11043 driver > published somewhere? Is max11043_interrupt() the threaded part of the > interrupt handler? spi_sync_transfer() can sleep so you can't use it > inside the non-threaded part. > > Hi Emilio,
I'm doing the driver by myself. And it turns out that I ended up using the function in the wrong way, but I have fixed. Thanks. -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
