mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2026-01-24 17:29:05 +00:00
The modeset lock protects the DDC code from concurrent modeset operations, which use the same registers. Move that code from the connector helpers into the DDC helpers .pre_xfer() and .post_xfer(). Both, .pre_xfer() and .post_xfer(), enclose the transfer of data blocks over the I2C channel in the internal I2C function bit_xfer(). Both calls are executed unconditionally if present. Invoking DDC transfers from any where within the driver now takes the lock. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Sui Jingfeng <sui.jingfeng@linux.dev> Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com> Tested-by: Sui Jingfeng <sui.jingfeng@linux.dev> Link: https://patchwork.freedesktop.org/patch/msgid/20240325200855.21150-11-tzimmermann@suse.de |
||
|---|---|---|
| .. | ||
| ast_ddc.c | ||
| ast_ddc.h | ||
| ast_dp501.c | ||
| ast_dp.c | ||
| ast_dram_tables.h | ||
| ast_drv.c | ||
| ast_drv.h | ||
| ast_main.c | ||
| ast_mm.c | ||
| ast_mode.c | ||
| ast_post.c | ||
| ast_reg.h | ||
| ast_tables.h | ||
| Kconfig | ||
| Makefile | ||