[PATCH 09/99] fbdev/atafb: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of module initialization, so use a static buffer to store the duplicated mode option. Linux automatically frees the

[PATCH 12/99] fbdev/aty: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 07/99] fbdev/amifb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 01/99] lib: Add option iterator

2023-03-06 Thread Thomas Zimmermann
Add struct option_iter and helpers that walk over individual options of an option string. Add documentation. Kernel parameters often have the format of param=opt1,opt2:val,opt3 where the option string contains a number of comma-separated options. Drivers usually use strsep() in a loop to extra

[PATCH 11/99] fbdev/aty: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of module initialization, so use a static buffer to store the duplicated mode option. Linux automatically frees the

[PATCH 13/99] fbdev/au1100fb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 31/99] fbdev/hyperv_fb: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. As the driver implements a very simple mode parser in a fairly unstructured way, just duplicate the option string and parse the duplicated memory buffer. Free the buffer

[PATCH 17/99] fbdev/controlfb: Remove trailing whitespaces

2023-03-06 Thread Thomas Zimmermann
Fix coding style. No functional changes. Signed-off-by: Thomas Zimmermann --- drivers/video/fbdev/controlfb.c | 34 - 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/video/fbdev/controlfb.c b/drivers/video/fbdev/controlfb.c index 77dbf94aae

[PATCH 14/99] fbdev/au1200fb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 03/99] fbdev/68328fb: Remove unused option string

2023-03-06 Thread Thomas Zimmermann
The option string is unused. Remove the variable and a related helper function. No functional change. Signed-off-by: Thomas Zimmermann --- drivers/video/fbdev/68328fb.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/video/fbdev/68328fb.c b/drivers/video/

[PATCH 22/99] fbdev/fsl-diu-fb: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of module initialization, so use a static buffer to store the duplicated mode option. Linux automatically frees the

[PATCH 10/99] fbdev/atafb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 08/99] fbdev/arkfb: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of module initialization, so use a static buffer to store the duplicated mode option. Linux automatically frees the

[PATCH 15/99] fbdev/cirrusfb: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of module initialization, so use a static buffer to store the duplicated mode option. Linux automatically frees the

[PATCH 18/99] fbdev/controlfb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 46/99] fbdev/mx3fb: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of module initialization, so use a static buffer to store the duplicated mode option. Linux automatically frees the

[PATCH 25/99] fbdev/gbefb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 26/99] fbdev/geode: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of module initialization, so use a static buffer to store the duplicated mode option. Linux automatically frees the

[PATCH 19/99] fbdev/cyber2000fb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 24/99] fbdev/gbefb: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. Allocate the copy's memory with devm_kstrdup(), as the driver parses the option string once per probed device. Linux will automatically free the memory upon releasing th

[PATCH 41/99] fbdev/kyrofb: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of module initialization, so use a static buffer to store the duplicated mode option. Linux automatically frees the

[PATCH 47/99] fbdev/mx3fb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 34/99] fbdev/i810: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of module initialization, so use a static buffer to store the duplicated mode option. Linux automatically frees the

[PATCH 48/99] fbdev/neofb: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of module initialization, so use a static buffer to store the duplicated mode option. Linux automatically frees the

[PATCH 67/99] fbdev/rivafb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 79/99] fbdev/sti: Constify option string

2023-03-06 Thread Thomas Zimmermann
Constify the intenal option string that is passed around among functions. The caller owns the memory and callees do not modify its content. This change will later allow to constify the caller's option string as well. No functional changes. Signed-off-by: Thomas Zimmermann --- drivers/video/fbdev

[PATCH 59/99] fbdev/pm3fb: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of module initialization, so use a static buffer to store the duplicated mode option. Linux automatically frees the

[PATCH 61/99] fbdev/ps3fb: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of module initialization, so use a static buffer to store the duplicated mode option. Linux automatically frees the

[PATCH 20/99] fbdev/efifb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 53/99] fbdev/ocfb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 83/99] fbdev/tgafb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 78/99] fbdev/stifb: Remove trailing whitespaces

2023-03-06 Thread Thomas Zimmermann
Fix coding style. No functional changes. Signed-off-by: Thomas Zimmermann --- drivers/video/fbdev/stifb.c | 156 ++-- 1 file changed, 78 insertions(+), 78 deletions(-) diff --git a/drivers/video/fbdev/stifb.c b/drivers/video/fbdev/stifb.c index 3feb6e40d56d..a151

[PATCH 52/99] fbdev/ocfb: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of module initialization, so use a static buffer to store the duplicated mode option. Linux automatically frees the

[PATCH 28/99] fbdev/grvga: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of module initialization, so use a static buffer to store the duplicated mode option. Linux automatically frees the

[PATCH 76/99] fbdev/sstfb: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of module initialization, so use a static buffer to store the duplicated mode option. Linux automatically frees the

