diff options
| author | Thomas Zimmermann <[email protected]> | 2023-11-16 09:59:20 +0000 |
|---|---|---|
| committer | Thomas Zimmermann <[email protected]> | 2023-11-28 15:12:28 +0000 |
| commit | c350a08ac7ec933f1dc8a143ebab60164ed4d90b (patch) | |
| tree | 4de966e797157bbaf480a8738ddf3b843eee92fa /drivers/gpu/drm/ast/ast_main.c | |
| parent | Merge drm/drm-next into drm-misc-next (diff) | |
| download | kernel-c350a08ac7ec933f1dc8a143ebab60164ed4d90b.tar.gz kernel-c350a08ac7ec933f1dc8a143ebab60164ed4d90b.zip | |
drm/ast: Turn ioregs_lock to modeset_lock
The lock for the I/O registers is only relevant during mode-setting
operations. It protects the registers from concurrent access from
reading EDID information.
Reduce lock coverage to mode setting, rename the lock and move it
entirely into the mode-setting code. No functional changes, as the
I/O lock was never used for anything else than mode setting.
Signed-off-by: Thomas Zimmermann <[email protected]>
Reviewed-by: Jocelyn Falempe <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/ast/ast_main.c')
| -rw-r--r-- | drivers/gpu/drm/ast/ast_main.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpu/drm/ast/ast_main.c b/drivers/gpu/drm/ast/ast_main.c index f4ab40e22cea..445cf47871a4 100644 --- a/drivers/gpu/drm/ast/ast_main.c +++ b/drivers/gpu/drm/ast/ast_main.c @@ -440,10 +440,6 @@ struct ast_device *ast_device_create(const struct drm_driver *drv, pci_set_drvdata(pdev, dev); - ret = drmm_mutex_init(dev, &ast->ioregs_lock); - if (ret) - return ERR_PTR(ret); - ast->regs = pcim_iomap(pdev, 1, 0); if (!ast->regs) return ERR_PTR(-EIO); |
