usb/172172: iPhone 5 Support for if_ipheth

2012-09-29 Thread Ali Mashtizadeh

Number: 172172
Category:   usb
Synopsis:   iPhone 5 Support for if_ipheth
Confidential:   no
Severity:   non-critical
Priority:   low
Responsible:freebsd-usb
State:  open
Quarter:
Keywords:   
Date-Required:
Class:  sw-bug
Submitter-Id:   current-users
Arrival-Date:   Sat Sep 29 22:30:02 UTC 2012
Closed-Date:
Last-Modified:
Originator: Ali Mashtizadeh
Release:9-STABLE
Organization:
Environment:
FreeBSD starscream.mashtizadeh.com 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #3 
r241057M: Sat Sep 29 15:04:40 PDT 2012 
r...@starscream.mashtizadeh.com:/usr/obj/usr/src/sys/GENERIC  amd64

Description:
Enable tethering with the iPhone 5 via if_ipheth driver. The USB device ID was 
missing.  I have tested the patch included and was able to use tethering for a 
period of time without any issues.
How-To-Repeat:

Fix:


Patch attached with submission follows:

Index: sys/amd64/conf/GENERIC
===
--- sys/amd64/conf/GENERIC  (revision 241057)
+++ sys/amd64/conf/GENERIC  (working copy)
@@ -22,6 +22,7 @@
 ident  GENERIC
 
 makeoptionsDEBUG=-g# Build kernel with gdb(1) debug symbols
+makeoptionsWITH_CTF=1
 
 optionsSCHED_ULE   # ULE scheduler
 optionsPREEMPTION  # Enable kernel thread preemption
@@ -62,8 +63,9 @@
 optionsHWPMC_HOOKS # Necessary kernel hooks for hwpmc(4)
 optionsAUDIT   # Security event auditing
 optionsMAC # TrustedBSD MAC Framework
-#options   KDTRACE_FRAME   # Ensure frames are compiled in
-#options   KDTRACE_HOOKS   # Kernel DTrace hooks
+optionsKDTRACE_FRAME   # Ensure frames are compiled in
+optionsKDTRACE_HOOKS   # Kernel DTrace hooks
+optionsDDB_CTF
 optionsINCLUDE_CONFIG_FILE # Include this file in kernel
 optionsKDB # Kernel debugger related code
 optionsKDB_TRACE   # Print a stack trace for a panic
Index: sys/dev/usb/usbdevs
===
--- sys/dev/usb/usbdevs (revision 241057)
+++ sys/dev/usb/usbdevs (working copy)
@@ -1077,6 +1077,7 @@
 product APPLE IPHONE_3G0x1292  iPhone 3G
 product APPLE IPHONE_3GS   0x1294  iPhone 3GS
 product APPLE IPHONE_4 0x1297  iPhone 4
+product APPLE IPHONE_5 0x12a8  iPhone 5
 product APPLE IPAD 0x129a  iPad
 product APPLE ETHERNET 0x1402  Ethernet A1277
 
Index: sys/dev/usb/net/if_ipheth.c
===
--- sys/dev/usb/net/if_ipheth.c (revision 241057)
+++ sys/dev/usb/net/if_ipheth.c (working copy)
@@ -161,6 +161,9 @@
{IPHETH_ID(USB_VENDOR_APPLE, USB_PRODUCT_APPLE_IPHONE_4,
IPHETH_USBINTF_CLASS, IPHETH_USBINTF_SUBCLASS,
IPHETH_USBINTF_PROTO)},
+   {IPHETH_ID(USB_VENDOR_APPLE, USB_PRODUCT_APPLE_IPHONE_5,
+   IPHETH_USBINTF_CLASS, IPHETH_USBINTF_SUBCLASS,
+   IPHETH_USBINTF_PROTO)},
 };
 
 static int


Release-Note:
Audit-Trail:
Unformatted:
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Re: usb/172172: iPhone 5 Support for if_ipheth

2012-09-29 Thread eadler
Synopsis: iPhone 5 Support for if_ipheth

Responsible-Changed-From-To: freebsd-usb-eadler
Responsible-Changed-By: eadler
Responsible-Changed-When: Sun Sep 30 01:51:46 UTC 2012
Responsible-Changed-Why: 
I'll take it.

http://www.freebsd.org/cgi/query-pr.cgi?pr=172172
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org