hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/pci/controller/pcie-iproc-msi.c
....@@ -302,11 +302,12 @@
302302
303303 static inline u32 decode_msi_hwirq(struct iproc_msi *msi, u32 eq, u32 head)
304304 {
305
- u32 *msg, hwirq;
305
+ u32 __iomem *msg;
306
+ u32 hwirq;
306307 unsigned int offs;
307308
308309 offs = iproc_msi_eq_offset(msi, eq) + head * sizeof(u32);
309
- msg = (u32 *)(msi->eq_cpu + offs);
310
+ msg = (u32 __iomem *)(msi->eq_cpu + offs);
310311 hwirq = readl(msg);
311312 hwirq = (hwirq >> 5) + (hwirq & 0x1f);
312313
....@@ -376,7 +377,7 @@
376377
377378 /*
378379 * Now go read the tail pointer again to see if there are new
379
- * oustanding events that came in during the above window.
380
+ * outstanding events that came in during the above window.
380381 */
381382 } while (true);
382383
....@@ -614,9 +615,9 @@
614615 }
615616
616617 /* Reserve memory for event queue and make sure memories are zeroed */
617
- msi->eq_cpu = dma_zalloc_coherent(pcie->dev,
618
- msi->nr_eq_region * EQ_MEM_REGION_SIZE,
619
- &msi->eq_dma, GFP_KERNEL);
618
+ msi->eq_cpu = dma_alloc_coherent(pcie->dev,
619
+ msi->nr_eq_region * EQ_MEM_REGION_SIZE,
620
+ &msi->eq_dma, GFP_KERNEL);
620621 if (!msi->eq_cpu) {
621622 ret = -ENOMEM;
622623 goto free_irqs;