<apelete>
according to gdb log, driver got stuck in platform_set_drvdata()
<apelete>
but I can't tell why, I don't see anything suspicious
<apelete>
larsc mth: could you please tell me what's wrong in there ?
<mth>
I'll try, looking at the code now
<apelete>
thanks
<larsc>
I don't think it is possible to get stuck in platform_set_drvdata
<mth>
yeah, there is no loop there, so it should always exit
<mth>
clk_put is not necessary if you acquired it with devm_clk_get
<apelete>
ok
<mth>
but I don't see anything obviously wrong
<apelete>
mth: so what's wrong in the code then ? how come the kernel is panicking ?
<apelete>
<mth> but I don't see anything obviously wrong
<apelete>
I still have gdb running right now
<apelete>
mth: I can print some variables if you suspect something, and paste it so you can see
<mth>
where does that SIGHUP come from?
<apelete>
good question, I don't really see where it might come from
<mth>
I mean, why does the debugger stop there, something must have triggered it?
<mth>
does the kernel get stuck as well if you boot it without the debugger?
<mth>
and if so, what is the last thing that it logs?
<mth>
I tend to debug with logging rather than interactive debuggers most of the time; I still mistrust debuggers from my Turbo Pascal days
<apelete>
ok I'll recompile it right away without the debugger option and see what happens
<viric>
gdb isn't that bad :)
<apelete>
I need it to understand how the usb code works (looking at the call stack and printing variables, and so on)
<apelete>
but I will disable it just for now to see what happens
<mth>
viric: a big part of the problem was that the Turbo Pascal IDE ran in the same process as the program being debugged, so if you had any memory corruption the debugger itself or the data it was operating on could be invalidated
<mth>
gdb is more reliable, but still there are situations in which it is feeding nonsense
<pcercuei>
and it's generally a bad idea to trust blindly a program
kyak has quit [Read error: Operation timed out]
kyak has joined #qi-hardware
kyak has joined #qi-hardware
<apelete>
mth: I'm recompiling, should get the log soon
<apelete>
meanwhile, what does that SIGHUP means in kernel context ?