[PATCH RFC] thermal: Fix broken registration if a sensor OF node is missing

2019-09-19 Thread Peter Mamonov
doesn't have associated OF node devm_hwmon_device_register() returns error which ultimately causes failure of the PHY driver's probe function. Fixes: 4e5e4705bf69 ("thermal: introduce device tree parser") Signed-off-by: Peter Mamonov Reviewed-by: Andrew Lunn Cc: sta...@vger.ker

Re: [PATCH RFC] net/phy: fix Marvell PHYs probe failure when HWMON and THERMAL_OF are enabled

2019-09-19 Thread Peter Mamonov
Hi, Andrew, On Thu, Sep 19, 2019 at 04:50:16AM +0200, Andrew Lunn wrote: > On Thu, Sep 19, 2019 at 12:38:37AM +0300, Peter Mamonov wrote: > > Hello, > > > > Some time ago I've discovered that probe functions of certain Marvell PHYs > > fail if both HWMON a

[PATCH RFC] net/phy: fix Marvell PHYs probe failure when HWMON and THERMAL_OF are enabled

2019-09-18 Thread Peter Mamonov
registers hwmon device for the built-in temperature sensor (see drivers/net/phy/marvell.c). Since the sensor doesn't have associated OF node devm_hwmon_device_register() returns error which ultimately causes failure of the PHY driver's probe function. Signed-off-by: Peter Mamonov --- drivers