Skip to contentSkip to conversation

omap_vout: Adjustments for three function implementations

PATCH In review SF Markus Elfring 4 participants 22 messages Sep 24, 2017 – Feb 10, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover omap_vout: Adjustments for three function implementations

From: Markus Elfring <[email protected]>
Date: Sun, 24 Sep 2017 12:06:54 +0200

A few update suggestions were taken into account
from static source code analysis.

Markus Elfring (6):
Delete an error message for a failed memory allocation in omap_vout_create_video_devices() Improve a size determination in two functions
Adjust a null pointer check in two functions
Fix a possible null pointer dereference in omap_vout_open()
Delete an unnecessary variable initialisation in omap_vout_open()
Delete two unnecessary variable initialisations in omap_vout_probe()

 drivers/media/platform/omap/omap_vout.c | 23 ++++++++++-------------
 1 file changed, 10 insertions(+), 13 deletions(-)
Signature · 1 line
2.14.1
#1 lore raw

PATCH 1/6 omap_vout: Delete an error message for a failed memory allocation in omap_vout_create_video_devices()

From: Markus Elfring <[email protected]>
Date: Sun, 24 Sep 2017 10:08:22 +0200

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

---
 drivers/media/platform/omap/omap_vout.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/media/platform/omap/omap_vout.c +1 -3
index 4d29860d27b4..aebc1e628ac5 100644
@@ -1948,7 +1948,5 @@ static int __init omap_vout_create_video_devices(struct platform_device *pdev)
-		if (!vout) {
-			dev_err(&pdev->dev, ": could not allocate memory\n");
+		if (!vout)
 			return -ENOMEM;
-		}
 
 		vout->vid = k;
 		vid_dev->vouts[k] = vout;
Signature · 1 line
2.14.1
#3 lore raw

PATCH 2/6 omap_vout: Improve a size determination in two functions

In reply to SF Markus Elfring

From: Markus Elfring <[email protected]>
Date: Sun, 24 Sep 2017 10:18:26 +0200

Replace the specification of data structures by variable references as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention.

This issue was detected by using the Coccinelle software.

---
 drivers/media/platform/omap/omap_vout.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/media/platform/omap/omap_vout.c +2 -3
index aebc1e628ac5..4a4d171ca573 100644
@@ -1943,8 +1943,7 @@ static int __init omap_vout_create_video_devices(struct platform_device *pdev)
 			struct omap2video_device, v4l2_dev);
 
 	for (k = 0; k < pdev->num_resources; k++) {
-
-		vout = kzalloc(sizeof(struct omap_vout_device), GFP_KERNEL);
+		vout = kzalloc(sizeof(*vout), GFP_KERNEL);
 		if (!vout)
 			return -ENOMEM;
 
@@ -2095,7 +2094,7 @@ static int __init omap_vout_probe(struct platform_device *pdev)
 		goto err_dss_init;
 	}
 
-	vid_dev = kzalloc(sizeof(struct omap2video_device), GFP_KERNEL);
+	vid_dev = kzalloc(sizeof(*vid_dev), GFP_KERNEL);
 	if (vid_dev = NULL) {
 		ret = -ENOMEM;
 		goto err_dss_init;
Signature · 1 line
2.14.1
#4 lore raw

PATCH 3/6 omap_vout: Adjust a null pointer check in two functions

In reply to SF Markus Elfring

From: Markus Elfring <[email protected]>
Date: Sun, 24 Sep 2017 10:30:29 +0200
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The script “checkpatch.pl” pointed information out like the following.

Comparison to NULL could be written !…

Thus fix the affected source code places.

---
 drivers/media/platform/omap/omap_vout.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/media/platform/omap/omap_vout.c +2 -2
index 4a4d171ca573..2b55a8ebd1ad 100644
@@ -1006,7 +1006,7 @@ static int omap_vout_open(struct file *file)
 	vout = video_drvdata(file);
 	v4l2_dbg(1, debug, &vout->vid_dev->v4l2_dev, "Entering %s\n", __func__);
 
-	if (vout = NULL)
+	if (!vout)
 		return -ENODEV;
 
 	/* for now, we only support single open */
@@ -2095,7 +2095,7 @@ static int __init omap_vout_probe(struct platform_device *pdev)
 	}
 
 	vid_dev = kzalloc(sizeof(*vid_dev), GFP_KERNEL);
