<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test/sys/dev/bhnd/cores/usb, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/'/>
<updated>2020-09-01T21:43:05Z</updated>
<entry>
<title>bhnd: clean up empty lines in .c and .h files</title>
<updated>2020-09-01T21:43:05Z</updated>
<author>
<name>Mateusz Guzik</name>
<email>mjg@FreeBSD.org</email>
</author>
<published>2020-09-01T21:43:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=ab3fad6ea26bda380ecb9ddc3bc4e9014ab3d4b2'/>
<id>urn:sha1:ab3fad6ea26bda380ecb9ddc3bc4e9014ab3d4b2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>SPDX: license IDs for some ISC-related files.</title>
<updated>2017-12-08T15:57:29Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2017-12-08T15:57:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=6e778a7efdc0e804471750157f6bacd1ef7d1580'/>
<id>urn:sha1:6e778a7efdc0e804471750157f6bacd1ef7d1580</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bhnd(4): Fix bcma/siba core reset behavior</title>
<updated>2017-11-27T22:13:30Z</updated>
<author>
<name>Landon J. Fuller</name>
<email>landonf@FreeBSD.org</email>
</author>
<published>2017-11-27T22:13:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=ac59515b9800732037d8147e96afd9927d3a7ae7'/>
<id>urn:sha1:ac59515b9800732037d8147e96afd9927d3a7ae7</id>
<content type='text'>
Add missing support for specifying I/O control flags during core reset,
and resolve a number of siba(4)-specific reset issues:

- Add missing check for target reject flags in siba_is_hw_suspended().
- Remove incorrect wait on SIBA_TMH_BUSY when modifying any target state
  register; this should only be done when waiting for initiated
  transactions to clear.
- Add missing wait on SIBA_IM_BY when asserting SIBA_IM_RJ.
- Overwrite any previously set SIBA_TML_REJ flag when bringing the core
  out of reset. This fixes a lockup that occured when we brought up a core
  (after reboot) that had previously been placed into RESET by siba_bwn(4).

Approved by:	adrian (mentor, implicit)
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D13039
</content>
</entry>
<entry>
<title>bhnd(4): implement MIPS and PCI(e) interrupt support</title>
<updated>2017-11-21T23:15:20Z</updated>
<author>
<name>Landon J. Fuller</name>
<email>landonf@FreeBSD.org</email>
</author>
<published>2017-11-21T23:15:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=caeff9a3c2626660d3e080d4d3b35bc53ec4417f'/>
<id>urn:sha1:caeff9a3c2626660d3e080d4d3b35bc53ec4417f</id>
<content type='text'>
On BHND MIPS SoCs, this replaces the use of hard-coded MIPS IRQ#s in the
common bhnd(4) core drivers; we now register an INTRNG child PIC that
handles routing of backplane interrupt vectors via the MIPS core.

On BHND PCI devices, backplane interrupt vectors are now routed to the
PCI/PCIe host bridge core when bus_setup_intr() is called, where they are
dispatched by the PCI core via a host interrupt (e.g. INTx/MSI).

The bhndb(4) bridge driver tracks registered interrupt handlers for the
bridged bhnd(4) devices and manages backplane interrupt routing, while
delegating actual bus interrupt setup/teardown to the parent bus on behalf
of the bridged cores.

Approved by:	adrian (mentor, implicit)
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D12518
</content>
</entry>
<entry>
<title>bhnd: Remove unsupported USB core IDs from the bhnd_usb device table.</title>
<updated>2017-09-06T23:43:20Z</updated>
<author>
<name>Landon J. Fuller</name>
<email>landonf@FreeBSD.org</email>
</author>
<published>2017-09-06T23:43:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=f526d86d7577dc9c5a23a3c1f504bdf156915d2f'/>
<id>urn:sha1:f526d86d7577dc9c5a23a3c1f504bdf156915d2f</id>
<content type='text'>
This resolves a SoC reset triggered by attempting to attach to the
BCM5365's USB 1.1 controller.

