Skip to contentSkip to conversation

Modified uvc_driver

PATCH In review Jayesh Puri 3 participants 6 messages Feb 19 – Feb 20

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

PATCH 1/1 Modified uvc_driver

---
 Kconfig                            | 0
 drivers/media/usb/uvc/uvc_driver.c | 2 ++
 2 files changed, 2 insertions(+)
 mode change 100644 => 100755 Kconfig
Kconfig +0 -0
old mode 100644
new mode 100755
drivers/media/usb/uvc/uvc_driver.c +2 -0
index aa3e8d295e0f..cec117328ab2 100644
@@ -2191,6 +2191,8 @@ static int uvc_probe(struct usb_interface *intf,
 		(const struct uvc_device_info *)id->driver_info;
 	int function;
 	int ret;
+	
+	pr_info("I changed uvcvideo driver in the Linux Kernel\n");
 
 	/* Allocate memory for the device and initialize it. */
 	dev = kzalloc(sizeof(*dev), GFP_KERNEL);
Signature · 1 line
2.53.0
maintainer
#1 lore raw
Quoted 14 lines · Jayesh Puri
---
 Kconfig                            | 0
 drivers/media/usb/uvc/uvc_driver.c | 2 ++
 2 files changed, 2 insertions(+)
 mode change 100644 => 100755 Kconfig
Kconfig +0 -0
old mode 100644
new mode 100755
drivers/media/usb/uvc/uvc_driver.c +0 -0
index aa3e8d295e0f..cec117328ab2 100644

drivers/media/usb/uvc/uvc_driver.c static int uvc_probe(struct usb_interface *intf, · line 2195

Quoted 5 lines
drivers/media/usb/uvc/uvc_driver.c +2 -0
@@ -2191,6 +2191,8 @@ static int uvc_probe(struct usb_interface *intf,
 		(const struct uvc_device_info *)id->driver_info;
 	int function;
 	int ret;
+	
+	pr_info("I changed uvcvideo driver in the Linux Kernel\n");

Congratulations, but I'm afraid we're out of medals.

Shuah, I thought LFD103 has been updated to avoid spamming the lists with such patches. What happened ?

Quoted 3 lines
drivers/media/usb/uvc/uvc_driver.c +0 -0
 	/* Allocate memory for the device and initialize it. */
 	dev = kzalloc(sizeof(*dev), GFP_KERNEL);
Signature · 3 lines
Regards,

Laurent Pinchart
#2 lore raw
Quoted 23 lines · Laurent Pinchart
Quoted 14 lines · Jayesh Puri
---
  Kconfig                            | 0
  drivers/media/usb/uvc/uvc_driver.c | 2 ++
  2 files changed, 2 insertions(+)

mode change 100644 => 100755 Kconfig

Kconfig +0 -0
old mode 100644
new mode 100755
drivers/media/usb/uvc/uvc_driver.c +0 -0
index aa3e8d295e0f..cec117328ab2 100644

drivers/media/usb/uvc/uvc_driver.c static int uvc_probe(struct usb_interface *intf, · line 2195

Quoted 5 lines
drivers/media/usb/uvc/uvc_driver.c +2 -0
@@ -2191,6 +2191,8 @@ static int uvc_probe(struct usb_interface *intf,
  		(const struct uvc_device_info *)id->driver_info;
  	int function;
  	int ret;
+	
+	pr_info("I changed uvcvideo driver in the Linux Kernel\n");

Congratulations, but I'm afraid we're out of medals.

Quoted 2 lines

Shuah, I thought LFD103 has been updated to avoid spamming the lists with such patches. What happened ?

It is changed a while back - not sure what's going on.

thanks,
-- Shuah

maintainer
#3 lore raw
Quoted 24 lines · Shuah Khan
Quoted 23 lines · Laurent Pinchart
Quoted 14 lines · Jayesh Puri
---
  Kconfig                            | 0
  drivers/media/usb/uvc/uvc_driver.c | 2 ++
  2 files changed, 2 insertions(+)

mode change 100644 => 100755 Kconfig

Kconfig +0 -0
old mode 100644
new mode 100755
drivers/media/usb/uvc/uvc_driver.c +0 -0
index aa3e8d295e0f..cec117328ab2 100644

drivers/media/usb/uvc/uvc_driver.c static int uvc_probe(struct usb_interface *intf, · line 2195

Quoted 5 lines
drivers/media/usb/uvc/uvc_driver.c +2 -0
@@ -2191,6 +2191,8 @@ static int uvc_probe(struct usb_interface *intf,
  		(const struct uvc_device_info *)id->driver_info;
  	int function;
  	int ret;
+	
+	pr_info("I changed uvcvideo driver in the Linux Kernel\n");

Congratulations, but I'm afraid we're out of medals.

Quoted 4 lines
Quoted 2 lines

Shuah, I thought LFD103 has been updated to avoid spamming the lists with such patches. What happened ?

It is changed a while back - not sure what's going on.

Could you please investigate ?

Signature · 3 lines
Regards,

Laurent Pinchart
#4 lore raw
Quoted 25 lines · Laurent Pinchart
Quoted 24 lines · Shuah Khan
Quoted 23 lines · Laurent Pinchart
Quoted 14 lines · Jayesh Puri
---
   Kconfig                            | 0
   drivers/media/usb/uvc/uvc_driver.c | 2 ++
   2 files changed, 2 insertions(+)

mode change 100644 => 100755 Kconfig

Kconfig +0 -0
old mode 100644
new mode 100755
drivers/media/usb/uvc/uvc_driver.c +0 -0
index aa3e8d295e0f..cec117328ab2 100644

drivers/media/usb/uvc/uvc_driver.c static int uvc_probe(struct usb_interface *intf, · line 2195

Quoted 5 lines
drivers/media/usb/uvc/uvc_driver.c +2 -0
@@ -2191,6 +2191,8 @@ static int uvc_probe(struct usb_interface *intf,
   		(const struct uvc_device_info *)id->driver_info;
   	int function;
   	int ret;
+	
+	pr_info("I changed uvcvideo driver in the Linux Kernel\n");

Congratulations, but I'm afraid we're out of medals.

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

Shuah, I thought LFD103 has been updated to avoid spamming the lists with such patches. What happened ?

It is changed a while back - not sure what's going on.

Could you please investigate ?

I will look into it

thanks,
-- Shuah

maintainer
#5 lore raw
Quoted 26 lines · Shuah Khan
Quoted 25 lines · Laurent Pinchart
Quoted 24 lines · Shuah Khan
Quoted 23 lines · Laurent Pinchart
Quoted 14 lines · Jayesh Puri
---
   Kconfig                            | 0
   drivers/media/usb/uvc/uvc_driver.c | 2 ++
   2 files changed, 2 insertions(+)

mode change 100644 => 100755 Kconfig

Kconfig +0 -0
old mode 100644
new mode 100755
drivers/media/usb/uvc/uvc_driver.c +0 -0
index aa3e8d295e0f..cec117328ab2 100644

drivers/media/usb/uvc/uvc_driver.c static int uvc_probe(struct usb_interface *intf, · line 2195

Quoted 5 lines
drivers/media/usb/uvc/uvc_driver.c +2 -0
@@ -2191,6 +2191,8 @@ static int uvc_probe(struct usb_interface *intf,
   		(const struct uvc_device_info *)id->driver_info;
   	int function;
   	int ret;
+	
+	pr_info("I changed uvcvideo driver in the Linux Kernel\n");

Congratulations, but I'm afraid we're out of medals.

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

Shuah, I thought LFD103 has been updated to avoid spamming the lists with such patches. What happened ?

It is changed a while back - not sure what's going on.

Could you please investigate ?

I will look into it

Thank you.

Jayesh, I assume this conversation took you by surprise, so I'll provide a bit of context. LFD103 used to provide instructions on how to modify a driver, create a patch and send it to a mailing list. Those instructions were then followed by a line to tell the reader to not actually run the commands. Unsurprisingly, that line was often overlooked, and patches such as this one spammed the list.

I got a bit fed up and reported the issue to Shuah, who ensured LFD103 would be improved to avoid the problem. That was months ago, so I'm surprised to see the issue occurring again. If you've followed the old LFD103, I'm blaming the original wording of the course, not you, for the problem.

Signature · 3 lines
Regards,

Laurent Pinchart