lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e2106a4f-ed3a-4b02-b1d2-d54c096fcab8@metafoo.de>
Date: Mon, 2 Sep 2024 12:43:36 +0200
From: Lars-Peter Clausen <lars@...afoo.de>
To: Yasin Lee <yasin.lee.x@...il.com>
Cc: jic23@...nel.org, dan.carpenter@...aro.org, nuno.sa@...log.com,
 linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] iio: proximity: hx9023s: Use 'CLOCK_BOOTTIME' as the
 default clock source

On 9/2/24 12:32, Yasin Lee wrote:
> Override the default (CLOCK_REALTIME) clock source to 'CLOCK_BOOTTIME'.
Why? Won't this break existing applications that rely on the current 
default?
>
> Signed-off-by: Yasin Lee <yasin.lee.x@...il.com>
> ---
>   drivers/iio/proximity/hx9023s.c | 4 ++++
>   1 file changed, 4 insertions(+)
>
> diff --git a/drivers/iio/proximity/hx9023s.c b/drivers/iio/proximity/hx9023s.c
> index 8b9f84400e00..5363357a9a46 100644
> --- a/drivers/iio/proximity/hx9023s.c
> +++ b/drivers/iio/proximity/hx9023s.c
> @@ -1074,6 +1074,10 @@ static int hx9023s_probe(struct i2c_client *client)
>   					     "iio trigger register failed\n");
>   	}
>   
> +	ret = iio_device_set_clock(indio_dev, CLOCK_BOOTTIME);
> +	if (ret)
> +		return dev_err_probe(dev, ret, "clock boottime set failed\n");
> +
>   	ret = devm_iio_triggered_buffer_setup(dev, indio_dev,
>   					      iio_pollfunc_store_time,
>   					      hx9023s_trigger_handler,



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