[PATCH 69/99] fbdev/s3fb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 80/99] fbdev/tdfxfb: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of module initialization, so use a static buffer to store the duplicated mode option. Linux automatically frees the

[PATCH 73/99] fbdev/sisfb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 65/99] fbdev/pxafb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 84/99] fbdev/tmiofb: Remove unused option string

2023-03-06 Thread Thomas Zimmermann
The option string is unused. Remove the variable and a related helper function. No functional change. Signed-off-by: Thomas Zimmermann --- drivers/video/fbdev/tmiofb.c | 24 ++-- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/drivers/video/fbdev/tmiofb.c b/dri

[PATCH 30/99] fbdev/gxt4500: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of module initialization, so use a static buffer to store the duplicated mode option. Linux automatically frees the

[PATCH 70/99] fbdev/savagefb: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of module initialization, so use a static buffer to store the duplicated mode option. Linux automatically frees the

[PATCH 82/99] fbdev/tgafb: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of module initialization, so use a static buffer to store the duplicated mode option. Linux automatically frees the

[PATCH 39/99] fbdev/imxfb: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of module initialization, so use a static buffer to store the duplicated mode option. Linux automatically frees the

[PATCH 75/99] fbdev/sm712fb: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of module initialization, so use a static buffer to store the duplicated mode option. Linux automatically frees the

[PATCH 37/99] fbdev/intelfb: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of module initialization, so use a static buffer to store the duplicated mode option. Linux automatically frees the

[PATCH 36/99] fbdev/imsttfb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 45/99] fbdev/matroxfb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 43/99] fbdev/macfb: Remove trailing whitespaces

2023-03-06 Thread Thomas Zimmermann
Fix coding style. No functional changes. Signed-off-by: Thomas Zimmermann --- drivers/video/fbdev/macfb.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/video/fbdev/macfb.c b/drivers/video/fbdev/macfb.c index 312e35c9aa6c..44ff860a3f37 100644 --- a/drivers

[PATCH 35/99] fbdev/i810: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 66/99] fbdev/rivafb: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of module initialization, so use a static buffer to store the duplicated mode option. Linux automatically frees the

[PATCH 58/99] fbdev/pm2fb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 29/99] fbdev/grvga: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 51/99] fbdev/nvidiafb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 21/99] fbdev/fm2fb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 63/99] fbdev/pvr2fb: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of module initialization, so use a static buffer to store the duplicated mode option. Linux automatically frees the

[PATCH 90/99] fbdev/valkyriefb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 97/99] fbdev/vt8623fb: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of module initialization, so use a static buffer to store the duplicated mode option. Linux automatically frees the

[PATCH 93/99] fbdev/vfb: Remove trailing whitespaces

2023-03-06 Thread Thomas Zimmermann
Fix coding style. No functional changes. Signed-off-by: Thomas Zimmermann --- drivers/video/fbdev/vfb.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/video/fbdev/vfb.c b/drivers/video/fbdev/vfb.c index 95d3c59867d0..680c88267ef4 100644 --- a/drivers/video

[PATCH 42/99] fbdev/kyrofb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 81/99] fbdev/tdfxfb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 85/99] fbdev/tridentfb: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of module initialization, so use a static buffer to store the duplicated mode option. Linux automatically frees the

[PATCH 91/99] fbdev/vermilion: Remove unused option string

2023-03-06 Thread Thomas Zimmermann
The option string is unused. Remove the variable. No functional changes. Signed-off-by: Thomas Zimmermann --- drivers/video/fbdev/vermilion/vermilion.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/video/fbdev/vermilion/vermilion.c b/drivers/video/fbdev/vermi

[PATCH 40/99] fbdev/imxfb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 94/99] fbdev/vfb: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of module initialization, so use a static buffer to store the duplicated mode option. Linux automatically frees the

[PATCH 68/99] fbdev/s3fb: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of module initialization, so use a static buffer to store the duplicated mode option. Linux automatically frees the

[PATCH 95/99] fbdev/vfb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 49/99] fbdev/neofb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 86/99] fbdev/tridentfb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 33/99] fbdev/i740fb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 44/99] fbdev/macfb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 50/99] fbdev/nvidiafb: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of module initialization, so use a static buffer to store the duplicated mode option. Linux automatically frees the

[PATCH 32/99] fbdev/i740fb: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of module initialization, so use a static buffer to store the duplicated mode option. Linux automatically frees the

[PATCH 98/99] staging/sm750fb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 23/99] fbdev/fsl-diu-fb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 38/99] fbdev/intelfb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 54/99] fbdev/omapfb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 55/99] fbdev/platinumfb: Remove trailing whitespaces

