From owner-freebsd-bugs@FreeBSD.ORG Mon Dec 20 16:30:27 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EBC9F16A4D3 for ; Mon, 20 Dec 2004 16:30:27 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA0A143D3F for ; Mon, 20 Dec 2004 16:30:27 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iBKGURCt095696 for ; Mon, 20 Dec 2004 16:30:27 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iBKGUREC095693; Mon, 20 Dec 2004 16:30:27 GMT (envelope-from gnats) Date: Mon, 20 Dec 2004 16:30:27 GMT Message-Id: <200412201630.iBKGUREC095693@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Arne "Wörner" Subject: Re: kern/62257: card reader UCR-61S2B is only half-supported X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Arne Wörner List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Dec 2004 16:30:28 -0000 The following reply was made to PR kern/62257; it has been noted by GNATS. From: Arne "Wörner" To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: kern/62257: card reader UCR-61S2B is only half-supported Date: Mon, 20 Dec 2004 08:29:49 -0800 (PST) I tried this (advice of "Hans Petter Selasky" ) and it did not work: ---------------------------- 1) add the following to umass.c before "Static int umass_match_proto": static void umass_dummy_callback(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status err) { return; } static void umass_init_ucr(struct umass_softc *sc) { usbd_xfer_handle xfer; xfer = usbd_alloc_xfer(sc->sc_udev); if(!xfer) return; usbd_setup_xfer(xfer, sc->bulkout_pipe, NULL, "\xec\x0a\x06\x00$PCCHIPS", sizeof("\xec\x0a\x06\x00$PCCHIPS")-1, 0, USBD_DEFAULT_TIMEOUT, umass_dummy_callback); usbd_sync_transfer(xfer); usbd_free_xfer(xfer); return; } 2) and where you find the function umass_init_shuttle called, add umass_init_ucr(sc): if (sc->quirks & SHUTTLE_INIT) umass_init_shuttle(sc); umass_init_ucr(sc); 3) I am not sure if the string is right. ------------------------ It's probably the trick beeing applied wrongly. You could try to change: usbd_setup_xfer(xfer, sc->bulkout_pipe, NULL, "\xec\x0a\x06\x00$PCCHIPS", sizeof("\xec\x0a\x06\x00$PCCHIPS")-1, 0, USBD_DEFAULT_TIMEOUT, umass_dummy_callback); into: usbd_setup_xfer(xfer, sc->bulkout_pipe, NULL, "\xec\x0a\x06\x00$PCCHIPS\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", UMASS_BBB_CBW_SIZE, 0, USBD_DEFAULT_TIMEOUT, umass_dummy_callback); though it doesn't work with my cardreader, it might work with yours. ---------------------- -Arne __________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo