[PATCH 2/3] Define fb_open_adj_file()

2016-05-25 Thread Max Staudt
On 05/24/2016 06:51 PM, Daniel Vetter wrote: > On Tue, May 24, 2016 at 6:28 PM, Max Staudt wrote: >> Hi Daniel, >> >> Thanks for the feedback! Comments below: >> >> >> On 05/23/2016 03:44 PM, Daniel Vetter wrote: >>> Do we _really_ care about fbdev mmap support so much that we want to add >>> more

[PATCH 2/3] Define fb_open_adj_file()

2016-05-24 Thread Daniel Vetter
On Tue, May 24, 2016 at 6:28 PM, Max Staudt wrote: > Hi Daniel, > > Thanks for the feedback! Comments below: > > > On 05/23/2016 03:44 PM, Daniel Vetter wrote: >> Do we _really_ care about fbdev mmap support so much that we want to add >> more hacks all over the place (in each driver) to make it w

[PATCH 2/3] Define fb_open_adj_file()

2016-05-24 Thread Max Staudt
Hi Daniel, Thanks for the feedback! Comments below: On 05/23/2016 03:44 PM, Daniel Vetter wrote: > Do we _really_ care about fbdev mmap support so much that we want to add > more hacks all over the place (in each driver) to make it work? Given that > fbdev is officially in the "no more drivers"

[PATCH 2/3] Define fb_open_adj_file()

2016-05-23 Thread Daniel Vetter
On Mon, May 23, 2016 at 12:48:52PM +0200, 'Max Staudt wrote: > From: Max Staudt > > This callback from fb_open() allows a fbdev driver to adjust things such > as file->f_mapping to better represent the internal structures. > > This is needed to allow TTM drivers using ttm_fbdev_mmap() to properl

[PATCH 2/3] Define fb_open_adj_file()

2016-05-23 Thread 'Max Staudt
From: Max Staudt This callback from fb_open() allows a fbdev driver to adjust things such as file->f_mapping to better represent the internal structures. This is needed to allow TTM drivers using ttm_fbdev_mmap() to properly set file->f_mapping to TTM's address_space from bo->bdev->dev_mapping,