Re: [PATCH v2 1/2] switchtec: Fix false maximum supported PCIe function number issue

2019-04-18 Thread Logan Gunthorpe
On 2019-04-17 4:48 p.m., Bjorn Helgaas wrote: --- drivers/pci/switch/switchtec.c | 39 +--- include/linux/switchtec.h| 2 +- include/uapi/linux/switchtec_ioctl.h | 13 +++- 3 files changed, 40 insertions(+), 14 deletions(-) diff

Re: [PATCH v2 1/2] switchtec: Fix false maximum supported PCIe function number issue

2019-04-18 Thread Bjorn Helgaas
On Fri, Apr 19, 2019 at 12:56:21AM +0800, wesleywesley wrote: > On Wed, Apr 17, 2019 at 05:48:58PM -0500, Bjorn Helgaas wrote: > > On Mon, Apr 15, 2019 at 10:41:41PM +0800, Wesley Sheng wrote: > > > The hardware supports up to 255 PFFs and the driver only supports 48, so > > > this patch updates

Re: [PATCH v2 1/2] switchtec: Fix false maximum supported PCIe function number issue

2019-04-17 Thread Bjorn Helgaas
On Mon, Apr 15, 2019 at 10:41:41PM +0800, Wesley Sheng wrote: > The hardware supports up to 255 PFFs and the driver only supports 48, so > this patch updates the driver to support them all. To be backward > compatible, a new ioctl and corresponding data structure are created, > while keep the

[PATCH v2 1/2] switchtec: Fix false maximum supported PCIe function number issue

2019-04-15 Thread Wesley Sheng
The hardware supports up to 255 PFFs and the driver only supports 48, so this patch updates the driver to support them all. To be backward compatible, a new ioctl and corresponding data structure are created, while keep the deprecated one. Signed-off-by: Wesley Sheng ---