Skip to content

Commit 6ae798c

Browse files
committed
s390: Implement __iowrite32_copy()
It is trivial to implement an inline to do this, so provide it in the s390 headers. Like the 64 bit version it should just invoke zpci_memcpy_toio() with the correct size. Link: https://lore.kernel.org/r/[email protected] Acked-by: Niklas Schnelle <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 20516d6 commit 6ae798c

File tree

1 file changed

+8
-0
lines changed
  • arch/s390/include/asm

1 file changed

+8
-0
lines changed

arch/s390/include/asm/io.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,14 @@ static inline void ioport_unmap(void __iomem *p)
7373
#define __raw_writel zpci_write_u32
7474
#define __raw_writeq zpci_write_u64
7575

76+
/* combine single writes by using store-block insn */
77+
static inline void __iowrite32_copy(void __iomem *to, const void *from,
78+
size_t count)
79+
{
80+
zpci_memcpy_toio(to, from, count * 4);
81+
}
82+
#define __iowrite32_copy __iowrite32_copy
83+
7684
#endif /* CONFIG_PCI */
7785

7886
#include <asm-generic/io.h>

0 commit comments

Comments
 (0)