diff options
| author | Pali Rohár <[email protected]> | 2021-10-22 16:22:08 +0200 |
|---|---|---|
| committer | Stefan Roese <[email protected]> | 2021-11-03 06:45:26 +0100 |
| commit | daa9bfdb9cff9cc7ff0ad93383bbaf2bd618ab5e (patch) | |
| tree | e8ca69b07b0c55d9791dfbeb1b22b60b189e5f0e /scripts/kernel-doc | |
| parent | a79115dde373f7cdb181040dd6489fd0b21bfbd2 (diff) | |
pci: pci_mvebu: Fix write_config() with PCI_SIZE_8 or PCI_SIZE_16
Current implementation of write_config() is broken for PCI_SIZE_8 or
PCI_SIZE_16 as it always uses writel(), which means that write operation
is always 32-bit, so upper 24 bits for PCI_SIZE_8 and upper 16 bits for
PCI_SIZE_16 are cleared.
Fix this by using writeb() and writew(), respectively.
Signed-off-by: Pali Rohár <[email protected]>
Reviewed-by: Marek Behún <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
Diffstat (limited to 'scripts/kernel-doc')
0 files changed, 0 insertions, 0 deletions