Approved by:	adrian (mentor, implicit)
</content>
</entry>
<entry>
<title>bhnd: initialize variable before use</title>
<updated>2017-08-30T17:39:51Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2017-08-30T17:39:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=53d534724ae704cb4e1990230add8baa11b44204'/>
<id>urn:sha1:53d534724ae704cb4e1990230add8baa11b44204</id>
<content type='text'>
Reported by:	Clang
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
</content>
</entry>
<entry>
<title>sys/dev: Replace zero with NULL for pointers.</title>
<updated>2017-02-20T03:43:12Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2017-02-20T03:43:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=4d24901ac9131267fd188c5e1ee19a219847238a'/>
<id>urn:sha1:4d24901ac9131267fd188c5e1ee19a219847238a</id>
<content type='text'>
Makes things easier to read, plus architectures may set NULL to something
different than zero.

Found with:	devel/coccinelle
MFC after:	3 weeks
</content>
</entry>
<entry>
<title>Fix device delete child function.</title>
<updated>2016-10-17T10:20:38Z</updated>
<author>
<name>Hans Petter Selasky</name>
<email>hselasky@FreeBSD.org</email>
</author>
<published>2016-10-17T10:20:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=d3bf5efc1ff19b102b176512a66110ec84ac982d'/>
<id>urn:sha1:d3bf5efc1ff19b102b176512a66110ec84ac982d</id>
<content type='text'>
When detaching device trees parent devices must be detached prior to
detaching its children. This is because parent devices can have
pointers to the child devices in their softcs which are not
invalidated by device_delete_child(). This can cause use after free
issues and panic().

Device drivers implementing trees, must ensure its detach function
detaches or deletes all its children before returning.

While at it remove now redundant device_detach() calls before
device_delete_child() and device_delete_children(), mostly in
the USB controller drivers.

Tested by:		Jan Henrik Sylvester &lt;me@janh.de&gt;
Reviewed by:		jhb
Differential Revision:	https://reviews.freebsd.org/D8070
MFC after:		2 weeks
</content>
</entry>
<entry>
<title>bhnd(4): Implement common API for IOST/IOCTL register access and core reset</title>
<updated>2016-09-24T04:08:16Z</updated>
<author>
<name>Landon J. Fuller</name>
<email>landonf@FreeBSD.org</email>
</author>
<published>2016-09-24T04:08:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=8a03f98a8bbbfe45211330f7634c93321ba34813'/>
<id>urn:sha1:8a03f98a8bbbfe45211330f7634c93321ba34813</id>
<content type='text'>
- Added bhnd(4) bus APIs for per-core ioctl/iost register access.
- Updated reset/suspend bhnd(4) APIs for compatibility with ioctl/iost
  changes.
- Implemented core reset/suspend support for both bcma(4) and siba(4).
- Implemented explicit release of all outstanding PMU requests at the bus
  level when putting a core into reset.

Approved by:    adrian (mentor, implicit)
Differential Revision:  https://reviews.freebsd.org/D8009
</content>
</entry>
<entry>
<title>[BHND/USB] Port of EHCI/OHCI support from ZRouter</title>
<updated>2016-09-05T16:06:52Z</updated>
<author>
<name>Michael Zhilin</name>
<email>mizhka@FreeBSD.org</email>
</author>
<published>2016-09-05T16:06:52Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=29d492ace1156ed156c8544b560d114664896f60'/>
<id>urn:sha1:29d492ace1156ed156c8544b560d114664896f60</id>
<content type='text'>
This patch adds driver implementation for BHND USB core. Driver has been
imported from ZRouter project with small adaptions for FreeBSD 11.

Also it's enabled for BroadCom MIPS74k boards by default. It's fully tested
on Asus boards (RT-N16: external USB, RT-N53: USB bus between SoC and WiFi
chips).

Reviewed by:    adrian (mentor), ray
Approved by:	adrian (mentor)
Obtained from:	ZRouter
Differential Revision:  https://reviews.freebsd.org/D7781
</content>
</entry>
</feed>
