PCI: rockchip: Fix rockchip_pcie_ep_assert_intx() bitwise operations
authorColin Ian King <colin.king@canonical.com>
Sat, 30 Mar 2019 15:09:10 +0000 (15:09 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:50:38 +0000 (14:50 +0100)
commit80198980a2274409c8627e0e65b52dd51b5cf962
tree8b10e202964e64c961cd1c041ebb01a0710f47cc
parent5d918cd203d4b4ef2e87c22e181a9a0341ca7f7e
PCI: rockchip: Fix rockchip_pcie_ep_assert_intx() bitwise operations

[ Upstream commit c577f4a5a08bb9677e12ddafb62e2f3a901de87f ]

Currently the bitwise operations on the u16 variable 'status' with
the setting ROCKCHIP_PCIE_EP_CMD_STATUS_IS are incorrect because
ROCKCHIP_PCIE_EP_CMD_STATUS_IS is 1UL<<19 which is wider than the
u16 variable.

Fix this by making status a u32.

Fixes: cf590b078391 ("PCI: rockchip: Add EP driver for Rockchip PCIe controller")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Mukesh Ojha <mojha@codeaurora.org>
Acked-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pci/controller/pcie-rockchip-ep.c