mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 20:54:03 +02:00
Merge branch 'pci/misc'
- Fix typos in documentation (D'Orus Tsitera) - Use %pe format specifier to print error pointers so we get symbolic errname when available (Krzysztof Wilczyński) * pci/misc: PCI: Use %pe format specifier to print error pointers Documentation: PCI: Fix sysfs-bus-pci typo
This commit is contained in:
commit
9324becc39
|
|
@ -171,7 +171,7 @@ Description:
|
|||
all devices attached through the subordinate bus of a specific
|
||||
bridge device, writing 1 to this will try to do it. This will
|
||||
affect all devices attached to the system through this bridge
|
||||
similiar to writing 1 to their individual "reset" file, so use
|
||||
similar to writing 1 to their individual "reset" file, so use
|
||||
with caution.
|
||||
|
||||
What: /sys/bus/pci/devices/.../vpd
|
||||
|
|
|
|||
|
|
@ -398,7 +398,7 @@ static int meson_pcie_probe(struct platform_device *pdev)
|
|||
|
||||
mp->phy = devm_phy_get(dev, "pcie");
|
||||
if (IS_ERR(mp->phy)) {
|
||||
dev_err(dev, "get phy failed, %ld\n", PTR_ERR(mp->phy));
|
||||
dev_err(dev, "get phy failed, %pe\n", mp->phy);
|
||||
return PTR_ERR(mp->phy);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2196,15 +2196,15 @@ static int tegra_pcie_dw_probe(struct platform_device *pdev)
|
|||
if (IS_ERR(pcie->pex_ctl_supply)) {
|
||||
ret = PTR_ERR(pcie->pex_ctl_supply);
|
||||
if (ret != -EPROBE_DEFER)
|
||||
dev_err(dev, "Failed to get regulator: %ld\n",
|
||||
PTR_ERR(pcie->pex_ctl_supply));
|
||||
dev_err(dev, "Failed to get regulator: %pe\n",
|
||||
pcie->pex_ctl_supply);
|
||||
return ret;
|
||||
}
|
||||
|
||||
pcie->core_clk = devm_clk_get(dev, "core");
|
||||
if (IS_ERR(pcie->core_clk)) {
|
||||
dev_err(dev, "Failed to get core clock: %ld\n",
|
||||
PTR_ERR(pcie->core_clk));
|
||||
dev_err(dev, "Failed to get core clock: %pe\n",
|
||||
pcie->core_clk);
|
||||
return PTR_ERR(pcie->core_clk);
|
||||
}
|
||||
|
||||
|
|
@ -2226,8 +2226,8 @@ static int tegra_pcie_dw_probe(struct platform_device *pdev)
|
|||
|
||||
pcie->core_apb_rst = devm_reset_control_get(dev, "apb");
|
||||
if (IS_ERR(pcie->core_apb_rst)) {
|
||||
dev_err(dev, "Failed to get APB reset: %ld\n",
|
||||
PTR_ERR(pcie->core_apb_rst));
|
||||
dev_err(dev, "Failed to get APB reset: %pe\n",
|
||||
pcie->core_apb_rst);
|
||||
return PTR_ERR(pcie->core_apb_rst);
|
||||
}
|
||||
|
||||
|
|
@ -2268,8 +2268,8 @@ static int tegra_pcie_dw_probe(struct platform_device *pdev)
|
|||
|
||||
pcie->core_rst = devm_reset_control_get(dev, "core");
|
||||
if (IS_ERR(pcie->core_rst)) {
|
||||
dev_err(dev, "Failed to get core reset: %ld\n",
|
||||
PTR_ERR(pcie->core_rst));
|
||||
dev_err(dev, "Failed to get core reset: %pe\n",
|
||||
pcie->core_rst);
|
||||
return PTR_ERR(pcie->core_rst);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1719,7 +1719,7 @@ static int advk_pcie_setup_phy(struct advk_pcie *pcie)
|
|||
|
||||
/* Old bindings miss the PHY handle */
|
||||
if (IS_ERR(pcie->phy)) {
|
||||
dev_warn(dev, "PHY unavailable (%ld)\n", PTR_ERR(pcie->phy));
|
||||
dev_warn(dev, "PHY unavailable (%pe)\n", pcie->phy);
|
||||
pcie->phy = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1356,8 +1356,7 @@ static int tegra_pcie_port_get_phys(struct tegra_pcie_port *port)
|
|||
for (i = 0; i < port->lanes; i++) {
|
||||
phy = devm_of_phy_optional_get_index(dev, port->np, "pcie", i);
|
||||
if (IS_ERR(phy)) {
|
||||
dev_err(dev, "failed to get PHY#%u: %ld\n", i,
|
||||
PTR_ERR(phy));
|
||||
dev_err(dev, "failed to get PHY#%u: %pe\n", i, phy);
|
||||
return PTR_ERR(phy);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -232,8 +232,8 @@ int rockchip_pcie_get_phys(struct rockchip_pcie *rockchip)
|
|||
|
||||
if (IS_ERR(phy)) {
|
||||
if (PTR_ERR(phy) != -EPROBE_DEFER)
|
||||
dev_err(dev, "missing phy for lane %d: %ld\n",
|
||||
i, PTR_ERR(phy));
|
||||
dev_err(dev, "missing phy for lane %d: %pe\n",
|
||||
i, phy);
|
||||
return PTR_ERR(phy);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -858,8 +858,8 @@ void pci_doe_init(struct pci_dev *pdev)
|
|||
PCI_EXT_CAP_ID_DOE))) {
|
||||
doe_mb = pci_doe_create_mb(pdev, offset);
|
||||
if (IS_ERR(doe_mb)) {
|
||||
pci_err(pdev, "[%x] failed to create mailbox: %ld\n",
|
||||
offset, PTR_ERR(doe_mb));
|
||||
pci_err(pdev, "[%x] failed to create mailbox: %pe\n",
|
||||
offset, doe_mb);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1636,8 +1636,8 @@ pci_acpi_setup_ecam_mapping(struct acpi_pci_root *root)
|
|||
|
||||
cfg = pci_ecam_create(dev, &cfgres, bus_res, ecam_ops);
|
||||
if (IS_ERR(cfg)) {
|
||||
dev_err(dev, "%04x:%pR error %ld mapping ECAM\n", seg, bus_res,
|
||||
PTR_ERR(cfg));
|
||||
dev_err(dev, "%04x:%pR error %pe mapping ECAM\n", seg, bus_res,
|
||||
cfg);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user