The GPIO drivers were initialising their mutexes with type of
MTX_NETWORK_LOCK. This is wrong since these mutexes have nothing to do with networking.
This commit is contained in:
parent
e31eb35c3f
commit
8c09f7b626
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=239351
@ -435,8 +435,7 @@ cambria_gpio_attach(device_t dev)
|
||||
sc->sc_iot = ixp425_softc->sc_iot;
|
||||
sc->sc_gpio_ioh = ixp425_softc->sc_gpio_ioh;
|
||||
|
||||
mtx_init(&sc->sc_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK,
|
||||
MTX_DEF);
|
||||
mtx_init(&sc->sc_mtx, device_get_nameunit(dev), NULL, MTX_DEF);
|
||||
|
||||
for (pin = 0; pin < GPIO_PINS; pin++) {
|
||||
struct cambria_gpio_pin *p = &cambria_gpio_pins[pin];
|
||||
|
@ -335,8 +335,7 @@ ar71xx_gpio_attach(device_t dev)
|
||||
KASSERT((device_get_unit(dev) == 0),
|
||||
("ar71xx_gpio: Only one gpio module supported"));
|
||||
|
||||
mtx_init(&sc->gpio_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK,
|
||||
MTX_DEF);
|
||||
mtx_init(&sc->gpio_mtx, device_get_nameunit(dev), NULL, MTX_DEF);
|
||||
|
||||
/* Map control/status registers. */
|
||||
sc->gpio_mem_rid = 0;
|
||||
|
@ -383,8 +383,7 @@ octeon_gpio_attach(device_t dev)
|
||||
KASSERT((device_get_unit(dev) == 0),
|
||||
("octeon_gpio: Only one gpio module supported"));
|
||||
|
||||
mtx_init(&sc->gpio_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK,
|
||||
MTX_DEF);
|
||||
mtx_init(&sc->gpio_mtx, device_get_nameunit(dev), NULL, MTX_DEF);
|
||||
|
||||
for ( i = 0; i < OCTEON_GPIO_IRQS; i++) {
|
||||
if ((sc->gpio_irq_res[i] = bus_alloc_resource(dev,
|
||||
|
@ -447,8 +447,7 @@ rt305x_gpio_attach(device_t dev)
|
||||
KASSERT((device_get_unit(dev) == 0),
|
||||
("rt305x_gpio_gpio: Only one gpio module supported"));
|
||||
|
||||
mtx_init(&sc->gpio_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK,
|
||||
MTX_DEF);
|
||||
mtx_init(&sc->gpio_mtx, device_get_nameunit(dev), NULL, MTX_DEF);
|
||||
|
||||
/* Map control/status registers. */
|
||||
sc->gpio_mem_rid = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user