Re: [PATCH 1/8] media: ov08x40: Properly turn sensor on/off when runtime-suspended

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On 20-Dec-24 2:51 PM, Bryan O'Donoghue wrote:
> On 20/12/2024 13:47, Hans de Goede wrote:
>>>>    }
>>>>    +static DEFINE_RUNTIME_DEV_PM_OPS(ov08x40_pm_ops, ov08x40_power_on,
>>>> +                 ov08x40_power_off, NULL);
>>>> +
>> Ugh I have on/off swapped here, second argument of the macro is the suspend
>> function so that should be ov08x40_power_off. IOW this should be:
>>
>> static DEFINE_RUNTIME_DEV_PM_OPS(ov08x40_pm_ops, ov08x40_power_off,
>>                  ov08x40_power_on, NULL);
>>
>> Can you give this a try with that change?
>>
>> Regards,
>>
>> Hans
> 
> Heh.
> 
> That'd do it, works now.

Great, thank you for testing!

This probably also explains why this series did not help to get the sensor
powered on on some x86 HP laptops...

I guess you are going to test the rest of the series and then provided
a Tested-by?

If yes then I'll wait with posting v2 until you're done testing.

Regards,

Hans







[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux