Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PCI: cadence: Update cdns_pcie_writel() function signature

cdns_pcie_writel() writes a long value; change the value parameter type
from u16 to u32 to rectify the function signature and related behaviour.

Signed-off-by: Alan Douglas <adouglas@cadence.com>
[lorenzo.pieralisi@arm.com: updated commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>

authored by

Alan Douglas and committed by
Lorenzo Pieralisi
7e37dc1d ce397d21

+1 -1
+1 -1
drivers/pci/controller/pcie-cadence.h
··· 279 279 } 280 280 281 281 static inline void cdns_pcie_ep_fn_writel(struct cdns_pcie *pcie, u8 fn, 282 - u32 reg, u16 value) 282 + u32 reg, u32 value) 283 283 { 284 284 writel(value, pcie->reg_base + CDNS_PCIE_EP_FUNC_BASE(fn) + reg); 285 285 }