-
- Downloads
drm/mgag200: Implement new init logic
Rework mgag200_regs_init() and mgag200_mm_init() into device preinit and init functions. The preinit function, mgag200_device_preinit(), requests and maps a device's I/O and video memory. The init function, mgag200_device_init() initializes the state of struct mga_device. Splitting the initialization between the two functions is necessary to perform per-model operations between the two calls, such as reading the unique revision ID on G200SEs. Signed-off-by:Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by:
Jocelyn Falempe <jfalempe@redhat.com> Tested-by:
Jocelyn Falempe <jfalempe@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220601112522.5774-6-tzimmermann@suse.de
Showing
- drivers/gpu/drm/mgag200/Makefile 0 additions, 1 deletiondrivers/gpu/drm/mgag200/Makefile
- drivers/gpu/drm/mgag200/mgag200_drv.c 64 additions, 14 deletionsdrivers/gpu/drm/mgag200/mgag200_drv.c
- drivers/gpu/drm/mgag200/mgag200_drv.h 6 additions, 15 deletionsdrivers/gpu/drm/mgag200/mgag200_drv.h
- drivers/gpu/drm/mgag200/mgag200_g200.c 2 additions, 5 deletionsdrivers/gpu/drm/mgag200/mgag200_g200.c
- drivers/gpu/drm/mgag200/mgag200_g200eh.c 2 additions, 5 deletionsdrivers/gpu/drm/mgag200/mgag200_g200eh.c
- drivers/gpu/drm/mgag200/mgag200_g200eh3.c 2 additions, 5 deletionsdrivers/gpu/drm/mgag200/mgag200_g200eh3.c
- drivers/gpu/drm/mgag200/mgag200_g200er.c 2 additions, 5 deletionsdrivers/gpu/drm/mgag200/mgag200_g200er.c
- drivers/gpu/drm/mgag200/mgag200_g200ev.c 2 additions, 5 deletionsdrivers/gpu/drm/mgag200/mgag200_g200ev.c
- drivers/gpu/drm/mgag200/mgag200_g200ew3.c 3 additions, 6 deletionsdrivers/gpu/drm/mgag200/mgag200_g200ew3.c
- drivers/gpu/drm/mgag200/mgag200_g200se.c 2 additions, 5 deletionsdrivers/gpu/drm/mgag200/mgag200_g200se.c
- drivers/gpu/drm/mgag200/mgag200_g200wb.c 2 additions, 5 deletionsdrivers/gpu/drm/mgag200/mgag200_g200wb.c
- drivers/gpu/drm/mgag200/mgag200_mm.c 0 additions, 71 deletionsdrivers/gpu/drm/mgag200/mgag200_mm.c
- drivers/gpu/drm/mgag200/mgag200_mode.c 1 addition, 6 deletionsdrivers/gpu/drm/mgag200/mgag200_mode.c
Loading
Please register or sign in to comment