tbsdtv / linux_media

TBS linux open source drivers
https://github.com/tbsdtv/linux_media/wiki
Other
170 stars 79 forks source link

Bug: unloading tbsecp3 module does not release slave modules #189

Open tvhdeeptho opened 4 years ago

tvhdeeptho commented 4 years ago

When unloading the tbsecp3 module, the si2157 and si2183 and rda5816 resources are not properly released. This makes it impossible to unload those modules which hinders debugging.

Its seems that

void tbsecp3_i2c_remove_clients(struct tbsecp3_adapter *adapter)

was made to handle this issue, but its code is currently disables. If I re-enable the code (by replacing #if 0 with #if 1), unloading works. Sometimes it is even possible to reload the si... modules and watch tv, but kernel panics follow soon after.

crazycat69 commented 4 years ago

disabled because kernel panic on unload.