Re: [PATCH 0/5] m68k: IO Fixes and Cleanups

2018-07-09 Thread Greg Ungerer
Hi Geert, On 09/07/18 19:30, Geert Uytterhoeven wrote: Hi all, This patch series contains fixes and cleanups for I/O accessors on m68k platforms (with MMU). The first patch contains small fixes without any dependencies. Patches 2 and 3 make small adjustments to drivers that are depende

Re: [PATCH 1/3] [v2] powerpc: mac: fix rtc read/write functions

2018-07-09 Thread Finn Thain
On Mon, 9 Jul 2018, Arnd Bergmann wrote: > > The most likely explanation I have here is that the RTC was indeed set > to an incorrect date, either because of a depleted battery (not unlikely > for a ~15 year old box) or because it was previously stored incorrectly. The PowerMac stores the GMT

Re: [PATCH 1/3] [v2] powerpc: mac: fix rtc read/write functions

2018-07-09 Thread Arnd Bergmann
On Sun, Jul 1, 2018 at 5:47 PM, Meelis Roos wrote: > A patch for the subject is now upstream. That made me finally take some > time to test it on my PowerMac G4. Tha date is OK but I get two warnings > with backtrace on bootup. Full dmesg below. Thanks for testing this, and sorry for the slow rep

Re: [PATCH 09/12] nubus: use for_each_if

2018-07-09 Thread Finn Thain
On Mon, 9 Jul 2018, Daniel Vetter wrote: > Avoids the inverted check compared to the open-coded version. > > Signed-off-by: Daniel Vetter > Cc: Finn Thain > Cc: linux-m...@lists.linux-m68k.org Acked-by: Finn Thain > --- > include/linux/nubus.h | 2 +- > 1 file changed, 1 insertion(+), 1 del

[PATCH 0/5] m68k: IO Fixes and Cleanups

2018-07-09 Thread Geert Uytterhoeven
Hi all, This patch series contains fixes and cleanups for I/O accessors on m68k platforms (with MMU). The first patch contains small fixes without any dependencies. Patches 2 and 3 make small adjustments to drivers that are dependencies for further cleanup. Patch 4 and 5 complete the clea

[PATCH 1/5] m68k/io: Add missing ioremap define guards, fix typo

2018-07-09 Thread Geert Uytterhoeven
- Add missing define guard for ioremap_wt(), - Move ARCH_HAS_IOREMAP_WT from to , as it is applicable to Coldfire with MMU, too, - Fix typo s/ioremap_fillcache/ioremap_fullcache/, - Add define guard for iounmap() for consistency with other architectures. Fixes: 9746882f547d2f00 ("

[PATCH 5/5] m68k/io: Switch mmu variant to

2018-07-09 Thread Geert Uytterhoeven
The dummy functions defined in can be provided by . As nommu already uses , move its inclusion to , and add/adjust include guards where appropriate. This gets rid of lots of "statement with no effect" and "unused variable" warnings when compile-testing. Signed-off-by: Geert Uytterhoeven --- v2

[PATCH 3/5] Input: hilkbd - Add casts to HP9000/300 I/O accessors

2018-07-09 Thread Geert Uytterhoeven
Internally, hilkbd uses "unsigned long" I/O addresses everywhere. This works fine as: - On PA-RISC, hilkbd uses the gsc_{read,write}b() I/O accessors, which take "unsigned long" addresses, - On m68k, hilkbd uses {read,write}b(), which are currently mapped to {in,out}_8(), and convert th

[PATCH 2/5] net: mac8390: Use standard memcpy_{from,to}io()

2018-07-09 Thread Geert Uytterhoeven
The mac8390 driver defines its own variants of memcpy_fromio() and memcpy_toio(), using similar implementations, but different function signatures. Remove the custom definitions of memcpy_fromio() and memcpy_toio(), and adjust all callers to the standard signatures. Signed-off-by: Geert Uytterhoe

[PATCH 4/5] m68k/io: Move mem*io define guards to

2018-07-09 Thread Geert Uytterhoeven
The mem*io define guards are applicable to all users of . Hence move them, and drop the #ifdef. Signed-off-by: Geert Uytterhoeven --- To avoid redefined warnings, this depends on "net: mac8390: Use standard memcpy_{from,to}io()". v2: - No changes. --- arch/m68k/include/asm/io_no.h | 11 --

[PATCH 09/12] nubus: use for_each_if

2018-07-09 Thread Daniel Vetter
Avoids the inverted check compared to the open-coded version. Signed-off-by: Daniel Vetter Cc: Finn Thain Cc: linux-m...@lists.linux-m68k.org --- include/linux/nubus.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/nubus.h b/include/linux/nubus.h index eba50b0