Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Oct 2008 09:38:57 +0100
From:      Nick Hibma <nick@van-laarhoven.org>
To:        svn-src-all@freebsd.org
Cc:        FreeBSD STABLE Mailing List <stable@FreeBSD.ORG>, chat@freebsd.org
Subject:   Re: svn commit: r184466 - head/sys/dev/usb
Message-ID:  <200810300938.58420.nick@van-laarhoven.org>
In-Reply-To: <200810300832.m9U8WInO045752@svn.freebsd.org>
References:  <200810300832.m9U8WInO045752@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Folks,

Just to preempt people suggesting that I committed into the wrong tree: I 
didn't. FBSD 6 is still locked down. To keep things simple I keep one 
version of the driver in CURRENT which works on FBSD CURRENT, 7, and 6.

See 

	http://people.freebsd.org/~n_hibma/u3g.html

for more info  on how to use the driver in various versions of the OS.

And the cross post is intentional as well as I've had many positive 
responses from people that became aware of the driver.

Nick

> Author: n_hibma
> Date: Thu Oct 30 08:32:18 2008
> New Revision: 184466
> URL: http://svn.freebsd.org/changeset/base/184466
>
> Log:
>   We need to print out the device info ourselves on FBSD 6.
>
>   Submitted by:	Thomas Nystrom
>
> Modified:
>   head/sys/dev/usb/u3g.c
>
> Modified: head/sys/dev/usb/u3g.c
> =========================================================================
>===== --- head/sys/dev/usb/u3g.c	Thu Oct 30 08:17:27 2008	(r184465)
> +++ head/sys/dev/usb/u3g.c	Thu Oct 30 08:32:18 2008	(r184466)
> @@ -227,6 +227,13 @@ u3g_attach(device_t self)
>  	usb_config_descriptor_t *cd;
>  	char devnamefmt[32];
>
> +#if __FreeBSD_version < 700000
> +	char *devinfo = malloc(1024, M_USBDEV, M_WAITOK);
> +	usbd_devinfo(dev, 0, devinfo);
> +	device_printf(self, "%s\n", devinfo);
> +	free(devinfo, M_USBDEV);
> +#endif
> +
>  	/* get the config descriptor */
>  	cd = usbd_get_config_descriptor(dev);
>  	if (cd == NULL) {
> _______________________________________________
> svn-src-all@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/svn-src-all
> To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810300938.58420.nick>