GoboLinux Downloads Documentation Community Recipes Screenshots

GoboLinux Recipe & Package Search Tool

71 versions of Linux.

ProgramAgeSizeByWWWSummary
Linux 4.13.2-r1 786  88794 Luca...
The Linux Kernel.
Linux 4.9.16-r3 957  100651 Luca...
The Linux Kernel.
Linux 4.9.4-r5 1013  99374 Luca...
The Linux Kernel.
Linux 4.8.2-r2 1079  89394 Luca...
The Linux Kernel.
Linux 4.7.4-r1 1149  82767 Luca...
The Linux Kernel.
Linux 4.7.0-r4 1204  82585 Luca...
The Linux Kernel.
Linux 3.13.3-r1 2084  252629 Luca...
The Linux Kernel.
Linux 3.12.6-r1 2144  238949 Luca...
The Linux Kernel.
Linux 3.9.4-r2 2339  70048 Luca...
The Linux Kernel.
Linux 3.7.1-r2 2512  67579 Luca...
The Linux Kernel.
Linux 3.5.0-r1 2663  124391 Luca...
The Linux Kernel.
Linux 3.4.4-r1 2663  124348 Luca...
The Linux Kernel.
Linux 3.3.6-r1 2663  124410 Luca...
The Linux Kernel.
Linux 3.2.12-r2 2791  124345 Luca...
The Linux Kernel.
Linux 3.2.7-r1 2821  123550 Mich...
The Linux Kernel.
Linux 3.1.1-r1 2926  122907 Mich...
The Linux Kernel.
Linux 3.0.4-r4 2987  122754 Luca...
The Linux Kernel.
Linux 2.6.36.3-r1 3210  116087 Diog...
The Linux Kernel.
Linux 2.6.32.3-r1 3588  117990 Luca...
The Linux Kernel.
Linux 2.6.32-r1 3629  117751 Luca...
The Linux Kernel.
Linux 2.6.31.6-r3 3634  126499 Luca...
The Linux Kernel.
Linux 2.6.30.5-r1 3713  166102 Jona...
The Linux Kernel.
Linux 2.6.29.1-r1 3856  117500 Luca...
The Linux Kernel.
Linux 2.6.28.7-r1 3912  115518 Giam...
The Linux Kernel.
Linux 2.6.28.1-r1 3912  115487 Giam...
The Linux Kernel.
view entry at GitHub | download recipe.bz2 file
01-gobohide.patch
02-unionfs-2.5_for_2.6.27-rc6.patch
05-applesmc-accel-create-check.patch
06-appletouch.patch
10-decrypt_failed_as_debug.patch
Recipe
Resources/BuildInformation
Resources/Dependencies
Resources/Description
cell/02-memcpy-cell.patch
cell/Recipe
cell/dot-config
i686/01-acpi-dsdt-initrd-v0.9c-2.6.26.patch
i686/Recipe
i686/dot-config
ppc/Recipe
ppc/dot-config
x86_64/Recipe
x86_64/dot-config
applesmc: Do not create accelerometer input device if it cannot be calibrated.

From: Nicolas Boichat <nicolas@boichat.ch>

It should fix kernel bug #10998.

Needs testing.
---

 drivers/hwmon/applesmc.c |   30 +++++++++++++++++++++++-------
 1 files changed, 23 insertions(+), 7 deletions(-)


