ata: ahci_brcm: Avoid writing to read-only registers
authorDoug Berger <opendmb@gmail.com>
Wed, 21 Jun 2017 23:20:14 +0000 (16:20 -0700)
committerTejun Heo <tj@kernel.org>
Thu, 22 Jun 2017 20:13:00 +0000 (16:13 -0400)
commitda8fa9cca5b760cb8e5ab16ce7e1941cfc3e04cc
tree515a99da52faf49a63729afe9c52be99c41f1ffa
parent7fab72f85d862572ed3281860dc550b7e737ac52
ata: ahci_brcm: Avoid writing to read-only registers

This commit makes use of the AHCI_HFLAG_YES_ALPM flag to prevent
the driver from writing to the read-only Host Capability register.

It also sets the AHCI_HFLAG_NO_WRITE_TO_RO flag to prevent the AHCI
library from writing to read-only registers.

Signed-off-by: Doug Berger <opendmb@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/ahci_brcm.c