On Sun, Oct 31, 2021 at 10:07 AM Marek Behún <kabel@xxxxxxxxxx> wrote: > > From: Pali Rohár <pali@xxxxxxxxxx> > > Add function of_pci_get_slot_power_limit(), which parses the > `slot-power-limit-milliwatt` DT property, returning the value in > milliwatts and in format ready for the PCIe Slot Capabilities Register. > > Signed-off-by: Pali Rohár <pali@xxxxxxxxxx> > Signed-off-by: Marek Behún <kabel@xxxxxxxxxx> > --- > drivers/pci/of.c | 64 +++++++++++++++++++++++++++++++++++++++++++++++ > drivers/pci/pci.h | 15 +++++++++++ > 2 files changed, 79 insertions(+) Reviewed-by: Rob Herring <robh@xxxxxxxxxx>