mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/3] fbdev: kyro: Convert to managed device resources
@ 2025-07-09  9:53 Giovanni Di Santi
  2025-07-09  9:53 ` [PATCH v3 1/3] fbdev: kyro: Add missing PCI memory region request Giovanni Di Santi
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Giovanni Di Santi @ 2025-07-09  9:53 UTC (permalink / raw)
  To: tzimmermann, deller
  Cc: linux-fbdev, dri-devel, linux-kernel, Giovanni Di Santi

This series aims to address the TODO item "Request memory regions in all
fbdev drivers" from Documentation/gpu/todo.rst.
Additionally, it also converts the kyro framebuffer driver to use managed device
functions.

In summary, it converts the driver to use:
1. Managed PCI device enable and region request functions
2. Managed ioremap for MMIO registers  
3. Managed ioremap_wc for screen memory

This simplifies error handling and removes the need for manual cleanup
in the remove function.

Changes in v3:
- Split into a patch series as suggested by Thomas Zimmermann [1]
- Convert ioremap calls to devm_ variants

Changes in v2:
- Use pcim_enable_device() instead of pci_enable_device()
- Use pcim_request_all_regions() instead of pci_request_regions()
- Removed manual cleanup code as it's now automatic

[1] https://lore.kernel.org/lkml/fd6403d7-93f4-4fa4-ad0d-3ab91cba8183@suse.de/

Giovanni Di Santi (3):
  fbdev: kyro: Add missing PCI memory region request
  fbdev: kyro: Use devm_ioremap() for mmio registers
  fbdev: kyro: Use devm_ioremap_wc() for screen mem

 drivers/video/fbdev/kyro/fbdev.c | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-07-27 16:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-09  9:53 [PATCH v3 0/3] fbdev: kyro: Convert to managed device resources Giovanni Di Santi
2025-07-09  9:53 ` [PATCH v3 1/3] fbdev: kyro: Add missing PCI memory region request Giovanni Di Santi
2025-07-09  9:53 ` [PATCH v3 2/3] fbdev: kyro: Use devm_ioremap() for mmio registers Giovanni Di Santi
2025-07-09  9:53 ` [PATCH v3 3/3] fbdev: kyro: Use devm_ioremap_wc() for screen mem Giovanni Di Santi
2025-07-27 17:57 ` [PATCH v3 0/3] fbdev: kyro: Convert to managed device resources Helge Deller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®