diff --git a/drivers/hwmon/applesmc.c b/drivers/hwmon/applesmc.c
index aacc0c4..f3aa9e0 100644
--- a/drivers/hwmon/applesmc.c
+++ b/drivers/hwmon/applesmc.c
@@ -456,11 +456,20 @@ static struct platform_driver applesmc_driver = {
  * applesmc_calibrate - Set our "resting" values.  Callers must
  * hold applesmc_lock.
  */
-static void applesmc_calibrate(void)
+static int applesmc_calibrate(void)
 {
-	applesmc_read_motion_sensor(SENSOR_X, &rest_x);
-	applesmc_read_motion_sensor(SENSOR_Y, &rest_y);
+	int ret;
+
+	ret = applesmc_read_motion_sensor(SENSOR_X, &rest_x);
+	if (ret)
+		return ret;
+
+	ret = applesmc_read_motion_sensor(SENSOR_Y, &rest_y);
+	if (ret)
+		return ret;
+
 	rest_x = -rest_x;
+	return 0;
 }
 
 static void applesmc_idev_poll(struct input_polled_dev *dev)
@@ -1159,6 +1168,13 @@ static int applesmc_create_accelerometer(void)
 	struct input_dev *idev;
 	int ret;
 
+	/* initial calibrate for the input device */
+	ret = applesmc_calibrate();
+	if (ret) {
+		printk(KERN_ERR "applesmc: Cannot calibrate the accelerometer.\n");
+		return ret;
+	}
+
 	ret = sysfs_create_group(&pdev->dev.kobj,
 					&accelerometer_attributes_group);
 	if (ret)
@@ -1173,9 +1189,6 @@ static int applesmc_create_accelerometer(void)
 	applesmc_idev->poll = applesmc_idev_poll;
 	applesmc_idev->poll_interval = APPLESMC_POLL_INTERVAL;
 
-	/* initial calibrate for the input device */
-	applesmc_calibrate();
-
 	/* initialize the input device */
 	idev = applesmc_idev->input;
 	idev->name = "applesmc";
@@ -1344,9 +1357,12 @@ static int __init applesmc_init(void)
 	}
 
 	if (applesmc_accelerometer) {
+		/* Try to initialize the accelerometer, not being able to do so
+		 * is not a fatal error. */
+
 		ret = applesmc_create_accelerometer();
 		if (ret)
-			goto out_temperature;
+			applesmc_accelerometer = 0;
 	}
 
 	if (applesmc_light) {
Linux 2.6.28-r1 3912  116681 Mich...
The Linux Kernel.
Linux 2.6.27.8-r1 3912  134160 Giam...
The Linux Kernel.
Linux 2.6.27.4-r3 3912  149529 Luca...
The Linux Kernel.
Linux 2.6.25.17-r1 3912  172834 Giam...
The Linux Kernel.
Linux 2.6.25.16-r1 3912  166500 Giam...
The Linux Kernel.
Linux 2.6.25.10-r2 3912  165320 Giam...
The Linux Kernel.
Linux 2.6.25.7-r1 3912  157294 Giam...
The Linux Kernel.
Linux 2.6.25.4-r1 3912  133017 Hopp...
The Linux Kernel.
Linux 2.6.25-r1 3912  133216 Luca...
The Linux Kernel.
Linux 2.6.24.4-r5 3912  150733
The Linux Kernel.
Linux 2.6.24.3-r5 3912  150221 Luca...
The Linux Kernel.
Linux 2.6.24.2-r3 3912  146488 Giam...
The Linux Kernel.
Linux 2.6.24.1-r1 3912  146454 Giam...
The Linux Kernel.
Linux 2.6.24-r1 3912  146428 Luca...
The Linux Kernel.
Linux 2.6.23.8-r4 3912  155842 Luca...
The Linux Kernel.
Linux 2.6.22.7-r4 3912  114727 Luca...
The Linux Kernel.
Linux 2.6.22.1-r1 3912  121391 Luca...
The Linux Kernel.
Linux 2.6.21.1-r3 3912  118854 Luca...
The Linux Kernel.
Linux 2.6.20.7-r1 3912  117945 Luca...
The Linux Kernel.
Linux 2.6.20.4-r3 3912  151150 Luca...
The Linux Kernel.
Linux 2.6.20-r1 3912  106429 Luca...
The Linux Kernel.
Linux 2.6.18.3-r2 3912  111124 Luca...
The Linux Kernel.
Linux 2.6.17.11-r1 3912  164053 Luca...
The Linux Kernel.
Linux 2.6.17.3-r1 3912  165067 Luca...
The Linux Kernel.
Linux 2.6.16.20-r1 3912  133625 Luca...
The Linux Kernel.
Linux 2.6.16.14-r1 3912  168270 Luca...
The Linux Kernel.
Linux 2.6.15.5-r1 3912  224686 Jona...
The Linux Kernel.
Linux 2.6.15.2-r1 3912  177165 Carl...
The Linux Kernel.
Linux 2.6.15.1-r1 3912  149219 Jona...
The Linux Kernel.
Linux 2.6.15-r1 3912  149214 Luca...
The Linux Kernel.
Linux 2.6.14.4-r1 3912  150166 Jona...
The Linux Kernel.
Linux 2.6.14.3-r1 3912  150060 Jona...
The Linux Kernel.
Linux 2.6.14.2-r1 3912  149791 Carl...
The Linux Kernel.
Linux 2.6.13.4-r1 3912  149559 Luca...
The Linux Kernel.
Linux 2.6.13.2-r1 3912  56611 Jona...
The Linux Kernel.
Linux 2.6.13.1-r1 3912  56378 Luca...
The Linux Kernel.
Linux 2.6.12.2-r1 3912  50355 Luca...
The Linux Kernel.
Linux 2.6.11.9-r1 3912  98969 Luca...
The Linux Kernel.
Linux 2.6.11.8-r1 3912  109424 Jona...
The Linux Kernel.
Linux 2.6.11-r1 3912  99032 Luca...
The Linux Kernel.
Linux 2.6.10-r1 3912  65969 Luca...
The Linux Kernel.
Linux 2.6.9-r1 3912  278461 Luca...
The Linux Kernel.
Linux 2.6.8.1-r1 3912  35576 Luca...
The Linux Kernel.
Linux 2.6.7-r1 3912  22610 Luca...
The Linux Kernel.
Linux 2.6.6-r1 3912  21958 Luca...
The Linux Kernel.
Linux 2.4.26-r1 3912  22359 Luca...
The Linux Kernel.