]> rtime.felk.cvut.cz Git - linux-imx.git/commit
PCI: Set PCIE maxpayload for card during hotplug insertion
authorJordan_Hargrave@Dell.com <Jordan_Hargrave@Dell.com>
Mon, 9 May 2011 20:24:55 +0000 (15:24 -0500)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 10 May 2011 22:43:41 +0000 (15:43 -0700)
commite522a7126c7c144a1dd14c6f217ac31e71082b1d
tree254995a97ed165bc009812969ecafb8b5ef063bc
parenta246670ddee3132fa71f8993d3989ad8ac04d965
PCI: Set PCIE maxpayload for card during hotplug insertion

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>
drivers/pci/hotplug/pcihp_slot.c