Skip to content

Commit 1d99411

Browse files
andy-shevdavem330
authored andcommitted
net: wwan: iosm: Replace io.*64_lo_hi() with regular accessors
The io.*_lo_hi() variants are not strictly needed on the x86 hardware and especially the PCI bus. Replace them with regular accessors, but leave headers in place in case of 32-bit build. Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 0a83299 commit 1d99411

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/net/wwan/iosm/iosm_ipc_mmio.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,10 @@ void ipc_mmio_config(struct iosm_mmio *ipc_mmio)
188188
/* AP memory window (full window is open and active so that modem checks
189189
* each AP address) 0 means don't check on modem side.
190190
*/
191-
iowrite64_lo_hi(0, ipc_mmio->base + ipc_mmio->offset.ap_win_base);
192-
iowrite64_lo_hi(0, ipc_mmio->base + ipc_mmio->offset.ap_win_end);
191+
iowrite64(0, ipc_mmio->base + ipc_mmio->offset.ap_win_base);
192+
iowrite64(0, ipc_mmio->base + ipc_mmio->offset.ap_win_end);
193193

194-
iowrite64_lo_hi(ipc_mmio->context_info_addr,
194+
iowrite64(ipc_mmio->context_info_addr,
195195
ipc_mmio->base + ipc_mmio->offset.context_info);
196196
}
197197

@@ -201,7 +201,7 @@ void ipc_mmio_set_psi_addr_and_size(struct iosm_mmio *ipc_mmio, dma_addr_t addr,
201201
if (!ipc_mmio)
202202
return;
203203

204-
iowrite64_lo_hi(addr, ipc_mmio->base + ipc_mmio->offset.psi_address);
204+
iowrite64(addr, ipc_mmio->base + ipc_mmio->offset.psi_address);
205205
writel(size, ipc_mmio->base + ipc_mmio->offset.psi_size);
206206
}
207207

0 commit comments

Comments
 (0)