Re: [PATCH v2] phy: sun4i: check PMU presence when poking unknown bit of pmu

2016-11-04 Thread Kishon Vijay Abraham I
On Friday 28 October 2016 11:45 PM, Hans de Goede wrote: > Hi, > > On 28-10-16 18:27, Icenowy Zheng wrote: >> Allwinner SoC's PHY 0, when used as OTG controller, have no pmu part. >> The code that poke some unknown bit of PMU for H3/A64 didn't check >> the PHY, and will cause kernel oops when PH

Re: [PATCH v2] phy: sun4i: check PMU presence when poking unknown bit of pmu

2016-10-28 Thread Hans de Goede
Hi, On 28-10-16 18:27, Icenowy Zheng wrote: Allwinner SoC's PHY 0, when used as OTG controller, have no pmu part. The code that poke some unknown bit of PMU for H3/A64 didn't check the PHY, and will cause kernel oops when PHY 0 is used. This patch will check whether the pmu is not NULL before p