Re: [PATCH 3/5] mmc: cavium: Prevent crash with incomplete DT

2017-05-19 Thread Ulf Hansson
On 16 May 2017 at 11:36, Jan Glauber wrote: > In case the DT specifies neither a regulator nor a gpio > for the shared power the driver will crash accessing the regulator. > Prevent the crash by checking the regulator before use. > > As the MMC devices would likely not be

Re: [PATCH 3/5] mmc: cavium: Prevent crash with incomplete DT

2017-05-19 Thread Ulf Hansson
On 16 May 2017 at 11:36, Jan Glauber wrote: > In case the DT specifies neither a regulator nor a gpio > for the shared power the driver will crash accessing the regulator. > Prevent the crash by checking the regulator before use. > > As the MMC devices would likely not be usable without power >

[PATCH 3/5] mmc: cavium: Prevent crash with incomplete DT

2017-05-16 Thread Jan Glauber
In case the DT specifies neither a regulator nor a gpio for the shared power the driver will crash accessing the regulator. Prevent the crash by checking the regulator before use. As the MMC devices would likely not be usable without power check for that condition during probe and print a

[PATCH 3/5] mmc: cavium: Prevent crash with incomplete DT

2017-05-16 Thread Jan Glauber
In case the DT specifies neither a regulator nor a gpio for the shared power the driver will crash accessing the regulator. Prevent the crash by checking the regulator before use. As the MMC devices would likely not be usable without power check for that condition during probe and print a