Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a3c4f2fb authored by Chris Metcalf's avatar Chris Metcalf
Browse files

tile PCI RC: gentler warning for missing plug-in PCI



Besides using pr_info() to print the linkdown status for a plug-in
slot, add extra indication that this is expected if the slot is empty.

Signed-off-by: default avatarChris Metcalf <cmetcalf@tilera.com>
parent 90d9dd66
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -64,8 +64,9 @@ struct pcie_port_property
   *  will not consider it an error if the link comes up as a x8 link. */
  uint8_t allow_x8: 1;

  /** Reserved. */
  uint8_t reserved: 1;
  /** If true, this link is connected to a device which may or may not
   *  be present. */
  uint8_t removable: 1;

};

+8 −2
Original line number Diff line number Diff line
@@ -729,6 +729,12 @@ int __init pcibios_init(void)
			__gxio_mmio_read(trio_context->mmio_base_mac +
					 reg_offset);
		if (!port_status.dl_up) {
			if (pcie_ports[trio_index][mac].removable) {
				pr_info("PCI: link is down, MAC %d on TRIO %d\n",
					mac, trio_index);
				pr_info("This is expected if no PCIe card"
					" is connected to this link\n");
			} else
				pr_err("PCI: link is down, MAC %d on TRIO %d\n",
					mac, trio_index);
			continue;