2019年5月30日(木) 4:25 Mauro Carvalho Chehab <mchehab+samsung@xxxxxxxxxx>: > > From: Robert Jarzmik <robert.jarzmik@xxxxxxx> > > In the soc_camera removal, the board specific power callback was > dropped. This at least will remove the power optimization from ezx and > em-x270 pxa based boards. > > As to recreate the same level of functionality, make the mt9m111 have a > regulator providing it its power, so that board designers can plug in a > gpio based or ldo regulator, mimicking their former soc_camera power > hook. > > Fixes: 5c10113cc668 ("media: mt9m111: make a standalone v4l2 subdevice") > > [mchehab+samsung@xxxxxxxxxx: check return values for regulator_enable and > fix a build warning] > Signed-off-by: Robert Jarzmik <robert.jarzmik@xxxxxxx> > Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@xxxxxxxxxx> > --- > > This is a respin of this patch: > > http://patchwork.linuxtv.org/patch/37950/ > > rebased (and fixed) to apply on the top of upstream. > > While checking old patches at the ML, I noticed that this patch > was never applied: > > https://www.mail-archive.com/linux-kernel@xxxxxxxxxxxxxxx/msg1238720.html > > The first patch of this series got applied, though: > > c771f42fed7f ("[media] media: platform: pxa_camera: add missing sensor power on") > > So, I'm closing the original patch as obsoleted and I'm sending this > one to the ML for tests. > > Can anyone test this patch and send a tested-by? In my devicetree, vdd-supply is not defined. So it falls back to the dummy regulator and works fine. Tested-by: Akinobu Mita <akinobu.mita@xxxxxxxxx>