How to unload mxc_ipuv3_fb?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to unload mxc_ipuv3_fb?

ソリューションへジャンプ
1,298件の閲覧回数
jotes
Contributor IV

Hello,

 

In our project we want to load mxc_ipuv3_fb driver as a module and unload it when it is not used. We have no problem with loading it (for example to work with ldb driver), but when we are trying to unload, it shows:

 

# modprobe -r mxc_ipuv3_fb

modprobe: can't unload module mxc_ipuv3_fb: Resource temporarily unavailable

 

# lsmod

Module                  Size  Used by    Tainted: P

mxc_ipuv3_fb           44938  1

ldb                     9401  0

mxc_dispdrv             1705  2 mxc_ipuv3_fb,ldb

My question is, how to stop mxc_ipuv3_fb and unload it properly?

 

Basically, we want to do this because we need to register two drivers to one Display Interface (more specifically, we want to connect HDMI driver and CVBS driver to IPU0 DI1, and let the userspace application choose between them). Is there any other way to do this (without reloading display module)?

0 件の賞賛
1 解決策
1,116件の閲覧回数
jotes
Contributor IV

Thanks, Igor.

The only way to unload the module was to build kernel with CONFIG_MODULE_FORCE_UNLOAD option and then use command: rmmod -f mxc_ipuv3_fb.
But loading the HDMI driver as a kernel module seemed to be too complicated, so we changed our project's plans.

元の投稿で解決策を見る

0 件の賞賛
2 返答(返信)
1,116件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi jotes

resource can be used by other ipu drivers described

in sect.6.3 Source Code Structure attached Linux Manual and

one can try to analyze their dependencies and first unload driver which uses

mxc_ipuv3_fb.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
1,117件の閲覧回数
jotes
Contributor IV

Thanks, Igor.

The only way to unload the module was to build kernel with CONFIG_MODULE_FORCE_UNLOAD option and then use command: rmmod -f mxc_ipuv3_fb.
But loading the HDMI driver as a kernel module seemed to be too complicated, so we changed our project's plans.

0 件の賞賛