pci: mpc85xx: Allow 8/16-bit access to PCI config space
authorPali Rohár <pali@kernel.org>
Thu, 13 Apr 2023 20:41:45 +0000 (22:41 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 1 May 2023 22:59:33 +0000 (18:59 -0400)
commitf5375a4500b2491f8315288dcaff3578e8b4c800
tree0a4150c76e4966954f1100dfd74f9140d8c2828f
parent76c72930f917ab348ff08d28a96b827d1626cb3a
pci: mpc85xx: Allow 8/16-bit access to PCI config space

This Freescale mpc85xx PCI controller should support 8-bit and 16-bit read
and write access to PCI config space as described in more Freescale
reference manuals.

This change fixes issue that 8-bit and 16-bit write to PCI config space
caused to clear adjacent bits of 32-bit PCI register.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Heiko Schocher <hs@denx.de>
Tested-by: Heiko Schocher <hs@denx.de>
drivers/pci/pci_mpc85xx.c