[PATCH -v2] PCI,pciehp: Not write linkctrl register if val is not changed

2017-02-23 Thread Yinghai Lu
Most system have port link enabled by default, and should not have confusing printout. Also move printout before actully write, so could make debug print in order. -v2: inline __pciehp_link_set into pciehp_link_enable Signed-off-by: Yinghai Lu ---

[PATCH -v2] PCI,pciehp: Not write linkctrl register if val is not changed

2017-02-23 Thread Yinghai Lu
Most system have port link enabled by default, and should not have confusing printout. Also move printout before actully write, so could make debug print in order. -v2: inline __pciehp_link_set into pciehp_link_enable Signed-off-by: Yinghai Lu --- drivers/pci/hotplug/pciehp_hpc.c | 19