CVSROOT: /cvs Module name: src Changes by: patr...@cvs.openbsd.org 2016/10/02 12:56:05
Modified files: sys/dev/ic : ahci.c Log message: Some HABs reset parts of AHCI_PREG_CMD when AHCI_PREG_SCTL_DET_INIT gets set. Therefore, ahci_port_softreset() restores the sate of the former register once the device detection sequence is finished. The device detection code in ahci_pmp_port_portreset() does not restore AHCI_PREG_CMD afterwards, so let it catch up. Apparently, this part was an oversight as ahci_pmp_port_portreset() did not otherwise use "cmd". >From Marius Strobl tested by awolk (amd64), bluhm (amd64, i386), myself (amd64, armv7) ok jmatthew@