From owner-freebsd-i386@FreeBSD.ORG Tue Aug 8 04:20:24 2006 Return-Path: X-Original-To: freebsd-i386@hub.freebsd.org Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2CC6516A4DE for ; Tue, 8 Aug 2006 04:20:24 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 709E443D49 for ; Tue, 8 Aug 2006 04:20:21 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k784KK3n021961 for ; Tue, 8 Aug 2006 04:20:20 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k784KKUa021960; Tue, 8 Aug 2006 04:20:20 GMT (envelope-from gnats) Date: Tue, 8 Aug 2006 04:20:20 GMT Message-Id: <200608080420.k784KKUa021960@freefall.freebsd.org> To: freebsd-i386@FreeBSD.org From: Ganbold Cc: Subject: Re: i386/76653 : Problem with Asahi Optical usb device (Pentax Optio S50) X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ganbold List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Aug 2006 04:20:24 -0000 The following reply was made to PR i386/76653; it has been noted by GNATS. From: Ganbold To: bug-followup@FreeBSD.org, freebsd-bugs@FreeBSD.org Cc: guzman@zalem.net, csaba.henk@creo.hu, iedowse@FreeBSD.org Subject: Re: i386/76653 : Problem with Asahi Optical usb device (Pentax Optio S50) Date: Tue, 08 Aug 2006 13:14:01 +0900 Hi, I have Pentax Optio S60 and I got it working in Dell D620 under FreeBSD-6.1-STABLE by patching umass.c and scsi_da.c. # uname -an FreeBSD devil.micom.mng.net 6.1-STABLE FreeBSD 6.1-STABLE #7: Tue Aug 8 12:52:48 ULAST 2006 tsgan@devil.micom.mng.net:/usr/obj/usr/src/sys/DEVIL i386 Aug 8 12:59:39 devil kernel: umass0: PENTAX product 0x0047, rev 1.10/0.00, addr 2 Aug 8 12:59:40 devil kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Aug 8 12:59:40 devil kernel: da0: Removable Direct Access SCSI-0 device Aug 8 12:59:40 devil kernel: da0: 1.000MB/s transfers Aug 8 12:59:40 devil kernel: da0: 243MB (498176 512 byte sectors: 64H 32S/T 243C) # usbdevs -v ... Controller /dev/usb2: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 port 1 powered port 2 addr 2: full speed, self powered, config 1, product 0x0047(0x0047), PENTAX(0x0a17), rev 0.00 ... Patches are here: ----------------------------------------------------------------------------------- --- /usr/src/sys/dev/usb/umass.c-orig Tue Aug 8 12:54:25 2006 +++ /usr/src/sys/dev/usb/umass.c Tue Aug 8 12:55:37 2006 @@ -321,7 +321,7 @@ Static struct umass_devdescr_t umass_devdescrs[] = { { USB_VENDOR_ASAHIOPTICAL, PID_WILDCARD, RID_WILDCARD, - UMASS_PROTO_ATAPI | UMASS_PROTO_CBI_I, + UMASS_PROTO_ATAPI | UMASS_PROTO_BBB, RS_NO_CLEAR_UA }, { USB_VENDOR_ADDON, USB_PRODUCT_ADDON_ATTACHE, RID_WILDCARD, ----------------------------------------------------------------------------------- --- /usr/src/sys/cam/scsi/scsi_da.c-orig Tue Aug 8 12:53:37 2006 +++ /usr/src/sys/cam/scsi/scsi_da.c Tue Aug 8 12:47:15 2006 @@ -436,6 +436,11 @@ "*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE }, { + /* PENTAX Optio S60. */ + {T_DIRECT, SIP_MEDIA_REMOVABLE, "PENTAX", "DIGITAL_CAMERA", "*"}, + /*quirks*/ DA_Q_NO_SYNC_CACHE + }, + { /* * Genesys 6-in-1 Card Reader * PR: usb/94647 hth, Ganbold