PCI: mvebu: Add support for sending Set_Slot_Power_Limit message
authorPali Rohár <pali@kernel.org>
Tue, 12 Apr 2022 09:49:46 +0000 (11:49 +0200)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 25 Apr 2022 09:53:39 +0000 (10:53 +0100)
commit0d5b8c298545c827ca9f2461b2655277ce0aef79
tree4f924ff8fbc82ba6eda667d59d3f135658b30829
parent35662423fb879dd0f32b7beae71fc5f6d8abf45c
PCI: mvebu: Add support for sending Set_Slot_Power_Limit message

If DT supplies the 'slot-power-limit-milliwatt' property, program
the value in the Slot Power Limit in the Slot Capabilities register
and program the Root Port to send a Set_Slot_Power_Limit Message
when the Link transitions to DL_Up.

Link: https://lore.kernel.org/r/20220412094946.27069-5-pali@kernel.org
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Rob Herring <robh@kernel.org>
drivers/pci/controller/pci-mvebu.c