patch "iio: cros_ec: Set Gyroscope default frequency to 25Hz" added to staging-linus
Subsystems (3)
This is a note to let you know that I've just added the patch titled
iio: cros_ec: Set Gyroscope default frequency to 25Hz
to my staging git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
in the staging-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
From 336306790b2bbf7ce837625fa3b24ba724d05838 Mon Sep 17 00:00:00 2001
From: Gwendal Grignou <[email protected]>
Date: Tue, 28 Jul 2020 13:48:25 -0700
Subject: iio: cros_ec: Set Gyroscope default frequency to 25Hz
BMI160 Minimium gyroscope frequency in normal mode is 25Hz. When older EC firmware do not report their sensors frequencies, use 25Hz as the minimum for gyroscope to be sure it works on BMI160.
--- drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c +4 -1
@@ -72,10 +72,13 @@ static void get_default_min_max_freq(enum motionsensor_type type,switch (type) {case MOTIONSENSE_TYPE_ACCEL : -case MOTIONSENSE_TYPE_GYRO : *min_freq =12500 ; *max_freq =100000 ;break ; +case MOTIONSENSE_TYPE_GYRO : + *min_freq =25000 ; + *max_freq =100000 ; +break ;case MOTIONSENSE_TYPE_MAG : *min_freq =5000 ; *max_freq =25000 ;
Signature · 1 line
2.28.0