]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: brcmstb: Set bus max burst size by chip type
authorJim Quinlan <jquinlan@broadcom.com>
Fri, 11 Sep 2020 17:52:29 +0000 (13:52 -0400)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 2 Oct 2020 11:40:40 +0000 (12:40 +0100)
commit7861b094c00b9373f6ff5bfee9156a49156bd977
tree4a44af4f8fc2a561f96a29c84075d509704ea24b
parent518b4113245b1895277fa3850a6836aca3de337e
PCI: brcmstb: Set bus max burst size by chip type

The proper value of the parameter SCB_MAX_BURST_SIZE varies per chip.  The
2711 family requires 128B whereas other devices can employ 512.  The
assignment is complicated by the fact that the values for this two-bit
field have different meanings;

  Value   Type_Generic    Type_7278

     00       Reserved         128B
     01           128B         256B
     10           256B         512B
     11           512B     Reserved

Link: https://lore.kernel.org/r/20200911175232.19016-10-james.quinlan@broadcom.com
Signed-off-by: Jim Quinlan <jquinlan@broadcom.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
drivers/pci/controller/pcie-brcmstb.c