-	if (vid_dev = NULL) {
+	if (!vid_dev) {
 		ret = -ENOMEM;
 		goto err_dss_init;
 	}
Signature · 1 line
2.14.1
#5 lore raw

PATCH 4/6 omap_vout: Fix a possible null pointer dereference in omap_vout_open()

In reply to SF Markus Elfring

From: Markus Elfring <[email protected]>
Date: Sun, 24 Sep 2017 11:00:57 +0200

Move a debug message so that a null pointer access can not happen for the variable "vout" in this function.

Fixes 5c7ab6348e7b3fcca2b8ee548306c774472971e2 ("V4L/DVB: V4L2: Add support for OMAP2/3 V4L2 display driver on top of DSS2")
---
 drivers/media/platform/omap/omap_vout.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/media/platform/omap/omap_vout.c +2 -2
index 2b55a8ebd1ad..71b77426271e 100644
@@ -1004,11 +1004,11 @@ static int omap_vout_open(struct file *file)
 	struct omap_vout_device *vout = NULL;
 
 	vout = video_drvdata(file);
-	v4l2_dbg(1, debug, &vout->vid_dev->v4l2_dev, "Entering %s\n", __func__);
-
 	if (!vout)
 		return -ENODEV;
 
+	v4l2_dbg(1, debug, &vout->vid_dev->v4l2_dev, "Entering %s\n", __func__);
+
 	/* for now, we only support single open */
 	if (vout->opened)
 		return -EBUSY;
Signature · 1 line
2.14.1
#6 lore raw

PATCH 5/6 omap_vout: Delete an unnecessary variable initialisation in omap_vout_open()

In reply to SF Markus Elfring

From: Markus Elfring <[email protected]>
Date: Sun, 24 Sep 2017 11:20:11 +0200

The local variable "vout" is reassigned by a statement at the beginning. Thus omit the explicit initialisation.

---
 drivers/media/platform/omap/omap_vout.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/platform/omap/omap_vout.c +1 -1
index 71b77426271e..f446a37064f4 100644
@@ -1001,7 +1001,7 @@ static int omap_vout_release(struct file *file)
 static int omap_vout_open(struct file *file)
 {
 	struct videobuf_queue *q;
-	struct omap_vout_device *vout = NULL;
+	struct omap_vout_device *vout;
 
 	vout = video_drvdata(file);
 	if (!vout)
Signature · 1 line
2.14.1
#7 lore raw

PATCH 6/6 omap_vout: Delete two unnecessary variable initialisations in omap_vout_probe()

In reply to SF Markus Elfring

From: Markus Elfring <[email protected]>
Date: Sun, 24 Sep 2017 11:33:39 +0200

The variables "dssdev" and "vid_dev" will eventually be set to appropriate pointers a bit later.
Thus omit the explicit initialisations at the beginning.

---
 drivers/media/platform/omap/omap_vout.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/media/platform/omap/omap_vout.c +2 -2
index f446a37064f4..0efcea820007 100644
@@ -2075,9 +2075,9 @@ static int __init omap_vout_probe(struct platform_device *pdev)
 {
 	int ret = 0, i;
 	struct omap_overlay *ovl;
-	struct omap_dss_device *dssdev = NULL;
+	struct omap_dss_device *dssdev;
 	struct omap_dss_device *def_display;
-	struct omap2video_device *vid_dev = NULL;
+	struct omap2video_device *vid_dev;
 
 	if (omapdss_is_initialized() = false)
 		return -EPROBE_DEFER;
Signature · 1 line
2.14.1
#2 lore raw

Re: [PATCH 1/6] [media] omap_vout: Delete an error message for a failed memory allocation in omap_vout_create_video_devices()

In reply to SF Markus Elfring
Quoted 1 line · SF Markus Elfring

Omit an extra message for a memory allocation failure in this function.

[]

drivers/media/platform/omap/omap_vout.c

Quoted 1 line
drivers/media/platform/omap/omap_vout.c +0 -0

[]

drivers/media/platform/omap/omap_vout.c static int __init omap_vout_create_video_devices(struct platform_device *pdev) · line 1952

Quoted 9 lines
drivers/media/platform/omap/omap_vout.c +1 -3
@@ -1948,7 +1948,5 @@ static int __init omap_vout_create_video_devices(struct platform_device *pdev)
-		if (!vout) {
-			dev_err(&pdev->dev, ": could not allocate memory\n");
+		if (!vout)
 			return -ENOMEM;
-		}
 
 		vout->vid = k;
 		vid_dev->vouts[k] = vout;

Use normal patch styles.
Fix your tools before you send any more patches.

#8 lore raw
In reply to SF Markus Elfring

Hi Markus,

Quoted 14 lines · SF Markus Elfring

From: Markus Elfring <[email protected]>
Date: Sun, 24 Sep 2017 12:06:54 +0200

A few update suggestions were taken into account
from static source code analysis.

Markus Elfring (6):
Delete an error message for a failed memory allocation in omap_vout_create_video_devices() Improve a size determination in two functions
Adjust a null pointer check in two functions
Fix a possible null pointer dereference in omap_vout_open()
Delete an unnecessary variable initialisation in omap_vout_open()
Delete two unnecessary variable initialisations in omap_vout_probe()

Quoted 3 lines
 drivers/media/platform/omap/omap_vout.c | 23 ++++++++++-------------
 1 file changed, 10 insertions(+), 13 deletions(-)

While we do not mind cleanup patches, the way you post them (one fix per file) is really annoying and takes us too much time to review.

I'll take the "Fix a possible null pointer" patch since it is an actual bug fix, but will reject the others, not just this driver but all of them that are currently pending in our patchwork (https://patchwork.linuxtv.org).

Feel free to repost, but only if you organize the patch as either fixing the same type of issue for a whole subdirectory (media/usb, media/pci, etc) or fixing all issues for a single driver.

Actual bug fixes (like the null pointer patch in this series) can still be posted as separate patches, but cleanups shouldn't.

So in this particular case I would expect two omap_vout patches: one for the bug fix, one for the cleanups.

Just so you know, I'll reject any future patch series that do not follow these rules. Just use common sense when posting these things in the future.

I would also suggest that your time might be spent more productively if you would work on some more useful projects. There is more than enough to do. However, that's up to you.

Regards,

Hans

#9 lore raw

Re: Adjustments for a lot of function implementations

Quoted 1 line

While we do not mind cleanup patches, the way you post them (one fix per file)

I find it safer in this way while I was browsing through the landscape of Linux software components.

Quoted 1 line

is really annoying and takes us too much time to review.

It is just the case that there are so many remaining open issues.

Quoted 1 line

I'll take the "Fix a possible null pointer" patch since it is an actual bug fix,

Thanks for a bit of change acceptance.

Quoted 2 lines

but will reject the others, not just this driver but all of them that are currently pending in our patchwork (https://patchwork.linuxtv.org).

Will any chances evolve to integrate 146 patches in any other combination?

Quoted 2 lines

Feel free to repost, but only if you organize the patch as either fixing the same type of issue for a whole subdirectory (media/usb, media/pci, etc)

Can we achieve an agreement on the shown change patterns?

Is a consensus possible for involved update candidates?

Quoted 1 line

or fixing all issues for a single driver.

I find that I did this already.

Quoted 2 lines

Actual bug fixes (like the null pointer patch in this series) can still be posted as separate patches, but cleanups shouldn't.

I got an other software development opinion.

Quoted 2 lines

Just so you know, I'll reject any future patch series that do not follow these rules. Just use common sense when posting these things in the future.

Do we need to try any additional communication tools out?

Quoted 2 lines

I would also suggest that your time might be spent more productively if you would work on some more useful projects.

I hope that various change possibilities (from my selection) will become useful for more Linux users.
How will the clarification evolve further?

Regards,
Markus

#10 lore raw

Re: Adjustments for a lot of function implementations

Quoted 13 lines · SF Markus Elfring
Quoted 1 line

While we do not mind cleanup patches, the way you post them (one fix per file)

I find it safer in this way while I was browsing through the landscape of Linux software components.

Quoted 1 line

is really annoying and takes us too much time to review.

It is just the case that there are so many remaining open issues.

Quoted 1 line

I'll take the "Fix a possible null pointer" patch since it is an actual bug fix,

Quoted 11 lines

Thanks for a bit of change acceptance.

Quoted 2 lines

but will reject the others, not just this driver but all of them that are currently pending in our patchwork (https://patchwork.linuxtv.org).

Will any chances evolve to integrate 146 patches in any other combination?

Quoted 2 lines

Feel free to repost, but only if you organize the patch as either fixing the same type of issue for a whole subdirectory (media/usb, media/pci, etc)

Just for the record, while this may work for media, it won't work for all subsystems. One will quickly get a complaint that the big patch needs to go into multiple trees.

julia

Quoted 38 lines

Can we achieve an agreement on the shown change patterns?

Is a consensus possible for involved update candidates?

Quoted 1 line

or fixing all issues for a single driver.

I find that I did this already.

Quoted 2 lines

Actual bug fixes (like the null pointer patch in this series) can still be posted as separate patches, but cleanups shouldn't.

I got an other software development opinion.

Quoted 2 lines

Just so you know, I'll reject any future patch series that do not follow these rules. Just use common sense when posting these things in the future.

Do we need to try any additional communication tools out?

Quoted 2 lines

I would also suggest that your time might be spent more productively if you would work on some more useful projects.

I hope that various change possibilities (from my selection) will become useful for more Linux users.
How will the clarification evolve further?

Regards,
Markus
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#11 lore raw

Re: Adjustments for a lot of function implementations

Quoted 26 lines · Julia Lawall
Quoted 22 lines · SF Markus Elfring
Quoted 1 line

While we do not mind cleanup patches, the way you post them (one fix per file)

I find it safer in this way while I was browsing through the landscape of Linux software components.

Quoted 1 line

is really annoying and takes us too much time to review.

It is just the case that there are so many remaining open issues.

Quoted 1 line

I'll take the "Fix a possible null pointer" patch since it is an actual bug fix,

Thanks for a bit of change acceptance.

Quoted 2 lines

but will reject the others, not just this driver but all of them that are currently pending in our patchwork (https://patchwork.linuxtv.org).

Will any chances evolve to integrate 146 patches in any other combination?

Quoted 6 lines
Quoted 2 lines
Quoted 2 lines

Feel free to repost, but only if you organize the patch as either fixing the same type of issue for a whole subdirectory (media/usb, media/pci, etc)

Just for the record, while this may work for media, it won't work for all subsystems. One will quickly get a complaint that the big patch needs to go into multiple trees.

For the record: this only applies to drivers/media. We discussed what do to with series like this during our media summit last Friday and this was the conclusion of that. Obviously I can't talk about other subsystems.

Regards,

Hans

Quoted 41 lines

julia

Quoted 38 lines

Can we achieve an agreement on the shown change patterns?

Is a consensus possible for involved update candidates?

Quoted 1 line

or fixing all issues for a single driver.

I find that I did this already.

Quoted 2 lines

Actual bug fixes (like the null pointer patch in this series) can still be posted as separate patches, but cleanups shouldn't.

I got an other software development opinion.

Quoted 2 lines

Just so you know, I'll reject any future patch series that do not follow these rules. Just use common sense when posting these things in the future.

Do we need to try any additional communication tools out?

Quoted 2 lines

I would also suggest that your time might be spent more productively if you would work on some more useful projects.

I hope that various change possibilities (from my selection) will become useful for more Linux users.
How will the clarification evolve further?

Regards,
Markus
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#12 lore raw

Re: Adjustments for a lot of function implementations

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
Quoted 2 lines

Feel free to repost, but only if you organize the patch as either fixing the same type of issue for a whole subdirectory (media/usb, media/pci, etc)

Just for the record, while this may work for media, it won't work for all subsystems. One will quickly get a complaint that the big patch needs to go into multiple trees.

For the record: this only applies to drivers/media.

Interesting …

Quoted 1 line

We discussed what do to with series like this during our media summit last Friday

Would you like to share any more information from this meeting?

Quoted 1 line

and this was the conclusion of that.

I would appreciate further indications for a corresponding change acceptance.

I found a feedback by Mauro Carvalho Chehab more constructive.

[GIT,PULL,FOR,v4.15] Cleanup fixes
https://patchwork.linuxtv.org/patch/43957/

“…
This time, I was nice and I took some time doing:

	$ quilt fold < `quilt next` && quilt delete `quilt next`
…”

Regards,
Markus

#13 lore raw

Re: Adjustments for a lot of function implementations

Quoted 7 lines · SF Markus Elfring
Quoted 7 lines
Quoted 6 lines
Quoted 2 lines
Quoted 2 lines

Feel free to repost, but only if you organize the patch as either fixing the same type of issue for a whole subdirectory (media/usb, media/pci, etc)

Just for the record, while this may work for media, it won't work for all subsystems. One will quickly get a complaint that the big patch needs to go into multiple trees.

Quoted 8 lines
Quoted 1 line

For the record: this only applies to drivers/media.

Interesting …

Quoted 1 line

We discussed what do to with series like this during our media summit last Friday

Would you like to share any more information from this meeting?

??? I did that: either one patch per directory with the same type of change, or one patch per driver combining all the changes for that driver.

Quoted 8 lines
Quoted 3 lines

and this was the conclusion of that.

I would appreciate further indications for a corresponding change acceptance.

I found a feedback by Mauro Carvalho Chehab more constructive.

Quoted 8 lines

[GIT,PULL,FOR,v4.15] Cleanup fixes
https://patchwork.linuxtv.org/patch/43957/

“…
This time, I was nice and I took some time doing:

	$ quilt fold < `quilt next` && quilt delete `quilt next`
…”

Yes, and you were told not to do it like that again.

Regards,

Hans

#14 lore raw

Re: Adjustments for a lot of function implementations

Quoted 1 line

Yes, and you were told not to do it

I have got an other impression.

Quoted 1 line

like that again.

I continued with the presentation of suggestions from my selection of change possibilities.
It seems that there are very different expectations for the preferred patch granularity.

Can it happen again that you are going to use a development tool like “quilt” (as a maintainer) for the desired recombination of possible update steps?

Regards,
Markus

#21 lore raw

Re: Adjustments for a lot of function implementations

In reply to Hans Verkuil
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

but will reject the others, not just this driver but all of them that are currently pending in our patchwork (https://patchwork.linuxtv.org).

I find it very surprising that you rejected 146 useful update suggestions so easily.

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
Quoted 2 lines

Feel free to repost, but only if you organize the patch as either fixing the same type of issue for a whole subdirectory (media/usb, media/pci, etc)

Just for the record, while this may work for media, it won't work for all subsystems. One will quickly get a complaint that the big patch needs to go into multiple trees.

For the record: this only applies to drivers/media.

What does this software area make it so special in comparison to other Linux subsystems?

Quoted 2 lines

We discussed what do to with series like this during our media summit last Friday and this was the conclusion of that.

* Have you taken any other solution approaches into account than a quick “rejection”?

* Could your reaction have been different if the remarkable number of change possibilities were sent by different authors (and not only me)?

* How should possibly remaining disagreements about affected implementation details be resolved now?

* Are you looking for further improvements around development tools like “patchwork” and “quilt”?

* Will you accept increasing risks because of bigger patch sizes?

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line

or fixing all issues for a single driver.

I find that I did this already.

* Can such an information lead to differences in the preferred patch granularity?

* How do you think about this detail?

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

Actual bug fixes (like the null pointer patch in this series) can still be posted as separate patches, but cleanups shouldn't.

I got an other software development opinion.

How would you ever like to clean up stuff in affected source files which was accumulated (or preserved somehow) over years?

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Just so you know, I'll reject any future patch series that do not follow these rules.

I guess that this handling will trigger more communication challenges.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Just use common sense when posting these things in the future.

Our “common sense” seems to be occasionally different in significant ways.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

I would also suggest that your time might be spent more productively if you would work on some more useful projects.

I distribute my software development capacity over several areas. Does your wording indicate a questionable signal for further contributions?

Regards,
Markus

#15 lore raw

Re: Adjustments for a lot of function implementations

In reply to Hans Verkuil
Quoted 2 lines

??? I did that: either one patch per directory with the same type of change, or one patch per driver combining all the changes for that driver.

Would you like to answer my still remaining questions in any more constructive ways?

Regards,
Markus

#16 lore raw

Re: Adjustments for a lot of function implementations

In reply to Hans Verkuil
Quoted 2 lines

??? I did that: either one patch per directory with the same type of change, or one patch per driver combining all the changes for that driver.

Are you going to answer any of my remaining questions in a more constructive way?

Regards,
Markus

#17 lore raw

Re: Adjustments for a lot of function implementations

In reply to Hans Verkuil
Quoted 2 lines

??? I did that: either one patch per directory with the same type of change, or one patch per driver combining all the changes for that driver.

Do any contributors get into the mood to take another look at software updates from my selection of change possibilities in a more constructive way?

Do you need any additional development resources?

Regards,
Markus

#18 lore raw

Re: Adjustments for a lot of function implementations

Quoted 7 lines · SF Markus Elfring
Quoted 2 lines

??? I did that: either one patch per directory with the same type of change, or one patch per driver combining all the changes for that driver.

Do any contributors get into the mood to take another look at software updates from my selection of change possibilities in a more constructive way?

Do you need any additional development resources?

One last time: either post per-driver patches with all the cleanups for a driver in a single patch, or a per-directory patch (drivers/media/pci, usb, etc) doing the same cleanup for all drivers in that directory.

I prefer the first approach, but it's up to you.

We don't have the time to wade through dozens of one-liner cleanup patches.

I don't understand what is so difficult about this.

Regards,

Hans

#19 lore raw

Re: Adjustments for a lot of function implementations

Quoted 2 lines

One last time: either post per-driver patches with all the cleanups for a driver in a single patch,

I preferred to offer source code adjustments according to specific transformation patterns mostly for each software module separately (also in small patch series).

Quoted 2 lines

or a per-directory patch (drivers/media/pci, usb, etc) doing the same cleanup for all drivers in that directory.

I am curious if bigger patch packages would be easier to get accepted.

Or would you get frightened still by any other change combination?

Quoted 1 line

I prefer the first approach,

We have got different preferences for a safe patch granularity.

Quoted 1 line

but it's up to you.

I imagine that there are more development factors involved.

Quoted 1 line

We don't have the time to wade through dozens of one-liner cleanup patches.

It is usual that integration of update suggestions will take some time. How would the situation change if I would dare to regroup possible update steps?

Quoted 1 line

I don't understand what is so difficult about this.

There are communication difficulties to consider since your terse information from your conference meeting.

If you would insist on patch squashing, would you dare to use a development tool like “quilt fold” also on your own once more?

Regards,
Markus

#20 lore raw

Re: Adjustments for a lot of function implementations

In reply to Hans Verkuil
Quoted 7 lines
Quoted 4 lines

Do any contributors get into the mood to take another look at software updates from my selection of change possibilities in a more constructive way?

Do you need any additional development resources?

One last time: either post per-driver patches with all the cleanups for a driver in a single patch,

I find such a change combination unsafe.

Quoted 2 lines

or a per-directory patch (drivers/media/pci, usb, etc) doing the same cleanup for all drivers in that directory.

Would you dare to apply any (of my) scripts for the semantic patch language directly on the whole directory for multi-media software?

Quoted 1 line

I prefer the first approach, but it's up to you.

Can you handle bigger patches really better than similar patch series?

Quoted 1 line

We don't have the time to wade through dozens of one-liner cleanup patches.

Are there any further possibilities to consider around consequences from a general change resistance?

Will any development (or management) tools like “quilt fold” make the regrouping of possible update steps more convenient and safer?

Regards,
Markus