[PATCH v4 09/11] PCI: rockchip: Use u32 variable to access 32-bit registers

Damien Le Moal dlemoal at kernel.org
Mon Apr 17 16:56:29 PDT 2023

On 4/17/23 18:26, Rick Wertenbroek wrote:
> Previously u16 variables were used to access 32-bit registers, this
> resulted in not all of the data being read from the registers. Also
> the left shift of more than 16-bits would result in moving data out
> of the variable. Use u32 variables to access 32-bit registers
> Fixes: cf590b078391 ("PCI: rockchip: Add EP driver for Rockchip PCIe controller")
> Cc: stable at vger.kernel.org
> Signed-off-by: Rick Wertenbroek <rick.wertenbroek at gmail.com>
> Tested-by: Damien Le Moal <dlemoal at kernel.org>

Looks good.

Reviewed-by: Damien Le Moal <dlemoal at kernel.org>

More information about the Linux-rockchip mailing list