Re: [PATCH v3] m68k: Fix memblock-related crashes

2018-12-08 Thread Geert Uytterhoeven
Hi Mike, On Fri, Dec 7, 2018 at 10:02 PM Mike Rapoport wrote: > On Fri, Dec 07, 2018 at 05:50:11PM +0100, Geert Uytterhoeven wrote: > > Sun-3 must be broken before this fix, as it fills in m68k_memory[0] in > > config_sun3(), i.e. after m68k_parse_bootinfo(). > > Sun-3 is

[PATCH v3] m68k: Fix memblock-related crashes

2018-12-07 Thread Geert Uytterhoeven
bootinfo() ignores all but the first memory chunk. Fix this by moving the calls to memblock_add() from m68k_parse_bootinfo() to paging_init(), after all ignored memory chunks have been removed from m68k_memory[]. Reported-by: Andreas Schwab Fixes: 1008a11590b966b4 ("m68k: switch to MEMBLOCK + N

Re: NFS/TCP crashes on MIPS/RBTX4927 in v4.20-rcX (bisected)

2018-12-07 Thread Geert Uytterhoeven
Hi Nemoto-san, On Fri, Dec 7, 2018 at 3:51 PM Atsushi Nemoto wrote: > On Wed, 5 Dec 2018 14:41:30 +0100, Geert Uytterhoeven > wrote: > > My next guess is an unaligned access not using {get,put}_unaligned(), which > > doesn't seem to work on tx4927, but doesn't cause an

Re: [PATCH 1/2] dt-bindings: rtc: add generic bindings

2018-12-07 Thread Geert Uytterhoeven
Hi Alexandre, On Fri, Dec 7, 2018 at 10:34 AM Alexandre Belloni wrote: > On 06/12/2018 11:36:59+0100, Geert Uytterhoeven wrote: > > > +The following properties may not be supported by all drivers. However, > > > if a > > > +driver wants to support one of the b

Re: [PATCH] pinctrl: rza1: report if devm_kasptrinf() fails

2018-12-07 Thread Geert Uytterhoeven
print a message on memory allocation failures anyway. Hence please remove it. With the above fixed: Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations

Re: [PATCH 1/2] dt-bindings: rtc: add generic bindings

2018-12-06 Thread Geert Uytterhoeven
given if internal trickle charger diode should be > + disabled > +- wakeup-source : Enables wake up of host system on alarm Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68

Re: [PATCH 0/4] soc: renesas: rcar-sysc: Miscellaneous fixes and cleanups

2018-12-06 Thread Geert Uytterhoeven
On Wed, Dec 5, 2018 at 4:39 PM Geert Uytterhoeven wrote: > This series (against renesas-devel-20181204-v4.20-rc5) contains > miscellaneous fixes and cleanups for the R-Car SYSC driver. > > This has been tested on R-Car Gen2 (H2 and M2-W) and R-Car Gen3 (H3 > ES1.0, H3 ES2.0, M3-

[PATCH 4/4] soc: renesas: rcar-sysc: Fix power domain control after system resume

2018-12-05 Thread Geert Uytterhoeven
-by: Geert Uytterhoeven --- drivers/soc/renesas/rcar-sysc.c | 28 +--- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/drivers/soc/renesas/rcar-sysc.c b/drivers/soc/renesas/rcar-sysc.c index 123e553510e826f5..0c80fab4f8de6bc8 100644 --- a/drivers/soc/renesas/rcar

Re: NFS/TCP crashes on MIPS/RBTX4927 in v4.20-rcX (bisected)

2018-12-05 Thread Geert Uytterhoeven
Hi Trond, On Wed, Dec 5, 2018 at 2:45 PM Trond Myklebust wrote: > On Wed, 2018-12-05 at 14:41 +0100, Geert Uytterhoeven wrote: > > On Wed, Dec 5, 2018 at 2:11 PM Atsushi Nemoto > > wrote: > > > On Tue, 4 Dec 2018 14:53:07 +0100, Geert Uytterhoeven < > > > ge

Re: NFS/TCP crashes on MIPS/RBTX4927 in v4.20-rcX (bisected)

2018-12-05 Thread Geert Uytterhoeven
Hi Nemoto-san, On Wed, Dec 5, 2018 at 2:11 PM Atsushi Nemoto wrote: > On Tue, 4 Dec 2018 14:53:07 +0100, Geert Uytterhoeven > wrote: > > I found similar crashes in a report from 2006, but of course the code > > has changed too much to apply the solution proposed there >

[PATCH v2] m68k: Fix crash in free_all_bootmem()

2018-12-04 Thread Geert Uytterhoeven
s, Zorro II RAM is ignored, and removed from the m68k_memory[] array. Fix this as well. Reported-by: Andreas Schwab Suggested-by: Mike Rapoport Tested-by: Michael Schmitz Fixes: 1008a11590b966b4 ("m68k: switch to MEMBLOCK + NO_BOOTMEM") Signed-off-by: Geert Uytterhoeven --- The Amiga

[PATCH] m68k: Fix crash in free_all_bootmem()

2018-12-04 Thread Geert Uytterhoeven
s, Zorro II RAM is ignored, and removed from the m68k_memory[] array. Fix this as well. Reported-by: Andreas Schwab Suggested-by: Mike Rapoport Tested-by: Michael Schmitz Fixes: 1008a11590b966b4 ("m68k: switch to MEMBLOCK + NO_BOOTMEM") Signed-off-by: Geert Uytterhoeven --- The Amig

Re: [PATCH] m68k: Fix crash in free_all_bootmem()

2018-12-04 Thread Geert Uytterhoeven
On Tue, Dec 4, 2018 at 2:15 PM Geert Uytterhoeven wrote: > When running the kernel in Fast RAM on Atari: > > Ignoring memory chunk at 0x0:0xe0 before the first chunk > ... > --- > The Amiga part is untested. Oops, not even compile-tested... /me hides in a brow

Re: [PATCH v5 02/21] lib/vsprintf: Print time and date in human readable format via %pt

2018-12-04 Thread Geert Uytterhoeven
t; But it might be good idea to eventually add couple simple tests at some point. > > Is it a show stopper? Can the user trigger formatting, and exploit a bug in the formatting code? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32

NFS/TCP crashes on MIPS/RBTX4927 in v4.20-rcX (bisected)

2018-12-04 Thread Geert Uytterhoeven
like my arm/arm64 boards, it's probably not an endianness issue. Sparse didn't show anything suspicious before/after the guilty commit. Do you have a clue? Thanks! Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In persona

[PATCH] m68k: Fix crash in free_all_bootmem()

2018-12-04 Thread Geert Uytterhoeven
s, Zorro II RAM is ignored, and removed from the m68k_memory[] array. Fix this as well. Reported-by: Andreas Schwab Suggested-by: Mike Rapoport Tested-by: Michael Schmitz Fixes: 1008a11590b966b4 ("m68k: switch to MEMBLOCK + NO_BOOTMEM") Signed-off-by: Geert Uytterhoeven --- The Amig

Re: [PATCH v5 0/3] m68k: system call table generation support

2018-12-04 Thread Geert Uytterhoeven
nsertions(+), 768 deletions(-) > create mode 100644 arch/m68k/kernel/syscalls/Makefile > create mode 100644 arch/m68k/kernel/syscalls/syscall.tbl > create mode 100644 arch/m68k/kernel/syscalls/syscallhdr.sh > create mode 100644 arch/m68k/kernel/syscalls/syscalltbl.sh Thanks, applied and

Build regressions/improvements in v4.20-rc5

2018-12-03 Thread Geert Uytterhoeven
N/A => - warning: vmlinux.o(.text+0x49e708): Section mismatch in reference from the function .hmm_devmem_pages_create() to the function .meminit.text:.arch_add_memory(): N/A => - warning: vmlinux.o(.text+0x4df549c): Section mismatch in reference from the function .create_device_attrs() to the

Re: [PATCH] m68k: remove redundant 'default n' from Kconfig

2018-12-03 Thread Geert Uytterhoeven
ople that a bare 'default n' is > redundant. > ... > > Signed-off-by: Bartlomiej Zolnierkiewicz Reviewed-by: Geert Uytterhoeven I.e., applied and queued for v4.21. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 --

Re: [PATCH] m68k: Unroll raw_outsb() loop

2018-12-03 Thread Geert Uytterhoeven
n PIO mode by 5% or 10%. (The DMA controller on the 840av/660av models is > still unsupported so PIO transfers are used.) > > Tested-by: Stan Johnson > Signed-off-by: Finn Thain Reviewed-by: Geert Uytterhoeven I.e., applied and queued for v4.21. Gr{oetje,eeting}s,

[PATCH v4 resend] firewire: Remove depends on HAS_DMA in case of platform dependency

2018-12-03 Thread Geert Uytterhoeven
ncies keep their dependencies on HAS_DMA, to prevent compiling subsystems or drivers that cannot work anyway. This simplifies the dependencies, and allows to improve compile-testing. Signed-off-by: Geert Uytterhoeven Reviewed-by: Mark Brown Acked-by: Robin Murphy --- v4: - Rebase to v4.18-rc

[PATCH resend] openrisc: Fix broken paths to arch/or32

2018-12-03 Thread Geert Uytterhoeven
OpenRISC was mainlined as "openrisc", not "or32". vmlinux.lds is generated from vmlinux.lds.S. Signed-off-by: Geert Uytterhoeven --- arch/openrisc/kernel/entry.S | 2 +- arch/openrisc/kernel/head.S | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/

Re: [PATCH v2 06/15] m68k: define syscall_get_arch()

2018-12-02 Thread Geert Uytterhoeven
Hi Dmitry, On Mon, Dec 3, 2018 at 1:24 AM Dmitry V. Levin wrote: > On Sun, Dec 02, 2018 at 11:29:10AM +0100, Geert Uytterhoeven wrote: > > On Tue, Nov 20, 2018 at 1:15 AM Dmitry V. Levin wrote: > > > syscall_get_arch() is required to be implemented on all architectures > &

Re: ERROR: "__udivdi3" [drivers/md/dm-thin-pool.ko] undefined!

2018-12-02 Thread Geert Uytterhoeven
("dm thin metadata: fix __udivdi3 undefined on 32-bit")? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I

Re: [PATCH v2 06/15] m68k: define syscall_get_arch()

2018-12-02 Thread Geert Uytterhoeven
Hi Dmitry, On Tue, Nov 20, 2018 at 1:15 AM Dmitry V. Levin wrote: > syscall_get_arch() is required to be implemented on all architectures > in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO > request. > > Signed-off-by: Dmitry V. Levin Reviewed-by: Gee

Re: [PATCH v5 20/21] m68k/mac: Switch to use %ptR

2018-12-02 Thread Geert Uytterhoeven
On Thu, Nov 29, 2018 at 12:04 PM Andy Shevchenko wrote: > Use %ptR instead of open coded variant to print content of > struct rtc_time in human readable format. > > Cc: Geert Uytterhoeven > Cc: linux-m68k > Signed-off-by: Andy Shevchenko Reviewed-by: Geert Uytterhoeve

Re: [PATCH RFC 00/15] Zero ****s, hugload of hugs <3

2018-11-30 Thread Geert Uytterhoeven
, since it's only 17 files, how about doing context-specific > changes? "This API is terrible", "Hateful interface", "Don't touch my > freakin' code", "What in the world were they thinking?" etc? The last one is not appropriate, as it's shooting at t

Re: [PATCH v4 20/21] mk68/mac: Switch to use %ptR

2018-11-29 Thread Geert Uytterhoeven
CC linux-m68k (now for real, stumbling to Senseo machine) On Wed, Nov 28, 2018 at 8:07 PM Andy Shevchenko wrote: > > Use %ptR instead of open coded variant to print content of > struct rtc_time in human readable format. > > Cc: Geert Uytterhoeven > Signed-off-by: Andy Shevche

Re: [PATCH v4 20/21] mk68/mac: Switch to use %ptR

2018-11-29 Thread Geert Uytterhoeven
CC linux-m68k On Wed, Nov 28, 2018 at 8:07 PM Andy Shevchenko wrote: > Use %ptR instead of open coded variant to print content of > struct rtc_time in human readable format. > > Cc: Geert Uytterhoeven > Signed-off-by: Andy Shevchenko > --- > arch/m68k/mac/misc.c | 8 ++---

Re: [PATCH v3] mtd: spi-nor: cast to u64 to avoid uint overflows

2018-11-28 Thread Geert Uytterhoeven
data might have strange data(loss data) if the result > overflows an unsigned int. > This patch casts "info->sector_size" to an u64. > > Signed-off-by: huijin.park Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven

Re: Build regressions/improvements in v4.20-rc4

2018-11-26 Thread Geert Uytterhoeven
On Mon, Nov 26, 2018 at 12:59 PM Geert Uytterhoeven wrote: > JFYI, when comparing v4.20-rc4[1] to v4.20-rc3[3], the summaries are: > - build errors: +1/-0 + /kisskb/src/sound/pci/hda/patch_ca0132.c: error: implicit declaration of function 'pci_iounmap' [-Werror=implicit-function-decla

Build regressions/improvements in v4.20-rc4

2018-11-26 Thread Geert Uytterhoeven
(): N/A => - warning: vmlinux.o(.text+0x49e708): Section mismatch in reference from the function .hmm_devmem_pages_create() to the function .meminit.text:.arch_add_memory(): N/A => - warning: vmlinux.o(.text+0x4df549c): Section mismatch in reference from the function .create_device_attr

Re: [PATCH] pinctrl: rzn1: Fix check for used MDIO bus

2018-11-23 Thread Geert Uytterhoeven
gt; (0-u32max >= > 0)' > > Reported-by: Dan Carpenter > Signed-off-by: Phil Edworthy > --- > v3: > - Split fixing the return var when calling of_get_child_count() into >a separate patch. > v2: > - Don't rely on rely on the implicit typecast from -1 to uint

Re: [PATCH] pinctrl: rzn1: Fix check for used MDIO bus

2018-11-23 Thread Geert Uytterhoeven
l->mdio_func[mdio] >= 0) => (0-u32max >= > 0)' > > It also fixes the return var when calling of_get_child_count() I think this should be a separate patch. > Reported-by: Dan Carpenter > Signed-off-by: Phil Edworthy Reviewed-by: Geert Uytterhoeven BTW, I have a

Re: [RFC PATCH v2 09/14] m68k: hp300: Remove hp300_gettimeoffset()

2018-11-21 Thread Geert Uytterhoeven
Hi Finn, On Wed, Nov 21, 2018 at 10:47 AM Finn Thain wrote: > On Wed, 21 Nov 2018, Geert Uytterhoeven wrote: > > The 8520 CIA is almost identical to the 6526 CIA, as used in the C64... > > The 6526 CIA datasheet says, "In continuous mode, the timer will count > from th

Re: [RFC PATCH v2 09/14] m68k: hp300: Remove hp300_gettimeoffset()

2018-11-21 Thread Geert Uytterhoeven
Hi Finn, On Wed, Nov 21, 2018 at 9:41 AM Finn Thain wrote: > On Wed, 21 Nov 2018, Geert Uytterhoeven wrote: > > On Wed, Nov 21, 2018 at 12:13 AM Finn Thain > > wrote: > > > On atari, the 68901 counts down to 0x01 and raises an interrupt. On > > > mac, the 6522

Re: [RFC PATCH v2 09/14] m68k: hp300: Remove hp300_gettimeoffset()

2018-11-21 Thread Geert Uytterhoeven
ends on the video mode, and thus can't be used as a monotonic clock source. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking

Re: [RFC PATCH v2 07/14] m68k: atari: Convert to clocksource API

2018-11-20 Thread Geert Uytterhoeven
or use as an RTC. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" o

Re: [PATCH v2] mtd: spi-nor: cast to u64 to avoid uint overflows

2018-11-20 Thread Geert Uytterhoeven
y the first operand should be sufficient, and may lead to faster code, as only a 64x16 multiplication needs to be done, instead of a 64x64. > params->page_size = info->page_size; > > /* (Fast) Read settings. */ Gr{oetje,eeting}s, Geert -- Geert

Build regressions/improvements in v4.20-rc3

2018-11-19 Thread Geert Uytterhoeven
to the function .meminit.text:.arch_add_memory(): N/A => - warning: vmlinux.o(.text+0x4df549c): Section mismatch in reference from the function .create_device_attrs() to the function .init.text:.make_sensor_label(): N/A => - warning: vmlinux.o(.text.unlikely+0x26a8): Section mismatch in

Re: [PATCH v3 0/3] sh: system call table generation support

2018-11-19 Thread Geert Uytterhoeven
ne, it can read a block > device, etc. > > Acked-and-or-tested-by: Rob Landley > > I assume that this is just git du jour and not your patch: > > WARNING: CPU: 0 PID: 1 at mm/slub.c:2448 > ___slab_alloc.constprop.34+0x196/0x288 https://patchwork.kernel.org/patch/10549883/ G

Re: [PATCH v2] MAINTAINERS: update OMAP MMC entry

2018-11-18 Thread Geert Uytterhoeven
On Sun, Nov 18, 2018 at 9:21 PM Geert Uytterhoeven wrote: > CC Jarkko (from his last patch) Dropped. Apparently that address bounces, too. > On Tue, Nov 6, 2018 at 11:29 PM Aaro Koskinen wrote: > > Jarkko's e-mail address hasn't worked for a long time. We still want > > t

Re: [PATCH v2] MAINTAINERS: update OMAP MMC entry

2018-11-18 Thread Geert Uytterhoeven
L: linux-o...@vger.kernel.org > -S: Maintained > +S: Odd Fixes > F: drivers/mmc/host/omap.c > > OMAP POWER MANAGEMENT SUPPORT Seems like Jarkko himself tried to update his address a long time ago, but the patch was never applied? https://lore.kernel.org/lkml/1380

[PATCH] clockevents/drivers/tegra20: Remove obsolete inclusion of

2018-11-15 Thread Geert Uytterhoeven
As of commit da4a686a2cfb077a ("ARM: smp_twd: convert to use CLKSRC_OF init"), this header file is no longer used. Signed-off-by: Geert Uytterhoeven --- drivers/clocksource/tegra20_timer.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/clocksource/tegra20_timer.c

[PATCH] ARM: smp_twd: Remove legacy TWD registration

2018-11-15 Thread Geert Uytterhoeven
sed legacy infrastructure from the driver. Signed-off-by: Geert Uytterhoeven --- As of commit 6e63a3a294fdf91e ("watchdog: delete mpcore_wdt driver"), the TWD_WDOG_* definitions are unused, but I think it's good to keep them for documentation. --- arch/arm/Kconfig | 1 -

[PATCH] ARM: Correct meaning of SCU in HAVE_ARM_SCU help txt

2018-11-15 Thread Geert Uytterhoeven
According to the ARM Cortex-A5 and Cortex-A9 Technical Reference Manuals, SCU stands for "Snoop Control Unit". Signed-off-by: Geert Uytterhoeven --- arch/arm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 91be74

Re: [RFC PATCH 01/13] arm: Fix mutual exclusion in arch_gettimeoffset

2018-11-14 Thread Geert Uytterhoeven
rdware from the kernel" (https://lwn.net/Articles/769468/). Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-13 Thread Geert Uytterhoeven
rd drives with LEDs on the PCB. External USB enclosures with hard drives typically have LEDs, too. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with technical people, I call myself a h

Re: WARNING: CPU: 26 PID: 64391 at lib/vsprintf.c:2193 set_precision+0x84/0x90

2018-11-13 Thread Geert Uytterhoeven
type(const char *name) { struct file_system_type *fs; const char *dot = strchr(name, '.'); int len = dot ? dot - name : strlen(name); fs = __get_fs_type(name, len); if (!fs && (request_module("fs-%.*s", le

Re: [PATCH trivial] reset: Improve reset controller kernel docs

2018-11-13 Thread Geert Uytterhoeven
Hi Philipp, On Mon, Oct 8, 2018 at 2:55 PM Philipp Zabel wrote: > On Mon, 2018-10-08 at 13:15 +0200, Geert Uytterhoeven wrote: > > Grammar and indentation fixes. > > > > Signed-off-by: Geert Uytterhoeven > > --- > > include/linux/reset.h | 8 > &

Re: [PATCH v3 2/6] spi: Deal with slaves that return from transfer_one() unfinished

2018-11-13 Thread Geert Uytterhoeven
nsfer to finish with wait_for_completion_timeout(). For slaves, we > don't want the transaction to time out as it can complete in a long time > in future. Use wait_for_completion_interruptible() instead. > > Signed-off-by: Lubomir Rintel > Acked-by: Pavel Machek Reviewed-by: Geert Uy

Re: [PATCH v3 5/6] spi: pxa2xx: Add ready signal

2018-11-13 Thread Geert Uytterhoeven
intel > Tested-by: Pavel Machek Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talkin

Re: [PATCH v3 4/6] spi: pxa2xx: dt-bindings: Add ready GPIO signal

2018-11-13 Thread Geert Uytterhoeven
e, that happens to be a SPI master. > > Signed-off-by: Lubomir Rintel > Acked-by: Pavel Machek Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations

Re: [PATCH v3 1/6] spi: pxa2xx: dt-bindings: Add spi-slave property

2018-11-13 Thread Geert Uytterhoeven
On Tue, Nov 13, 2018 at 11:23 AM Lubomir Rintel wrote: > This is used to indicate that the chip attached to this controller is a SPI > master. > > Signed-off-by: Lubomir Rintel > Reviewed-by: Rob Herring > Acked-by: Pavel Machek Reviewed-by: Geert Uytterhoeven

Build regressions/improvements in v4.20-rc2

2018-11-12 Thread Geert Uytterhoeven
rom the function .hmm_devmem_release() to the function .meminit.text:.arch_remove_memory(): N/A => - warning: vmlinux.o(.text+0x49e708): Section mismatch in reference from the function .hmm_devmem_pages_create() to the function .meminit.text:.arch_add_memory(): N/A => - warning: vm

Re: [RFC PATCH 07/13] m68k: amiga: Convert to clocksource API

2018-11-12 Thread Geert Uytterhoeven
fset = 1; > + offset = jiffy_ticks; > > local_irq_restore(flags); > > ticks = jiffy_ticks - ticks; > - ticks = (1 * ticks) / jiffy_ticks; > > - return (ticks + offset) * 1000; > + return clk_total + ticks

Re: [RFC PATCH 06/13] m68k: Drop ARCH_USES_GETTIMEOFFSET

2018-11-12 Thread Geert Uytterhoeven
called' warnings? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds

Re: [PATCH anybus v3 4/6] bus: support HMS Anybus-S bus

2018-11-10 Thread Geert Uytterhoeven
e largely consisten > among the architectures we support, but there are a couple of notable > exceptions: > > - ARM OABI requires 32-bit alignment for structures > - x86-32 aligns 64-bit members to 32-bit rather than 64-bit > - m68k has some oddities, I think they can pack certain

Re: [PATCH 1/4] of/device: Add a way to probe drivers by match data

2018-11-09 Thread Geert Uytterhoeven
Hi Stephen, On Fri, Nov 9, 2018 at 5:59 PM Stephen Boyd wrote: > Quoting Geert Uytterhoeven (2018-11-09 01:56:01) > > On Wed, Nov 7, 2018 at 7:37 PM Stephen Boyd wrote: > > > Quoting Rob Herring (2018-11-06 12:44:52) > > > > On Tue, Nov 6, 2018 at 12:36 PM Stephen

Re: [PATCH 1/4] of/device: Add a way to probe drivers by match data

2018-11-09 Thread Geert Uytterhoeven
t; > > Is the oops from the NULL pointer deref insufficient? > > Do you think we should crash the machine if someone uses the call wrongly? Or > should we provide the possibility to error out on the caller side? I believe that would be a bug in the driver, to be discovered ASAP. So yes, please

Re: [PATCH 1/4] of/device: Add a way to probe drivers by match data

2018-11-09 Thread Geert Uytterhoeven
mtk_probe1, > mtk_probe2, > mtk_probe3, > }; > > struct platform_driver mtk_driver = { > .of_probes = _probes; > .driver = { > .name = "mtk-foo"; > .of_match_table = mtk_match_table, > }, > }; This loo

[PATCH trivial] microblaze: Typo s/use use/use/

2018-11-07 Thread Geert Uytterhoeven
Signed-off-by: Geert Uytterhoeven --- arch/microblaze/include/asm/pgtable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/microblaze/include/asm/pgtable.h b/arch/microblaze/include/asm/pgtable.h index f64ebb9c9a413535..bdfb2b3182b04c3b 100644 --- a/arch/microblaze

[PATCH trivial] Documentation: ABI: led-trigger-pattern: Fix typos

2018-11-07 Thread Geert Uytterhoeven
- Spelling s/brigntess/brightness/, - Double "use". Signed-off-by: Geert Uytterhoeven --- Documentation/ABI/testing/sysfs-class-led-trigger-pattern | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/ABI/testing/sysfs-class-led-trigger-

[PATCH] MAINTAINERS: Fix remaining pointers to obsolete libata.git

2018-11-07 Thread Geert Uytterhoeven
libata.git no longer exists. Replace the remaining pointers to it by pointers to the block tree, which is where all libata development happens now. Signed-off-by: Geert Uytterhoeven --- MAINTAINERS | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MAINTAINERS b

Re: [PATCH 0/2] pinctrl: sh-pfc: r8a77965: Add VIN4 and VIN5

2018-11-07 Thread Geert Uytterhoeven
Hi Jacopo, (sorry, seems I prepared a reply, but forgot to press "Send") On Tue, Nov 6, 2018 at 10:31 AM jacopo mondi wrote: > On Tue, Nov 06, 2018 at 10:24:30AM +0100, Geert Uytterhoeven wrote: > > On Tue, Nov 6, 2018 at 10:08 AM jacopo mondi wrote: > > > On Mon

Re: [PATCH] leds: trigger: Fix sleeping function called from invalid context

2018-11-06 Thread Geert Uytterhoeven
gt; [] (__irq_svc) from [] (arch_cpu_idle+0x1c/0x38) > [] (arch_cpu_idle) from [] (do_idle+0x138/0x268) > [] (do_idle) from [] (cpu_startup_entry+0x18/0x1c) > [] (cpu_startup_entry) from [<402022ec>] (0x402022ec) > > Fixes: 5fd752b6b3a2 ("leds: core: Introduce LED

Re: [PATCH next] mtd: maps: physmap: Fix infinite loop crash in ROM type probing

2018-11-06 Thread Geert Uytterhoeven
Hi Boris, On Tue, Nov 6, 2018 at 10:58 PM Boris Brezillon wrote: > On Tue, 6 Nov 2018 22:44:16 +0100 > Geert Uytterhoeven wrote: > > On Toshiba RBTX4927, where map_probe is supposed to fail: > > > > Creating 2 MTD partitions on "physmap-flash.0": >

[PATCH next] mtd: maps: physmap: Fix infinite loop crash in ROM type probing

2018-11-06 Thread Geert Uytterhoeven
s: c7afe08496fa463e ("mtd: maps: physmap: Invert logic on if/else branch") Signed-off-by: Geert Uytterhoeven --- drivers/mtd/maps/physmap-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/maps/physmap-core.c b/drivers/mtd/maps/physmap-core.c index 3

Re: [PATCH] sh: Provide prototypes for PCI I/O mapping in asm/io.h

2018-11-06 Thread Geert Uytterhoeven
h)? > #include > > #define __raw_writeb(v,a) (__chk_io_ptr(a), *(volatile u8 __force > *)(a) = (v)) Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with techn

Re: [PATCH v14 1/2] leds: core: Introduce LED pattern trigger

2018-11-06 Thread Geert Uytterhoeven
entry+0x18/0x1c) [] (cpu_startup_entry) from [<402022ec>] (0x402022ec) Either this should use a spinlock instead of a mutex, or the timer function should kick a workqueue to do the real work. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia

Re: [PATCH] fls: Change parameter to unsigned int

2018-11-06 Thread Geert Uytterhoeven
unsigned int. > > Some architectures (eg ppc) already had it declared as an unsigned int, > so I don't expect too many problems. > > Signed-off-by: Matthew Wilcox Acked-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots

Build regressions/improvements in v4.20-rc1

2018-11-05 Thread Geert Uytterhoeven
ove_memory(): N/A => - warning: vmlinux.o(.text+0x49e708): Section mismatch in reference from the function .hmm_devmem_pages_create() to the function .meminit.text:.arch_add_memory(): N/A => - warning: vmlinux.o(.text+0x4df549c): Section mismatch in reference from the function

[PATCH] m68k/defconfig: Update defconfigs for v4.20-rc1

2018-11-05 Thread Geert Uytterhoeven
Signed-off-by: Geert Uytterhoeven --- arch/m68k/configs/amiga_defconfig| 4 arch/m68k/configs/apollo_defconfig | 4 arch/m68k/configs/atari_defconfig| 4 arch/m68k/configs/bvme6000_defconfig | 4 arch/m68k/configs/hp300_defconfig| 4 arch/m68k/configs

[PATCH] ubifs: CONFIG_UBIFS_FS_AUTHENTICATION should depend on UBIFS_FS

2018-11-05 Thread Geert Uytterhoeven
Instead of adding yet another dependency on UBIFS_FS, wrap the whole block of ubifs config options in a single "if UBIFS_FS". Fixes: d8a22773a12c6d78 ("ubifs: Enable authentication support") Signed-off-by: Geert Uytterhoeven --- fs/ubifs/Kconfig | 15 +++---

Re: [Ksummit-discuss] The linux devs can rescind their license grant.

2018-11-04 Thread Geert Uytterhoeven
olders. > > I am against the CoC as it stands, but rescinding any license is such an > enormous over-reaction, I find the concept laughable. Indeed. While I cannot comment on the legality of the rescinding, this rescinding is definitely not compatible with "be nice to each other"

Re: [Ksummit-discuss] Call to Action Re: [PATCH 0/7] Code of Conduct: Fix some wording, and add an interpretation document

2018-11-04 Thread Geert Uytterhoeven
he Linux kernel developers and maintainers is exactly what is being affected, due to the atmosphere surrounding this particular CoC. While the addition of the CoC Clarification did improve the general understanding, the addition of the CoC itself has already caused a chilling effect. From chatting at the c

Re: [PATCH] HID: asus: fix build warning wiht CONFIG_ASUS_WMI disabled

2018-11-03 Thread Geert Uytterhoeven
's not driven > by WMI") > Signed-off-by: Arnd Bergmann Acked-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with technical people, I call myself a

Re: [GIT PULL] C-SKY(csky) Port for Linux 4.20

2018-10-29 Thread Geert Uytterhoeven
Hi Arnd, On Mon, Oct 29, 2018 at 12:27 PM Arnd Bergmann wrote: > On Mon, Oct 29, 2018 at 11:26 AM Geert Uytterhoeven > wrote: > > On Mon, Oct 29, 2018 at 10:45 AM Arnd Bergmann wrote: > > > One more general comment: I think this may well be the last new CPU > >

Re: linux-next: Tree for Oct 29

2018-10-29 Thread Geert Uytterhoeven
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git | grep > 20181029 > 0e2adec0725178efbb0b7019ee0198d93ba54843refs/tags/next-20181029 > b179f0826c6a13563c5ce0554c6da6748a1fa699refs/tags/next-20181029^{} > > cc'ing the kernel.org admins ... I can confirm syd.git.kernel.org and ord

Re: [GIT PULL] C-SKY(csky) Port for Linux 4.20

2018-10-29 Thread Geert Uytterhoeven
A? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "pro

Build regressions/improvements in v4.19

2018-10-28 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v4.19[1] compared to v4.18[2]. Summarized: - build errors: +5/-3 - build warnings: +14715/-247 JFYI, when comparing v4.19[1] to v4.19-rc8[3], the summaries are: - build errors: +0/-0 - build warnings: +158/-166 Note

[PATCH] regulator: bd718x7: Remove double indirection for bd718xx_pmic_inits.rdatas

2018-10-28 Thread Geert Uytterhoeven
Signed-off-by: Geert Uytterhoeven --- Compile-tested only. --- drivers/regulator/bd718x7-regulator.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/regulator/bd718x7-regulator.c b/drivers/regulator/bd718x7-regulator.c index 3a47e0372e77c812..fff5bc4faa2c9

[git pull] m68k updates for 4.20

2018-10-28 Thread Geert Uytterhoeven
Руслан Исаев (1): m68k/sun3: Remove is_medusa and m68k_pgtable_cachemode arch/m68k/emu/nfeth.c| 4 arch/m68k/kernel/sun3-head.S | 6 -- 2 files changed, 10 deletions(-) Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's

Re: [RESEND PATCH v3 3/3] sh: add the sh_ prefix to early platform symbols

2018-10-23 Thread Geert Uytterhoeven
if msleep() and all thread-related functions would return -EPROBE_DEFER, but that should be handled in every single driver, which may be already the case for thread-related functions, but not for e.g. msleep(), which currently returns void. Gr{oetje,eeting}s, Geert --

Re: [PATCH 5/7] Code of Conduct Interpretation: Put in the proper URL for the committee

2018-10-20 Thread Geert Uytterhoeven
d at https://kernel.org/code-of-conduct.html. Members can not > +access reports made before they joined or after they have left the > +committee. This seems to be the wrong URL? It just points to the CoC, not to the TAB members. Gr{oetje,eeting}s, Geert -- G

Re: [PATCH v3] of: overlay: user space synchronization

2018-10-19 Thread Geert Uytterhoeven
root root 4096 okt 19 08:49 enable 1 is from the DT unit tests, 2 is from r8a7791-koelsch-exio-b-scifa3.dtbo, enable is the kill switch. Note that after removing overlay 2, and loading a new overlay, the new one is again called number 2. But the subdir date is newer. Gr{oetje,eeting}s,

Re: [PATCH] ata: add Buddha PATA controller driver

2018-10-18 Thread Geert Uytterhoeven
antiate 2 Buddha IDE cells, the Catweasel MFD driver can instantiate 3 Buddha IDE cells and a Catweasel floppy cell, and the X-Surf MFD driver can instantiate 2 Buddha IDE cells and a zorro8390 cell. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyon

Re: [PATCH] spi: pxa2xx: fix PCI dependency

2018-10-17 Thread Geert Uytterhoeven
c2120090586d7e5 ("PCI: Provide pci_match_id() with CONFIG_PCI=n"). Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But w

Re: [Ksummit-discuss] [PATCH] code-of-conduct: Remove explicit list of discrimination factors

2018-10-17 Thread Geert Uytterhoeven
Hi Josh, Thanks for your comments! On Wed, Oct 17, 2018 at 11:13 AM Josh Triplett wrote: > On Wed, Oct 17, 2018 at 09:19:01AM +0200, Geert Uytterhoeven wrote: > > Providing an explicit list of discrimination factors may give the false > > impression that discrimination based on

Re: [PATCH v2 3/3] thermal: da9062/61: Prevent hardware access during system suspend

2018-10-17 Thread Geert Uytterhoeven
Hi Steve, On Wed, Oct 17, 2018 at 10:57 AM Steve Twiss wrote: > On 12 October 2018 08:20 Geert Uytterhoeven wrote: > > Subject: [PATCH v2 3/3] thermal: da9062/61: Prevent hardware access during > > system suspend > > > > The workqueue used for monitoring the hardwa

[PATCH v2] code-of-conduct: Remove explicit list of discrimination factors

2018-10-17 Thread Geert Uytterhoeven
682 ("Code of Conduct: Let's revamp it.") Signed-off-by: Geert Uytterhoeven Acked-by: Frank Rowand Acked-by: Arnaldo Carvalho de Melo Acked-by: Tomi Valkeinen --- v2: - Add Acked-by. The use of "race" may also conflict with the United Nation's views on this matter, cfr. e.g.

[PATCH] code-of-conduct: Remove explicit list of discrimination factors

2018-10-17 Thread Geert Uytterhoeven
682 ("Code of Conduct: Let's revamp it.") Signed-off-by: Geert Uytterhoeven --- The use of "race" may also conflict with the United Nation's views on this matter, cfr. e.g. the UNESCO's "Four statements on the race question"[1][2] and "Declaration on Race and Racial Prej

Re: [PATCH 0/7] drivers: tty: Fix kernel-docs comments

2018-10-17 Thread Geert Uytterhoeven
arding ' The From line in the body of the patch emails doesn't match the SoB. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm t

Build regressions/improvements in v4.19-rc8

2018-10-15 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v4.19-rc8[1] compared to v4.18[2]. Summarized: - build errors: +5/-3 - build warnings: +14727/-253 JFYI, when comparing v4.19-rc8[1] to v4.19-rc7[3], the summaries are: - build errors: +0/-0 - build warnings: +204/-192

Re: [PATCH] of: overlay: user space synchronization

2018-10-15 Thread Geert Uytterhoeven
is incremented before and after every change. I had to deduce that from the code. IMHO that is more important than having the sample script here. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds

[PATCH v2 1/3] thermal: rcar_thermal: Prevent hardware access during system suspend

2018-10-12 Thread Geert Uytterhoeven
51e20d0e3a60cf46 ("thermal: Prevent polling from happening during system suspend"). Fixes: e0a5172e9eec7f0d ("thermal: rcar: add interrupt support") Signed-off-by: Geert Uytterhoeven Reviewed-by: Niklas Söderlund --- v2: - Add Reviewed-by. --- drivers/thermal/rcar_therma

Re: [PATCH 09/50] amiserial: switch to ->[sg]et_serial()

2018-10-11 Thread Geert Uytterhoeven
ev_warn_ratelimited(tty->dev, "use of SPD > flags is deprecated\n"); > change_speed(tty, state, NULL); > } > @@ -1084,7 +1081,6 @@ static int set_serial_info(struct tty_struct *tty, > struct serial_state *state, > return

[PATCH v2 0/3] lib/vsprintf: Hash remaining raw addresses

2018-10-11 Thread Geert Uytterhoeven
declaration for ptr_to_id(), - Add Reviewed-by. Thanks! Geert Uytterhoeven (3): lib/vsprintf: Prepare for more general use of ptr_to_id() lib/vsprintf: Hash legacy clock addresses lib/vsprintf: Hash printed address for netdev bits fallback Documentation/core-api/printk-formats.rst | 5

[PATCH v2 2/3] lib/vsprintf: Hash legacy clock addresses

2018-10-11 Thread Geert Uytterhoeven
istinguish between clocks, a 32-bit unique identifier is as good as an actual pointer value. Fixes: ad67b74d2469d9b8 ("printk: hash addresses printed with %p") Signed-off-by: Geert Uytterhoeven Reviewed-by: Petr Mladek --- v2: - Add Reviewed-by. --- Documentation/core-api/printk-format

[PATCH v2 3/3] lib/vsprintf: Hash printed address for netdev bits fallback

2018-10-11 Thread Geert Uytterhoeven
ddress instead. Note that there are no in-tree users of the fallback. Fixes: ad67b74d2469d9b8 ("printk: hash addresses printed with %p") Signed-off-by: Geert Uytterhoeven Reviewed-by: Petr Mladek --- v2: - Add Reviewed-by. --- lib/vsprintf.c | 9 - 1 file changed, 4 insertions(+), 5

  1   2   3   4   5   6   7   8   9   10   >