]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: rpaphp: Annotate and correctly byte swap DRC properties
authorTyrel Datwyler <tyreld@linux.ibm.com>
Mon, 11 Nov 2019 05:21:35 +0000 (23:21 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 13 Nov 2019 05:57:58 +0000 (16:57 +1100)
commit85406c262ca23d32e4a8b6f1b5ed104de9a3a550
treeb97189f2c6060dfd645938345cbfd4259c100d09
parent653f9ff6be3c592a39d3548cf230aae0f664e594
PCI: rpaphp: Annotate and correctly byte swap DRC properties

The device tree is in big endian format and any properties directly
retrieved using OF helpers that don't explicitly byte swap should
be annotated. In particular there are several places where we grab
the opaque property value for the old ibm,drc-* properties and the
ibm,my-drc-index property.

Fix this for better static checking by annotating values we know to
explicitly big endian, and byte swap where appropriate.

Signed-off-by: Tyrel Datwyler <tyreld@linux.ibm.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1573449697-5448-9-git-send-email-tyreld@linux.ibm.com
drivers/pci/hotplug/rpaphp_core.c