PCI/switchtec: Fix vep_vector_number ioread width
authorLogan Gunthorpe <logang@deltatee.com>
Mon, 6 Jan 2020 19:03:27 +0000 (12:03 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Feb 2020 21:34:09 +0000 (16:34 -0500)
commitdf26f04f23bd252219e6704f3a4c58c48415aa22
treec6e5a5f66d9f42240e495ee4b8effb82fe108291
parentb72b8d0725b0fa3d6ae991824be7df74ecf8077f
PCI/switchtec: Fix vep_vector_number ioread width

commit 9375646b4cf03aee81bc6c305aa18cc80b682796 upstream.

vep_vector_number is actually a 16 bit register which should be read with
ioread16() instead of ioread32().

Fixes: 080b47def5e5 ("MicroSemi Switchtec management interface driver")
Link: https://lore.kernel.org/r/20200106190337.2428-3-logang@deltatee.com
Reported-by: Doug Meyer <dmeyer@gigaio.com>
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pci/switch/switchtec.c