Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 06 Jul 2014 05:44:28 +0200
From:      Hans Petter Selasky <hps@selasky.org>
To:        Tur-Wei Chan <twchan@singnet.com.sg>, freebsd-usb@FreeBSD.org
Subject:   Re: Zotac ID91 USB3 devices attach as USB2 (Solved)
Message-ID:  <53B8C61C.9060103@selasky.org>
In-Reply-To: <53B8C153.3040603@selasky.org>
References:  <53B025AF.3010602@singnet.com.sg> <53B046A0.4010102@selasky.org> <53B18D8C.3080401@singnet.com.sg> <53B843EB.3000904@singnet.com.sg> <53B8C153.3040603@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------080107070004050504070504
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

Can you try the attached patch and remove the xhci port routing setting 
from /boot/loader.conf ?

--HPS

--------------080107070004050504070504
Content-Type: text/x-patch;
 name="xhci_lynx_point.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="xhci_lynx_point.diff"

=== ./xhci_pci.c
==================================================================
--- ./xhci_pci.c	(revision 268289)
+++ ./xhci_pci.c	(local)
@@ -157,6 +157,9 @@
 	temp |= set;
 	temp &= ~clear;
 
+	/* Don't set bits which the hardware doesn't support */
+	temp &= pci_read_config(self, PCI_XHCI_INTEL_USB3PRM, 4);
+
 	pci_write_config(self, PCI_XHCI_INTEL_USB3_PSSEN, temp, 4);
 	pci_write_config(self, PCI_XHCI_INTEL_XUSB2PR, temp, 4);
 
=== ./xhcireg.h
==================================================================
--- ./xhcireg.h	(revision 268289)
+++ ./xhcireg.h	(local)
@@ -35,7 +35,9 @@
 #define	PCI_XHCI_FLADJ		0x61	/* RW frame length adjust */
 
 #define	PCI_XHCI_INTEL_XUSB2PR	0xD0	/* Intel USB2 Port Routing */
+#define	PCI_XHCI_INTEL_USB2PRM	0xD4	/* Intel USB2 Port Routing Mask */
 #define	PCI_XHCI_INTEL_USB3_PSSEN 0xD8	/* Intel USB3 Port SuperSpeed Enable */
+#define	PCI_XHCI_INTEL_USB3PRM	0xDC	/* Intel USB3 Port Routing Mask */
 
 /* XHCI capability registers */
 #define	XHCI_CAPLENGTH		0x00	/* RO capability */

--------------080107070004050504070504--



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