On Fri, Apr 19, 2024 at 2:35 PM Etienne Buira <etienne.buira@xxxxxxx> wrote: > > Do not issue "can't read the data register offset!" when gpio,syscon-dev > is not set albeit unneeded. gpio-syscon is used with rk3328 chip, but > this iomem region is documented in > Documentation/devicetree/bindings/gpio/rockchip,rk3328-grf-gpio.yaml and > does not require gpio,syscon-dev setting. > > It has been suggested to automatically detect if node has a valid > parent, but that would defeat the purpose of error message, for example > arch/arm/boot/dts/ti/keystone/keystone-k2g.dtsi could then be used > without gpio,syscon-dev, and lead to funny results without error > message. > > It has been tried to mandate use of gpio,syscon-dev, but that raised > objection. > > So while this patch may be kludgy, it looks the less bad to address > the spurious dev_err call. > > v2: > - changed flag name > > Signed-off-by: Etienne Buira <etienne.buira@xxxxxxx> > --- Linus, Do you have any objections? If not, I'll pick it up after the merge window. The patch does not look very clean but I cannot find anything obviously wrong. Bartosz