PCI: Set PCIE maxpayload for card during hotplug insertion
commita9c48a40ee2a8e5bf07515ec4cfcd349b8f0f8ad
authorJordan_Hargrave@Dell.com <Jordan_Hargrave@Dell.com>
Mon, 9 May 2011 20:24:55 +0000 (9 15:24 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 23 Jun 2011 22:05:34 +0000 (23 15:05 -0700)
treeaecc94a59a570936dfc7bf7af04a84a62fc30006
parent66bff327ac7ed733f6c99e4ac65647b94441b608
PCI: Set PCIE maxpayload for card during hotplug insertion

commit e522a7126c7c144a1dd14c6f217ac31e71082b1d upstream.

The following patch sets the MaxPayload setting to match the parent
reading when inserting a PCIE card into a hotplug slot.  On our system,
the upstream bridge is set to 256, but when inserting a card, the card
setting defaults to 128.  As soon as I/O is performed to the card it
starts receiving errors since the payload size is too small.

Reviewed-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Jordan Hargrave <jordan_hargrave@dell.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/hotplug/pcihp_slot.c