linux_dsm_epyc7002/drivers/media
Neil Armstrong 9f7406d6b5 media: platform: ao-cec-g12a: disable regmap fast_io for cec bus regmap
With fast_io enabled, spinlock_irq is used for read/write operations,
thus leading to :
BUG: sleeping function called from invalid context at [snip]/ao-cec-g12a.c:379
 in_atomic(): 1, irqs_disabled(): 128, pid: 1451, name: irq/14-ff800280
[snip]
Call trace:
 dump_backtrace+0x0/0x180
 show_stack+0x14/0x1c
 dump_stack+0xa8/0xe0
 ___might_sleep+0xf4/0x104
 __might_sleep+0x4c/0x80
 meson_ao_cec_g12a_read+0x7c/0x164
 regmap_read+0x16c/0x1b0
 meson_ao_cec_g12a_irq_thread+0xcc/0x200
 irq_thread_fn+0x2c/0x60
 irq_thread+0x14c/0x1fc
 kthread+0x11c/0x12c
 ret_from_fork+0x10/0x18

Simply remove fast_io to use mutexes instead.

Fixes: b7778c4668 ("media: platform: meson: Add Amlogic Meson G12A AO CEC Controller driver")

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-06-03 10:45:55 -04:00
..
cec media: cec-adap: fix regression in ping sanity check 2019-05-29 10:38:11 -04:00
common media: videobuf2-vmalloc: get_userptr: buffers are always writable 2019-05-29 08:05:58 -04:00
dvb-core Linux 5.2-rc2 2019-05-28 11:21:51 -04:00
dvb-frontends Linux 5.2-rc2 2019-05-28 11:21:51 -04:00
firewire treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
i2c media: ov8856: modify register to fix test pattern 2019-05-29 11:26:53 -04:00
mc media: mc-device.c: don't memset __user pointer contents 2019-05-29 10:36:04 -04:00
mmc treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
pci media: cx23885: remove redundant assignment to err 2019-06-03 10:44:58 -04:00
platform media: platform: ao-cec-g12a: disable regmap fast_io for cec bus regmap 2019-06-03 10:45:55 -04:00
radio media: wl128x: Fix some error handling in fm_v4l2_init_video_device() 2019-06-03 07:20:49 -04:00
rc Linux 5.2-rc2 2019-05-28 11:21:51 -04:00
spi Linux 5.2-rc2 2019-05-28 11:21:51 -04:00
tuners Linux 5.2-rc2 2019-05-28 11:21:51 -04:00
usb media: dvb-usb/cxusb-analog.c: fix coccinelle warning, use ktime.h 2019-06-03 10:44:24 -04:00
v4l2-core media: videobuf-dma-contig: Use size of buffer in mmap not vma size 2019-05-29 13:07:56 -04:00
Kconfig media: move drivers/media/media-* to drivers/media/mc/mc-* 2019-05-28 12:15:46 -04:00
Makefile media: move drivers/media/media-* to drivers/media/mc/mc-* 2019-05-28 12:15:46 -04:00