From owner-freebsd-usb@FreeBSD.ORG Wed May 29 14:20:00 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 729EDED2 for ; Wed, 29 May 2013 14:20:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 550A677E for ; Wed, 29 May 2013 14:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r4TEK05u043334 for ; Wed, 29 May 2013 14:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r4TEK0I8043333; Wed, 29 May 2013 14:20:00 GMT (envelope-from gnats) Resent-Date: Wed, 29 May 2013 14:20:00 GMT Resent-Message-Id: <201305291420.r4TEK0I8043333@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Christopher Sean Hilton Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D6E83E3F for ; Wed, 29 May 2013 14:15:52 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.FreeBSD.org (oldred.freebsd.org [8.8.178.121]) by mx1.freebsd.org (Postfix) with ESMTP id C94896E6 for ; Wed, 29 May 2013 14:15:52 +0000 (UTC) Received: from oldred.FreeBSD.org ([127.0.1.6]) by oldred.FreeBSD.org (8.14.5/8.14.5) with ESMTP id r4TEFqXJ075706 for ; Wed, 29 May 2013 14:15:52 GMT (envelope-from nobody@oldred.FreeBSD.org) Received: (from nobody@localhost) by oldred.FreeBSD.org (8.14.5/8.14.5/Submit) id r4TEFqIm075705; Wed, 29 May 2013 14:15:52 GMT (envelope-from nobody) Message-Id: <201305291415.r4TEFqIm075705@oldred.FreeBSD.org> Date: Wed, 29 May 2013 14:15:52 GMT From: Christopher Sean Hilton To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: usb/179078: if_ipheth doesn't support iPhone 4S X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 May 2013 14:20:00 -0000 >Number: 179078 >Category: usb >Synopsis: if_ipheth doesn't support iPhone 4S >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed May 29 14:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Christopher Sean Hilton >Release: 8.4 PRERELEASE >Organization: >Environment: FreeBSD dagobah.vindaloo.com 8.4-PRERELEASE FreeBSD 8.4-PRERELEASE #0 r249843: Thu Apr 25 10:31:17 EDT 2013 root@dagobah:/usr/obj/usr/src/sys/GENERIC i386 >Description: The if_ipheth driver doesn't support the iPhone 4S due to a missing usb product id. The supplied patch adds support for the 4S I've tested this by running FreeBSD tethered to my iPhone for about an hour or so. >How-To-Repeat: Configure if_ipheth and attach an iPhone 4S. Notice that you get a ugen device but if_ipheth does not attach. >Fix: Add the iPhone 4S (product Id 0x12a0) to list of registered devices that if_ipheth handles. Patch attached with submission follows: --- usr/src/sys/dev/usb/net/if_ipheth.c.orig 2013-04-15 00:00:00.000000000 -0400 +++ usr/src/sys/dev/usb/net/if_ipheth.c 2013-05-28 19:57:28.000000000 -0400 @@ -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_4S, + 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)}, --- usr/src/sys/dev/usb/usbdevs.orig 2013-04-15 00:00:00.000000000 -0400 +++ usr/src/sys/dev/usb/usbdevs 2013-05-28 19:54:45.000000000 -0400 @@ -1081,6 +1081,7 @@ product APPLE IPHONE_3G 0x1292 iPhone 3G product APPLE IPHONE_3GS 0x1294 iPhone 3GS product APPLE IPHONE_4 0x1297 iPhone 4 +product APPLE IPHONE_4S 0x12a0 iPhone 4S product APPLE IPHONE_5 0x12a8 iPhone 5 product APPLE IPAD 0x129a iPad product APPLE ETHERNET 0x1402 Ethernet A1277 >Release-Note: >Audit-Trail: >Unformatted: