Lukas Wunner 0fa635aec9 PCI/LINK: Deduplicate bandwidth reports for multi-function devices
If a multi-function device's bandwidth is already limited when it is
enumerated, a message is logged only for function 0.  By contrast, when
downtraining occurs after enumeration, a message is logged for all
functions.  That's because the former uses pcie_report_downtraining(),
whereas the latter uses __pcie_print_link_status() (which doesn't filter
functions != 0).  I am seeing this happen on a MacBookPro9,1 with a GPU
(function 0) and an integrated HDA controller (function 1).

Avoid this incongruence by calling pcie_report_downtraining() in both
cases.

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Alexandru Gagniuc <alex.gagniuc@dellteam.com>
2019-03-25 17:59:07 -05:00
..
2019-03-09 14:57:08 -08:00
2019-03-06 15:30:15 -06:00
2018-03-19 14:20:43 -05:00
2019-01-14 17:01:20 -06:00
2018-03-19 14:20:43 -05:00
2019-01-05 17:57:34 -08:00
2019-02-08 13:40:36 -06:00
2018-03-19 14:20:43 -05:00
2018-10-02 10:14:32 +02:00
2018-03-19 14:20:43 -05:00
2019-03-09 14:57:08 -08:00
2019-03-09 14:57:08 -08:00
2018-06-29 21:17:26 -05:00
2018-03-19 14:20:43 -05:00
2018-03-19 14:20:43 -05:00
2018-09-21 12:18:10 -05:00
2018-03-19 14:20:43 -05:00
2018-02-01 11:40:07 -06:00
2018-03-19 14:20:43 -05:00