OpenCloudOS-Kernel/drivers/media
Arnd Bergmann 0cb1d9c845 media: verisilicon: change confusingly named relaxed register access
The register abstraction has wrappers around both the normal writel()
and its writel_relaxed() counterpart, but this has led to a lot of users
ending up with the relaxed version.

There is sometimes a need to intentionally pick the relaxed accessor for
performance critical functions, but I noticed that each hantro_reg_write()
call also contains a non-relaxed readl(), which is typically much more
expensive than a writel, so there is little benefit here but an added
risk of missing a serialization against DMA.

To make this behave like other interfaces, use the normal accessor by
default and only provide the relaxed version as an alternative for
performance critical code. hantro_postproc.c is the only place that
used both the relaxed and normal writel, but this does not seem
cricital either, so change it all to the normal ones.

[hverkuil: fix function prototype alignment]

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Tested-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2023-07-14 09:14:10 +02:00
..
cec media: pulse8-cec: handle possible ping error 2023-07-14 09:14:09 +02:00
common media: common: saa7146: Avoid a leak in vmalloc_to_sg() 2023-05-25 16:21:20 +02:00
dvb-core media updates for v6.5-rc1 2023-07-05 10:42:32 -07:00
dvb-frontends media: dvb: mb86a20s: get rid of a clang-15 warning 2023-06-28 15:06:16 +02:00
firewire media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00
i2c media: tc358746: Address compiler warnings 2023-07-14 09:14:09 +02:00
mc media: mc: Make media_get_pad_index() use pad type flag 2023-05-25 16:21:22 +02:00
mmc media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
pci media: pci: cx23885: fix error handling for cx23885 ATSC boards 2023-07-14 09:14:09 +02:00
platform media: verisilicon: change confusingly named relaxed register access 2023-07-14 09:14:10 +02:00
radio media: wl128x: fix a clang warning 2023-06-29 09:56:13 +02:00
rc media: add HAS_IOPORT dependencies 2023-06-28 11:09:25 +02:00
spi media updates for v5.18-rc1 2022-03-23 14:51:35 -07:00
test-drivers media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
tuners media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
usb media: usb: as102: drop as102_dev NULL check 2023-06-09 16:07:30 +01:00
v4l2-core media updates for v6.5-rc1 2023-07-05 10:42:32 -07:00
Kconfig media: Kconfig: Make DVB_CORE=m possible when MEDIA_SUPPORT=y 2022-12-07 17:58:46 +01:00
Makefile media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00