RE: [PATCH 4/6] IB/qib: Use pcie_set_mps() and pcie_get_mps() tosimplify code

From: Marciniszyn, Mike
Date: Mon Sep 30 2013 - 10:56:44 EST


>
> Is something like the following what you had in mind? If so, I can
> just queue it up. Otherwise, I'll wait for Yijing to post a v2 patch.
>
>
> IB/qib: Use pcie_set_mps() and pcie_get_mps() to simplify code
>
> From: Yijing Wang <wangyijing@xxxxxxxxxx>
>
> Refactor qib_tune_pcie_caps(). Use pcie_get_mps(), pcie_set_mps(),
> pcie_get_readrq(), and pcie_set_readrq() to simplify the code. The PCI
> core caches the "PCIe Max Payload Size Supported" in pci_dev->pcie_mpss,
> so use that instead of pcie_capability_read_word(). Remove the unused
> val2fld() and fld2val().
>
> Signed-off-by: Yijing Wang <wangyijing@xxxxxxxxxx>
> Signed-off-by: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>

This works!

Go ahead and queue it up.

Mike
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/