On Tue, May 20 2014, Gavin Shan <gwshan@xxxxxxxxxxxxxxxxxx> wrote: > PCI accessors from user space pci_user_{read,write}_config_*() > return negative error number, which was introduced by commit > 34e32072 ("PCI: handle positive error codes"). That patch coverts > all positive error numbers from platform specific PCI config > accessors to -EINVAL. The upper layer calling to those PCI config > accessors hardly know the specific cause from the return value > when hitting failures. > > The patch fixes the issue by doing the conversion (from positive > to negative) using existing function pcibios_err_to_errno(). > > v2: pcibios_err_to_errno() translates unrecognized value to -ERANGE. > > Signed-off-by: Gavin Shan <gwshan@xxxxxxxxxxxxxxxxxx> Acked-by: Greg Thelen <gthelen@xxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html