Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ahci: qoriq: Update the default Rx watermark value

The PTC[RXWM] sets the watermark value for Rx FIFO. The default
value 0x20 might be insufficient for some hard drives. If the
watermark value is too small, a single-cycle overflow may occur
and is reported as a CRC or internal error in the PxSERR register.
Updated the value to 0x29 according to the validation test.
All LS platforms are affected.

Signed-off-by: Tang Yuantian <Yuantian.Tang@freescale.com>
Signed-off-by: Tejun Heo <tj@kernel.org>

authored by

Tang Yuantian and committed by
Tejun Heo
e3a6dadc ef0cc7fe

+2 -1
+2 -1
drivers/ata/ahci_qoriq.c
··· 38 38 #define AHCI_PORT_PHY_3_CFG 0x0e081004 39 39 #define AHCI_PORT_PHY_4_CFG 0x00480811 40 40 #define AHCI_PORT_PHY_5_CFG 0x192c96a4 41 - #define AHCI_PORT_TRANS_CFG 0x08000025 41 + #define AHCI_PORT_TRANS_CFG 0x08000029 42 42 #define LS1043A_PORT_PHY2 0x28184d1f 43 43 #define LS1043A_PORT_PHY3 0x0e081509 44 44 ··· 169 169 170 170 case AHCI_LS2080A: 171 171 writel(AHCI_PORT_PHY_1_CFG, reg_base + PORT_PHY1); 172 + writel(AHCI_PORT_TRANS_CFG, reg_base + PORT_TRANS); 172 173 break; 173 174 } 174 175