diff options
| author | Nishanth Menon <nm@ti.com> | 2026-05-12 20:06:18 +0300 |
|---|---|---|
| committer | Nishanth Menon <nm@ti.com> | 2026-05-22 18:55:55 +0300 |
| commit | cb1a271a4f20faae9a10891bfae2b543778d2b4a (patch) | |
| tree | a44cf922a4cc2b5fd2f1dcebc9622ae4b29a2dcd /include/linux | |
| parent | a5f624c4fee6d7b51f7bc4bd6e213c220b610ec3 (diff) | |
| download | linux-cb1a271a4f20faae9a10891bfae2b543778d2b4a.tar.xz | |
soc: ti: knav_qmss: Fix __iomem annotations and __be32 type
Fix several address-space and type annotation issues reported by sparse:
- Change pdsp->command from 'void __iomem *' to 'u32 __iomem *' to
match the other union members (acc_command, qos_command); adjust
the offset in knav_queue_load_pdsp() from +0x18 to +0x6 to
preserve the 24-byte offset.
- Fix knav_queue_pdsp_wait() declaration: correct the parameter
annotation from 'u32 * __iomem' (pointer-in-iomem-space) to
'u32 __iomem *' (pointer-to-iomem); use 'unsigned int' for the
timeout parameter instead of bare 'unsigned'; fix the continuation-
line alignment.
- Use IOMEM_ERR_PTR() in knav_queue_map_reg() instead of ERR_PTR()
when returning an error as void __iomem *.
- Annotate the firmware data array as 'const __be32 *' instead of
'u32 *', as be32_to_cpu() requires __be32 input.
Reviewed-by: Sai Sree Kartheek Adivi <s-adivi@ti.com>
Reviewed-by: Hari Prasath Gujulan Elango <gehariprasath@ti.com>
Link: https://patch.msgid.link/20260512170623.3174416-7-nm@ti.com
Signed-off-by: Nishanth Menon <nm@ti.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
