Hi Rob, On Mon, Aug 17, 2020 at 5:09 AM Rob Landley <rob@xxxxxxxxxxx> wrote: > On 8/16/20 11:22 AM, Prabhakar Mahadev Lad wrote: > >> FTR, I gave it a try on the SH7751R-based I-O DATA USL-5P aka Landisk: > >> SCIF is affected, and fixed by commit 3dc4db3662366306 ("serial: sh-sci: > >> Make sure status register SCxSR is read in correct sequence"). > >> > > Thank you Geert. > > > > Cheers, > > Prabhakar > > Did we ever figure out how to get linux to talk to the _first_ serial port on > the qemu-system-sh4 r2d board? I'm still doing: > > qemu-system-sh4 -M r2d -serial null -serial mon:stdio > > Because I can only get a working console on the _second_ serial port. (SCI vs > SCIF I think?) Because the SCI is wired to an SPI bus? See: arch/sh/boards/mach-r2d/setup.c:spi_sh_sci_device() arch/sh/kernel/cpu/sh4/setup-sh7750.c:plat_early_device_setup() To enable support for that: CONFIG_SPI=y CONFIG_SPI_SH_SCI=y CONFIG_RTC_CLASS=y CONFIG_RTC_DRV_R9701=y However, QEMU doesn't support that mode: rtc-r9701 spi0.0: cannot read RTC register Couldn't try on the remote physical R2D+. Will try when it becomes available again... Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx 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