Re: [PATCH 09/13] syscon: Probe device first in syscon_get_regmap

2024-05-14 Thread Jonas Karlman
Hi Jiaxun, On 2024-05-15 02:12, Jiaxun Yang wrote: > > > 在2024年5月14日五月 下午3:50,Jonas Karlman写道: >> Hi Jiaxun, > [...] >>> + return ERR_PTR(ret); >> >> Please explain in more details what the issue this is trying to solve. >> >> Typically syscon_get_regmap() is called on a udevice return

Re: [PATCH 09/13] syscon: Probe device first in syscon_get_regmap

2024-05-14 Thread Jiaxun Yang
在2024年5月14日五月 下午3:50,Jonas Karlman写道: > Hi Jiaxun, [...] >> +return ERR_PTR(ret); > > Please explain in more details what the issue this is trying to solve. > > Typically syscon_get_regmap() is called on a udevice returned from a > uclass_get_device call, and that should trigger a pr

Re: [PATCH 09/13] syscon: Probe device first in syscon_get_regmap

2024-05-14 Thread Jonas Karlman
Hi Jiaxun, On 2024-05-13 20:13, Jiaxun Yang wrote: > When bootph-all is enabled for a syscon driver, the device > may leave unprobed when syscon_get_regmap is called by another > driver. > > Perform device_probe in syscon_get_regmap, there is no side > affect as device_probe will return 0 quickly

[PATCH 09/13] syscon: Probe device first in syscon_get_regmap

2024-05-13 Thread Jiaxun Yang
When bootph-all is enabled for a syscon driver, the device may leave unprobed when syscon_get_regmap is called by another driver. Perform device_probe in syscon_get_regmap, there is no side affect as device_probe will return 0 quickly for an activated device. Signed-off-by: Jiaxun Yang --- driv