pci-v5.5-fixes-1

-----BEGIN PGP SIGNATURE-----
 
 iQJIBAABCgAyFiEEgMe7l+5h9hnxdsnuWYigwDrT+vwFAl3z+XEUHGJoZWxnYWFz
 QGdvb2dsZS5jb20ACgkQWYigwDrT+vyxTQ//XJnI1hVDk0HmRGYuuUiPMDaDttb5
 xh6bTx5jgvuDJPDN25mJyF3Lg32zaqMVdldZK74Yr3kgDpfhB/HDhRKA8ov6miLG
 k4fMdQnBnQQ9okBCZvYHg2XBWs+RHjAi/bznBe9BsPvoJyNNigkEEnxu4kMSWLqw
 Yys4qoUk/wJ6RuCRkuLSm+zNyXLoWQa03Jtxe1j6Y5iBbU8LSP1v/4X2yNxtOked
 ThNzV/IfvtJT0iqpwwwu6ZuRYpHxhle+QpcbTGsRR/z/QX+ss+8ZB3mprITr4qaK
 ol94GfBPpr6b1N85lw/S8GbDKAFi10JIs1x99yhYyP99sK6wbhwLXQmW1H2mN+Go
 IMPsUP/zJYfwd3CKUrjcqBokQvO8mCgq0ElxSsFk8l2el71GZukIB500J+Dz1J84
 M0tdapx7YA6zGW4CQgGorDdVJyL9uIg52kPSqgw1725EOS2h9uVUvuFvR55A2ONU
 MdRFhtsIwQ49Jk5Ax1dwLa7/tPpUHMkWo08IQ4nuCdhpHKZca6WtBj07PYniZGxP
 p1lwOgcv+XiFdcnlRoT4g+0TV3sBIgmSCab9FGtbb6/TU8QbhnrJ3R4cdDW510iV
 OSDbrWJaOwgQINkz938txlqXhWuF1zEzULrNf2ije7IAhsBpq2G7bj4T26olydp1
 NCZw0RdXnVQWP0A=
 =1jZa
 -----END PGP SIGNATURE-----

Merge tag 'pci-v5.5-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci

Pull PCI fix from Bjorn Helgaas:
 "Fix rockchip outbound ATU issue that prevented Google Kevin
  Chromebooks from booting (Enric Balletbo i Serra)"

* tag 'pci-v5.5-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci:
  PCI: rockchip: Fix IO outbound ATU register number
This commit is contained in:
Linus Torvalds 2019-12-13 14:52:03 -08:00
commit 1d76c0792a

View File

@ -834,10 +834,12 @@ static int rockchip_pcie_cfg_atu(struct rockchip_pcie *rockchip)
if (!entry)
return -ENODEV;
/* store the register number offset to program RC io outbound ATU */
offset = size >> 20;
size = resource_size(entry->res);
pci_addr = entry->res->start - entry->offset;
offset = size >> 20;
for (reg_no = 0; reg_no < (size >> 20); reg_no++) {
err = rockchip_pcie_prog_ob_atu(rockchip,
reg_no + 1 + offset,