Re: [PATCH v3 0/5] sh: mach-rsk: rsk7203: switch to using static device property, drop legacy gpio API

From: Andy Shevchenko

Date: Tue Nov 24 2026 - 02:17:19 EST


On Mon, Nov 23, 2026 at 03:55:09PM -0800, Dmitry Torokhov wrote:
> On Mon, Nov 23, 2026 at 09:12:37AM +0100, John Paul Adrian Glaubitz wrote:
> > I have been super-busy with CVE fixes but I will try to get into kernel
> > stuff back again later this week. As I mentioned before, kernel maintenance
> > is not my primary job, so I cannot act as quickly as people who are getting
> > paid for it.
>
> I completely understand; upstream kernel work is not my main focus
> either, and I appreciate you keeping sh maintained in your spare time.
> I did not mean to rush you; I mostly wanted to check how you would like
> to proceed before the next merge window.
>
> FWIW, I took a closer look at the current state of rsk7203 on mainline
> prior to this series, and quite a bit of it is already broken:
>
> - Ethernet (smsc911x) has been silently ignoring its platform_data since
> v4.13 (commit 3708184afc77) because device_property_read_u32() returns
> -EINVAL instead of -ENXIO when there is no fwnode. That drops
> SMSC911X_SWAP_FIFO, corrupting TX/RX packet byte order on this
> big-endian board.
> - The RTC (sh-rtc) fails probe unconditionally since commit 689602e0609e
> because sh7203 only defines one IRQ resource while sh_rtc_probe() now
> requests IRQ index 2.
> - sh-cpufreq fails init because sh_cpufreq_cpu_init() never populates
> the per-CPU clock.
> - Enabling gpio-keys-polled (disabled in rsk7203_defconfig) clobbers
> LAN9118's IRQ0 on PB0.
> - As Arnd noted, the rsk7203_defconfig kernel no longer fits in the
> 4 MiB flash, and USB was never wired up for this board.
>
> Given how long some of these regressions have gone unnoticed, it seems
> extremely unlikely that anyone is actually using mainline kernels on
> rsk7203.
>
> Rather than worrying about hardware testing here, I think the simplest
> way forward is to just apply these patches (with Arnd's Kconfig tweak
> folded in, or I can send a v4 if you prefer) to unblock the legacy GPIO
> API removal,

I'm agree with this.

> and we can resolve any bug reports if they ever arise later.

...or even remove the board support completely (would be interesting
to see somebody investing time in this HW to fix all what listed and
not listed above).

--
With Best Regards,
Andy Shevchenko