2023-03-06 Thread Thomas Zimmermann
Fix coding style. No functional changes. Signed-off-by: Thomas Zimmermann --- drivers/video/fbdev/platinumfb.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/video/fbdev/platinumfb.c b/drivers/video/fbdev/platinumfb.c index 5b9e26ea64

[PATCH 27/99] fbdev/geode: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 77/99] fbdev/sstfb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 60/99] fbdev/pm3fb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 62/99] fbdev/ps3fb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 89/99] fbdev/valkyriefb: Remove trailing whitespaces

2023-03-06 Thread Thomas Zimmermann
Fix coding style. No functional changes. Signed-off-by: Thomas Zimmermann --- drivers/video/fbdev/valkyriefb.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/video/fbdev/valkyriefb.c b/drivers/video/fbdev/valkyriefb.c index 1007023a5e88..b166b7cfe0e5 1

[PATCH 64/99] fbdev/pvr2fb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 88/99] fbdev/uvesafb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 71/99] fbdev/savagefb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 72/99] fbdev/sisfb: Constify mode string

2023-03-06 Thread Thomas Zimmermann
Constify the intenal video-mode string that is passed around among functions. The caller owns the memory and callees do not modify its content. This change will later allow to constify the option string. No functional changes. Signed-off-by: Thomas Zimmermann --- drivers/video/fbdev/sis/sis_main

[PATCH 74/99] fbdev/skeletonfb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 99/99] fbdev: Constify option strings

2023-03-06 Thread Thomas Zimmermann
Return the option string as const char* from fb_get_options() to enforce fbdev's ownership of the memory region. Also avoids memory allocation within fb_get_options(). Callers that have to modify the option string must create their own copy. As most drivers use struct option_iter, this already hap

[PATCH 87/99] fbdev/uvesafb: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of module initialization, so use a static buffer to store the duplicated mode option. Linux automatically frees the

[PATCH 16/99] fbdev/cirrusfb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 56/99] fbdev/platinumfb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 96/99] fbdev/viafb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 92/99] fbdev/vesafb: Parse option string with struct option_iter

2023-03-06 Thread Thomas Zimmermann
Use struct option_iter to walk over the individual options in the driver's option string. Replaces the hand-written strsep() loop with a clean interface. The helpers for struct option_iter handle empty option strings and empty options transparently. The struct's _init and _release functions duplica

[PATCH 57/99] fbdev/pm2fb: Duplicate video-mode option string

2023-03-06 Thread Thomas Zimmermann
Assume that the driver does not own the option string or its substrings and hence duplicate the option string for the video mode. The driver only parses the option string once as part of module initialization, so use a static buffer to store the duplicated mode option. Linux automatically frees the

Re: [PATCH] amdgpu: Avoid building on UML

2023-03-06 Thread Felix Kuehling
Looks like this patch got lost over the holidays. Alex, are you OK with applying this patch? Or are people looking for a more general solution to not build HW drivers for UML? FWIW: Acked-by: Felix Kuehling Am 2023-01-12 um 23:30 schrieb Peter Foley: The amdgpu driver tries to use fields no

Re: [PATCH 2/3] drm/i915: Add a helper func for gem obj mmap

2023-03-06 Thread Das, Nirmoy
On 3/6/2023 3:26 PM, Ville Syrjälä wrote: On Mon, Mar 06, 2023 at 11:28:49AM +0100, Nirmoy Das wrote: Move gem obj mmap code to i915_gem_object_mmap() so that this can be used by others. Signed-off-by: Nirmoy Das --- drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c | 20 ++--- drive

Re: [PATCH 11/99] fbdev/aty: Duplicate video-mode option string

2023-03-06 Thread Geert Uytterhoeven
Hi Thomas, Thanks for your patch! On Mon, Mar 6, 2023 at 5:00 PM Thomas Zimmermann wrote: > Assume that the driver does not own the option string or its substrings > and hence duplicate the option string for the video mode. The driver only > parses the option string once as part of module initia

Re: [Intel-gfx] [PATCH 1/3] drm/i915: Set I915_BO_ALLOC_USER for framebuffer

2023-03-06 Thread Das, Nirmoy
On 3/6/2023 3:21 PM, Ville Syrjälä wrote: On Mon, Mar 06, 2023 at 11:28:48AM +0100, Nirmoy Das wrote: Framebuffer is exposed to userspace so set I915_BO_ALLOC_USER flag for it. This also make sure that ttm allocates offset for lmem objects. I have no idea what that means. Sorry for poor exp

[PATCH v4 00/10] drm/i915: use ref_tracker library for tracking wakerefs

2023-03-06 Thread Andrzej Hajda
This is revived patchset improving ref_tracker library and converting i915 internal tracker to ref_tracker. The old thread ended without consensus about small kernel allocations, which are performed under spinlock. I have tried to solve the problem by splitting the calls, but it results in complica

<    1   2   3   >