Re: [PATCH v4 1/3] drm/udl: Replace fbdev code with generic emulation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

Am 13.11.19 um 16:26 schrieb Noralf Trønnes:
> 
> 
> Den 13.11.2019 12.52, skrev Thomas Zimmermann:
>> The udl driver can use the generic fbdev implementation. Convert it.
>>
>> v4:
>> 	* hardcode console bpp to 16
>> v3:
>> 	* remove module parameter fb_bpp in favor of fbdev's video
>> 	* call drm_fbdev_generic_setup() directly; remove udl_fbdev_init()
>> 	* use default for struct drm_mode_config_funcs.output_poll_changed
>> 	* use default for struct drm_driver.lastclose
>>
>> Signed-off-by: Thomas Zimmermann <tzimmermann@xxxxxxx>
>> ---
> 
>> diff --git a/drivers/gpu/drm/udl/udl_main.c b/drivers/gpu/drm/udl/udl_main.c
>> index 4e854e017390..3be0c0cec49e 100644
>> --- a/drivers/gpu/drm/udl/udl_main.c
>> +++ b/drivers/gpu/drm/udl/udl_main.c
>> @@ -9,6 +9,7 @@
>>   */
>>  
>>  #include <drm/drm.h>
>> +#include <drm/drm_fb_helper.h>
>>  #include <drm/drm_print.h>
>>  #include <drm/drm_probe_helper.h>
>>  
>> @@ -338,7 +339,7 @@ int udl_init(struct udl_device *udl)
>>  	if (ret)
>>  		goto err;
>>  
>> -	ret = udl_fbdev_init(dev);
>> +	ret = drm_fbdev_generic_setup(dev, 16);
> 
> I suggest you put this after drm_dev_register() in _probe() since fbdev
> is a client, a user of the driver, not part of it as such.

Good point. I'll change it.

> 
> Either way you choose:

Glad you like it :)

> 
> Reviewed-by: Noralf Trønnes <noralf@xxxxxxxxxxx>

Thanks for the review.

Best regards
Thomas

> 
> Btw, nice diffstat!
> 
>>  	if (ret)
>>  		goto err;
>>  
>> @@ -367,6 +368,4 @@ void udl_fini(struct drm_device *dev)
>>  
>>  	if (udl->urbs.count)
>>  		udl_free_urb_list(dev);
>> -
>> -	udl_fbdev_cleanup(dev);
>>  }
> _______________________________________________
> dri-devel mailing list
> dri-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
> 

-- 
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux