Re: [PATCH v4 4/6] media: i2c: og01a1b: Add support of xvclk supply clock in power management

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

 



Hi Vladimir,

On Fri, Aug 30, 2024 at 09:34:57AM +0300, Vladimir Zapolskiy wrote:
> @@ -970,13 +978,32 @@ static int og01a1b_check_hwcfg(struct device *dev)
>  /* Power/clock management functions */
>  static int og01a1b_power_on(struct device *dev)
>  {
> -	/* Device is already turned on by i2c-core with ACPI domain PM. */
> +	unsigned long delay = DIV_ROUND_UP(8192 * USEC_PER_SEC, OG01A1B_MCLK);

This is a problem, the first argument overflows. I'll just add UL specifier
to the value to fix it if that's ok.

-- 
Sakari Ailus




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux