View | Details | Raw Unified | Return to bug 250248 | Differences between
and this patch

Collapse All | Expand All

(-)hdac.c (-6 / +8 lines)
Lines 1562-1573 Link Here
1562
	statests = HDAC_READ_2(&sc->mem, HDAC_STATESTS);
1562
	statests = HDAC_READ_2(&sc->mem, HDAC_STATESTS);
1563
	HDAC_WRITE_2(&sc->mem, HDAC_STATESTS, statests);
1563
	HDAC_WRITE_2(&sc->mem, HDAC_STATESTS, statests);
1564
1564
1565
	HDA_BOOTHVERBOSE(
1566
		device_printf(sc->dev,
1567
		    "Enabling controller interrupt...\n");
1568
	);
1569
	HDAC_WRITE_4(&sc->mem, HDAC_GCTL, HDAC_READ_4(&sc->mem, HDAC_GCTL) |
1570
	    HDAC_GCTL_UNSOL);
1571
	if (sc->polling == 0) {
1565
	if (sc->polling == 0) {
1572
		HDAC_WRITE_4(&sc->mem, HDAC_INTCTL,
1566
		HDAC_WRITE_4(&sc->mem, HDAC_INTCTL,
1573
		    HDAC_INTCTL_CIE | HDAC_INTCTL_GIE);
1567
		    HDAC_INTCTL_CIE | HDAC_INTCTL_GIE);
Lines 1614-1619 Link Here
1614
			sc->codecs[i].dev = child;
1608
			sc->codecs[i].dev = child;
1615
		}
1609
		}
1616
	}
1610
	}
1611
	hdac_lock(sc);
1612
	HDA_BOOTHVERBOSE(
1613
		device_printf(sc->dev,
1614
		    "Enabling controller interrupt...\n");
1615
	);
1616
	HDAC_WRITE_4(&sc->mem, HDAC_GCTL, HDAC_READ_4(&sc->mem, HDAC_GCTL) |
1617
	    HDAC_GCTL_UNSOL);
1618
	hdac_unlock(sc);
1617
	bus_generic_attach(sc->dev);
1619
	bus_generic_attach(sc->dev);
1618
1620
1619
	SYSCTL_ADD_PROC(device_get_sysctl_ctx(sc->dev),
1621
	SYSCTL_ADD_PROC(device_get_sysctl_ctx(sc->dev),

Return to bug 250248