Skip to contentSkip to conversation

iPhone 5 support for ipheth.

PATCH In review Jay Purohit 4 participants 5 messages Oct 11, 2012 – Oct 14, 2012

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

PATCH 1/1 iPhone 5 support for ipheth.

I noticed that the iPhone ethernet driver did not support iPhone 5. I quickly added support to it in my kernel, here's a patch.

linux-3.6.1/drivers/net/usb/ipheth.c renamed from drivers/net/usb/ipheth.c +6 -0
@@ -62,6 +62,8 @@
 #define USB_PRODUCT_IPAD 0x129a
 #define USB_PRODUCT_IPHONE_4_VZW 0x129c
 #define USB_PRODUCT_IPHONE_4S	0x12a0
+#define USB_PRODUCT_IPHONE_5	0x12a8
+
 
 #define IPHETH_USBINTF_CLASS    255
 #define IPHETH_USBINTF_SUBCLASS 253
@@ -113,6 +115,10 @@
 		USB_VENDOR_APPLE, USB_PRODUCT_IPHONE_4S,
 		IPHETH_USBINTF_CLASS, IPHETH_USBINTF_SUBCLASS,
 		IPHETH_USBINTF_PROTO) },
+	{ USB_DEVICE_AND_INTERFACE_INFO(
+		USB_VENDOR_APPLE, USB_PRODUCT_IPHONE_5,
+		IPHETH_USBINTF_CLASS, IPHETH_USBINTF_SUBCLASS,
+		IPHETH_USBINTF_PROTO) },
 	{ }
 };
 MODULE_DEVICE_TABLE(usb, ipheth_table);
Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Jay Purohit

I noticed that the iPhone ethernet driver did not support iPhone 5. I quickly added support to it in my kernel, here's a patch.

Missing a Signed-off-by: line, and should be cc'ed to [email protected] so the network people see it.

If you fix both of those, feel free to add this as well:

#2 lore raw

PATCH 1/1 iPhone 5 support for ipheth.

In reply to Jay Purohit

I noticed that the iPhone ethernet driver did not support iPhone 5. I quickly added support to it in my kernel, here's a patch.

--- linux-3.6.1/drivers/net/usb/ipheth.c 2012-10-07
10:41:28.000000000 -0500
+++ new/linux-3.6.1/drivers/net/usb/ipheth.c 2012-10-11
11:38:17.242000596 -0500
@@ -62,6 +62,8 @@
#define USB_PRODUCT_IPAD 0x129a
#define USB_PRODUCT_IPHONE_4_VZW 0x129c
#define USB_PRODUCT_IPHONE_4S 0x12a0
+#define USB_PRODUCT_IPHONE_5 0x12a8
+

#define IPHETH_USBINTF_CLASS 255
#define IPHETH_USBINTF_SUBCLASS 253
@@ -113,6 +115,10 @@
USB_VENDOR_APPLE, USB_PRODUCT_IPHONE_4S, IPHETH_USBINTF_CLASS, IPHETH_USBINTF_SUBCLASS, IPHETH_USBINTF_PROTO) },
+ { USB_DEVICE_AND_INTERFACE_INFO(

+               USB_VENDOR_APPLE, USB_PRODUCT_IPHONE_5,
+               IPHETH_USBINTF_CLASS, IPHETH_USBINTF_SUBCLASS,
+               IPHETH_USBINTF_PROTO) },
        { }

};
MODULE_DEVICE_TABLE(usb, ipheth_table);

maintainer
#3 lore raw

From: Jay Purohit <[email protected]>
Date: Thu, 11 Oct 2012 16:08:09 -0500

Quoted 11 lines

I noticed that the iPhone ethernet driver did not support iPhone 5. I quickly added support to it in my kernel, here's a patch.

--- linux-3.6.1/drivers/net/usb/ipheth.c 2012-10-07
10:41:28.000000000 -0500
+++ new/linux-3.6.1/drivers/net/usb/ipheth.c 2012-10-11
11:38:17.242000596 -0500

Patch corrupted by your email client, please fix this up and resend after you've verified that you can email yourself this patch and apply the patch that you receive in the email just fine.

#4 lore raw

PATCH 1/1 usb/ipheth: Add iPhone 5 support

From: Jay Purohit <[email protected]>

I noticed that the iPhone ethernet driver did not support iPhone 5. I quickly added support to it in my kernel, here's a patch.

---
Resubmitting on behalf of Jay, as he may have toolchain issues.

 drivers/net/usb/ipheth.c |    5 +++++
 1 file changed, 5 insertions(+)
drivers/net/usb/ipheth.c +5 -0
index a28a983..534d8be 100644
@@ -62,6 +62,7 @@
 #define USB_PRODUCT_IPAD 0x129a
 #define USB_PRODUCT_IPHONE_4_VZW 0x129c
 #define USB_PRODUCT_IPHONE_4S	0x12a0
+#define USB_PRODUCT_IPHONE_5	0x12a8
 
 #define IPHETH_USBINTF_CLASS    255
 #define IPHETH_USBINTF_SUBCLASS 253
@@ -113,6 +114,10 @@ static struct usb_device_id ipheth_table[] = {
 		USB_VENDOR_APPLE, USB_PRODUCT_IPHONE_4S,
 		IPHETH_USBINTF_CLASS, IPHETH_USBINTF_SUBCLASS,
 		IPHETH_USBINTF_PROTO) },
+	{ USB_DEVICE_AND_INTERFACE_INFO(
+		USB_VENDOR_APPLE, USB_PRODUCT_IPHONE_5,
+		IPHETH_USBINTF_CLASS, IPHETH_USBINTF_SUBCLASS,
+		IPHETH_USBINTF_PROTO) },
 	{ }
 };
 MODULE_DEVICE_TABLE(usb, ipheth_table);
Signature · 1 line
1.7.9.5