From arne_woerner@yahoo.com  Mon Dec 20 13:03:44 2004
Return-Path: <arne_woerner@yahoo.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id DD5EE16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 20 Dec 2004 13:03:44 +0000 (GMT)
Received: from web41214.mail.yahoo.com (web41214.mail.yahoo.com [66.218.93.47])
	by mx1.FreeBSD.org (Postfix) with SMTP id C081C43D1D
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 20 Dec 2004 13:03:44 +0000 (GMT)
	(envelope-from arne_woerner@yahoo.com)
Received: (qmail 89159 invoked by uid 60001); 20 Dec 2004 13:03:44 -0000
Received: from [83.129.187.218] by web41214.mail.yahoo.com via HTTP; Mon, 20 Dec 2004 05:03:44 PST
Message-Id: <20041220130344.89157.qmail@web41214.mail.yahoo.com>
Date: Mon, 20 Dec 2004 05:03:44 -0800 (PST)
From: Arne "Wrner" <arne_woerner@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Re: usb/62257: card reader UCR-61S2B is only half-supported

>Number:         75306
>Category:       kern
>Synopsis:       Re: usb/62257: card reader UCR-61S2B is only half-supported
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 20 13:10:27 GMT 2004
>Closed-Date:    Mon Dec 20 16:02:40 GMT 2004
>Last-Modified:  Mon Dec 20 16:02:40 GMT 2004
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
 I tried this (advice of "Hans Petter Selasky" <hselasky@c2i.net>)
 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!? 
 Send a seasonal email greeting and help others. Do good. 
 http://celebrity.mail.yahoo.com
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Mon Dec 20 16:00:45 GMT 2004 
State-Changed-Why:  
Misfiled followup to kern/62257; content migrated. 

Please do not change the GNATS tag (e.g. 'kern/62257' when doing a 
followup; this only confuses GNATS. 


Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Dec 20 16:00:45 GMT 2004 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=75306 
>Unformatted:
