]> asedeno.scripts.mit.edu Git - linux.git/commit
ata: ahci_brcm: Avoid clobbering SATA_TOP_CTRL_BUS_CTRL
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 22 Dec 2017 19:43:08 +0000 (11:43 -0800)
committerTejun Heo <tj@kernel.org>
Tue, 2 Jan 2018 16:38:29 +0000 (08:38 -0800)
commit36fffd6a1f19dcd935851fd6c724957727d2760e
tree06114cd4d6c2582b1b92af6cb1dfb401916048df
parentebb82e3c79d2a956366d0848304a53648bd6350b
ata: ahci_brcm: Avoid clobbering SATA_TOP_CTRL_BUS_CTRL

We are doing a blind write to SATA_TOP_CTRL_BUS_CTRL to set the system
endian, but in doing so, we are also overwriting other bits, such as the
SATA_SCB_BURST_SIZE and SATA_FIFO_SIZE bits, which impact performance.
Do a read/modify/write so we keep the default values.

While we are at it, we also greatly simplify the logic and just leave
the NSP specific bit settings, instead of having a completely different
sequence.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/ahci_brcm.c