Skip to contentSkip to conversation

arch/sh: pcie-sh7786: do not disable MAC data scrambling

PATCH In review Thomas Petazzoni 1 participant 1 message Mar 26, 2018 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 5/5 arch/sh: pcie-sh7786: do not disable MAC data scrambling

The code enables MAC data scrambling, and then later disables it. Disabling MAC data is mostly a debugging feature, data scrambling should normally be enabled.

---
 arch/sh/drivers/pci/pcie-sh7786.c | 5 -----
 1 file changed, 5 deletions(-)
arch/sh/drivers/pci/pcie-sh7786.c +0 -5
index 88841ceb2f06..ca72e838ce62 100644
@@ -427,11 +427,6 @@ static int __init pcie_init(struct sh7786_pcie_port *port)
 	data |= PCIEDLINTENR_DLL_ACT_ENABLE;
 	pci_write_reg(chan, data, SH4A_PCIEDLINTENR);
 
-	/* Disable MAC data scrambling. */
-	data = pci_read_reg(chan, SH4A_PCIEMACCTLR);
-	data |= PCIEMACCTLR_SCR_DIS | (0xff << 16);
-	pci_write_reg(chan, data, SH4A_PCIEMACCTLR);
-
 	/*
 	 * This will timeout if we don't have a link, but we permit the
 	 * port to register anyways in order to support hotplug on future
Signature · 1 line
2.14.3