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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 4 Jan 2020 18:17:57 +0000 (19:17 +0100)
commit1b49ded4448ac0153656c44d1165e9f970714bb8
tree4a07cf320a3956a2ed0f768370195acf3a8325bd
parent7aae44bbc91b90ae2b9fba573e51469ea4e1c7e4
PCI: rpaphp: Annotate and correctly byte swap DRC properties

[ Upstream commit 0737686778c6dbe0908d684dd5b9c05b127526ba ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pci/hotplug/rpaphp_core.c