Thread (20 messages) 20 messages, 6 authors, 2025-07-08

Re: [PATCH RFT net-next 04/10] soc: sunxi: sram: register regmap as syscon

From: Per Larsson <hidden>
Date: 2025-07-05 09:58:06
Also in: linux-devicetree, linux-sunxi, lkml, netdev

On Wed, 2 Jul 2025 13:01:04 +0800
Chen-Yu Tsai [off-list ref] wrote:
On Wed, Jul 2, 2025 at 12:58 AM Chen-Yu Tsai [off-list ref] wrote:
quoted
From: Chen-Yu Tsai <redacted>

Until now, if the system controller had a ethernet controller glue
layer control register, a limited access regmap would be registered
and tied to the system controller struct device for the ethernet
driver to use.
"Until now"? 
Does that description (i.e. something that used to happen, but not
after the patch) really match the change?

- snip -
quoted
+               ret = of_syscon_register_regmap(dev->of_node,
regmap);
+               if (IS_ERR(ret))  
BroderTuck on IRC pointed out that this gives a compiler warning.
Indeed it is incorrect. It should test `ret` directly.

ChenYu
Regards
Per Larsson, known as BroderTuck on #linux-sunxi
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help