Cai Wenzhong b7fa365e98 media: i2c: maxim: local: fix the issue of mutex deadlock during hot plug
<3>[ 2169.596144][   T63] INFO: task irq/132-maxim4c:200 blocked for more than 720 seconds.
<3>[ 2169.596172][   T63]       Not tainted 5.10.160-abibuild_20240531.213136 #1
<3>[ 2169.596183][   T63] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
<6>[ 2169.596225][   T63] task:irq/132-maxim4c state:D stack:    0 pid: 200 ppid:     2 flags:0x00000008
<6>[ 2169.596243][   T63] Call trace:
<6>[ 2169.596254][   T63]  __switch_to+0x118/0x148
<6>[ 2169.596266][   T63]  __schedule+0x4ac/0x6f0
<6>[ 2169.596277][   T63]  schedule+0xa4/0xe8
<6>[ 2169.596287][   T63]  schedule_preempt_disabled+0x2c/0x48
<6>[ 2169.596297][   T63]  __mutex_lock+0x364/0x584
<6>[ 2169.596306][   T63]  __mutex_lock_slowpath+0x1c/0x28
<6>[ 2169.596316][   T63]  mutex_lock+0x44/0x68
<6>[ 2169.596327][   T63]  maxim4c_hot_plug_detect_irq_handler+0x30/0xa4
<6>[ 2169.596337][   T63]  irq_thread_fn+0x38/0x84
<6>[ 2169.596346][   T63]  irq_thread+0x1c4/0x264
<6>[ 2169.596356][   T63]  kthread+0x140/0x36c
<6>[ 2169.596366][   T63]  ret_from_fork+0x10/0x18
<3>[ 2169.596566][   T63] INFO: task kworker/u16:8:842 blocked for more than 720 seconds.
<3>[ 2169.596577][   T63]       Not tainted 5.10.160-abibuild_20240531.213136 #1
<3>[ 2169.596586][   T63] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
<6>[ 2169.596619][   T63] task:kworker/u16:8   state:D stack:    0 pid: 842 ppid:     2 flags:0x00000028
<6>[ 2169.596638][   T63] Workqueue: maxim4c work queue maxim4c_hot_plug_state_check_work
<6>[ 2169.596651][   T63] Call trace:
<6>[ 2169.596661][   T63]  __switch_to+0x118/0x148
<6>[ 2169.596671][   T63]  __schedule+0x4ac/0x6f0
<6>[ 2169.596681][   T63]  schedule+0xa4/0xe8
<6>[ 2169.596691][   T63]  synchronize_irq+0x7c/0xb8
<6>[ 2169.596701][   T63]  disable_irq+0x78/0xa4
<6>[ 2169.596711][   T63]  maxim4c_hot_plug_state_check_work+0x324/0x394
<6>[ 2169.596722][   T63]  process_one_work+0x1f8/0x480
<6>[ 2169.596731][   T63]  worker_thread+0x278/0x4d4
<6>[ 2169.596741][   T63]  kthread+0x140/0x36c
<6>[ 2169.596759][   T63]  ret_from_fork+0x10/0x18

Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I9ca122e3c09a55b8a024e50da9ea2e3d176e72e0
2024-06-13 15:29:00 +08:00
2024-05-08 11:14:32 +08:00
2024-05-08 11:14:32 +08:00
2024-05-08 11:14:32 +08:00
2024-05-08 11:14:32 +08:00
2024-05-08 11:14:32 +08:00
2024-05-08 11:14:32 +08:00
2024-05-08 11:14:32 +08:00
2022-09-28 09:02:20 +02:00
2024-01-25 15:27:52 -08:00

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
Description
No description provided
Readme 7.9 GiB
Languages
C 97.7%
Assembly 1.6%
Makefile 0.3%
Perl 0.1%