mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
pci-v7.0-fixes-5
-----BEGIN PGP SIGNATURE----- iQJIBAABCgAyFiEEgMe7l+5h9hnxdsnuWYigwDrT+vwFAmnGkjwUHGJoZWxnYWFz QGdvb2dsZS5jb20ACgkQWYigwDrT+vxjGg/+JmSuiPpi809DKbyBxilKxLCxnKOt rlFwTNz9APzdDA2pBjzq1SXLllMb/SDbQeP5/gyg4pT6z5wIMOssHRMPa8RAluBR QvPdwaIWl/Y+iHQg20qr4cmqGXy0IqGTd1uLJRWxpA5ThLeB99C5ScS+AaWQhIZv hPZBztrXoAMFhLBr3M5slMy8w2nv/H9HGWL4gruVh5dymcQv4YJT3B3f9EZCYJS7 TNgnUGRr+Bq6EgAAqeicIfJQDK2vVC8Cs05SbyFoTca8gVb1/7zAMR4oHTUbQb41 lQ8t2tEKrsVjttcrVb8Y8QL2pGMPqSw2pdmEZldW1ByVCU37Fxb30g6hEuCVdQrd V/zhGTSiGGT6COHo7pv4AOrMyXBiYYcn7UZwvy4GDpck6Wf2NFKLFErUTSfURZ6I mKD18mDeK37hjKCbHfM3+pX4zoIAK5aPDWXweT+p5caglcPTj1YssQegklby2blt 8lQiVQNdMSN4qKUpgnDFPp9E16zTgMmLDnUXOTnW5tsgtu7OqeEvMZYfv3jI/5Ag QkBlBadbuPl8RD4HwXg5Nqy+/q/H93GSy67OJbg3Sjc5STMpMOvOTXvI8R5JzzZu b36/hc57+ps9tk4fzYHw71FqlNi14KU93/H8NURIBQYFIXb2Lv9Y71j2WcLx97dE AtGThYTV8KcKwAg= =wlly -----END PGP SIGNATURE----- Merge tag 'pci-v7.0-fixes-5' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci Pull pci fixes from Bjorn Helgaas: - Remove power-off from pwrctrl drivers since this is now done directly by the PCI controller drivers (Chen-Yu Tsai) - Fix pwrctrl device node leak (Felix Gu) - Document a TLP header decoder for AER log messages (Lukas Wunner) * tag 'pci-v7.0-fixes-5' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci: Documentation: PCI: Document PCIe TLP Header decoder for AER messages PCI/pwrctrl: Fix pci_pwrctrl_is_required() device node leak PCI/pwrctrl: Do not power off on pwrctrl device removal
This commit is contained in:
commit
8af4fad545
|
|
@ -85,6 +85,16 @@ In the example, 'Requester ID' means the ID of the device that sent
|
|||
the error message to the Root Port. Please refer to PCIe specs for other
|
||||
fields.
|
||||
|
||||
The 'TLP Header' is the prefix/header of the TLP that caused the error
|
||||
in raw hex format. To decode the TLP Header into human-readable form
|
||||
one may use tlp-tool:
|
||||
|
||||
https://github.com/mmpg-x86/tlp-tool
|
||||
|
||||
Example usage::
|
||||
|
||||
curl -L https://git.kernel.org/linus/2ca1c94ce0b6 | rtlp-tool --aer
|
||||
|
||||
AER Ratelimits
|
||||
--------------
|
||||
|
||||
|
|
|
|||
|
|
@ -299,8 +299,10 @@ static bool pci_pwrctrl_is_required(struct device_node *np)
|
|||
struct device_node *remote __free(device_node) =
|
||||
of_graph_get_remote_port_parent(endpoint);
|
||||
if (remote) {
|
||||
if (of_pci_supply_present(remote))
|
||||
if (of_pci_supply_present(remote)) {
|
||||
of_node_put(endpoint);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -68,13 +68,6 @@ static int pwrseq_pwrctrl_power_off(struct pci_pwrctrl *pwrctrl)
|
|||
return pwrseq_power_off(pwrseq->pwrseq);
|
||||
}
|
||||
|
||||
static void devm_pwrseq_pwrctrl_power_off(void *data)
|
||||
{
|
||||
struct pwrseq_pwrctrl *pwrseq = data;
|
||||
|
||||
pwrseq_pwrctrl_power_off(&pwrseq->pwrctrl);
|
||||
}
|
||||
|
||||
static int pwrseq_pwrctrl_probe(struct platform_device *pdev)
|
||||
{
|
||||
const struct pwrseq_pwrctrl_pdata *pdata;
|
||||
|
|
@ -101,11 +94,6 @@ static int pwrseq_pwrctrl_probe(struct platform_device *pdev)
|
|||
return dev_err_probe(dev, PTR_ERR(pwrseq->pwrseq),
|
||||
"Failed to get the power sequencer\n");
|
||||
|
||||
ret = devm_add_action_or_reset(dev, devm_pwrseq_pwrctrl_power_off,
|
||||
pwrseq);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
pwrseq->pwrctrl.power_on = pwrseq_pwrctrl_power_on;
|
||||
pwrseq->pwrctrl.power_off = pwrseq_pwrctrl_power_off;
|
||||
|
||||
|
|
|
|||
|
|
@ -63,7 +63,6 @@ static void devm_slot_pwrctrl_release(void *data)
|
|||
{
|
||||
struct slot_pwrctrl *slot = data;
|
||||
|
||||
slot_pwrctrl_power_off(&slot->pwrctrl);
|
||||
regulator_bulk_free(slot->num_supplies, slot->supplies);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user