GoboLinux Downloads Documentation Community Recipes Screenshots

GoboLinux Recipe & Package Search Tool

71 versions of Linux.

ProgramAgeSizeByWWWSummary
Linux 4.13.2-r1 921  88794 Luca...
The Linux Kernel.
Linux 4.9.16-r3 1092  100651 Luca...
The Linux Kernel.
Linux 4.9.4-r5 1148  99374 Luca...
The Linux Kernel.
Linux 4.8.2-r2 1214  89394 Luca...
The Linux Kernel.
Linux 4.7.4-r1 1284  82767 Luca...
The Linux Kernel.
Linux 4.7.0-r4 1339  82585 Luca...
The Linux Kernel.
Linux 3.13.3-r1 2219  252629 Luca...
The Linux Kernel.
Linux 3.12.6-r1 2279  238949 Luca...
The Linux Kernel.
Linux 3.9.4-r2 2474  70048 Luca...
The Linux Kernel.
Linux 3.7.1-r2 2647  67579 Luca...
The Linux Kernel.
Linux 3.5.0-r1 2798  124391 Luca...
The Linux Kernel.
Linux 3.4.4-r1 2798  124348 Luca...
The Linux Kernel.
Linux 3.3.6-r1 2798  124410 Luca...
The Linux Kernel.
Linux 3.2.12-r2 2926  124345 Luca...
The Linux Kernel.
Linux 3.2.7-r1 2956  123550 Mich...
The Linux Kernel.
Linux 3.1.1-r1 3061  122907 Mich...
The Linux Kernel.
Linux 3.0.4-r4 3122  122754 Luca...
The Linux Kernel.
Linux 2.6.36.3-r1 3345  116087 Diog...
The Linux Kernel.
Linux 2.6.32.3-r1 3723  117990 Luca...
The Linux Kernel.
Linux 2.6.32-r1 3764  117751 Luca...
The Linux Kernel.
Linux 2.6.31.6-r3 3769  126499 Luca...
The Linux Kernel.
Linux 2.6.30.5-r1 3848  166102 Jona...
The Linux Kernel.
Linux 2.6.29.1-r1 3991  117500 Luca...
The Linux Kernel.
Linux 2.6.28.7-r1 4047  115518 Giam...
The Linux Kernel.
Linux 2.6.28.1-r1 4047  115487 Giam...
The Linux Kernel.
Linux 2.6.28-r1 4047  116681 Mich...
The Linux Kernel.
Linux 2.6.27.8-r1 4047  134160 Giam...
The Linux Kernel.
Linux 2.6.27.4-r3 4047  149529 Luca...
The Linux Kernel.
view entry at GitHub | download recipe.bz2 file
01-gobohide.patch
02-unionfs-2.5_for_2.6.27-rc6.patch
04-thinkpad-acpi-0.21-20081019_v2.6.27.2.patch
05-applesmc-accel-create-check.patch
06-appletouch.patch
07-applesmc-retry-when-accessing-keys.patch
08-applesmc-remove-debugging-messages.patch
09-applesmc_int.patch
10-decrypt_failed_as_debug.patch
Recipe
Resources/BuildInformation
Resources/Dependencies
Resources/Description
cell/01-ps3-backports.patch
cell/02-ps3vram.patch
cell/03-ps3-stable.patch
cell/04-copy4k-cell.patch
cell/05-memcpy-cell.patch
cell/06-usb-fix-hcd-interrupt-disabling.patch
cell/Recipe
cell/dot-config
i686/01-acpi-dsdt-initrd-v0.9a-2.6.25.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.25.17-r1 4047  172834 Giam...
The Linux Kernel.
Linux 2.6.25.16-r1 4047  166500 Giam...
The Linux Kernel.
Linux 2.6.25.10-r2 4047  165320 Giam...
The Linux Kernel.
Linux 2.6.25.7-r1 4047  157294 Giam...
The Linux Kernel.
Linux 2.6.25.4-r1 4047  133017 Hopp...
The Linux Kernel.
Linux 2.6.25-r1 4047  133216 Luca...
The Linux Kernel.
Linux 2.6.24.4-r5 4047  150733
The Linux Kernel.
Linux 2.6.24.3-r5 4047  150221 Luca...
The Linux Kernel.
Linux 2.6.24.2-r3 4047  146488 Giam...
The Linux Kernel.
Linux 2.6.24.1-r1 4047  146454 Giam...
The Linux Kernel.
Linux 2.6.24-r1 4047  146428 Luca...
The Linux Kernel.
Linux 2.6.23.8-r4 4047  155842 Luca...
The Linux Kernel.
Linux 2.6.22.7-r4 4047  114727 Luca...
The Linux Kernel.
Linux 2.6.22.1-r1 4047  121391 Luca...
The Linux Kernel.
Linux 2.6.21.1-r3 4047  118854 Luca...
The Linux Kernel.
Linux 2.6.20.7-r1 4047  117945 Luca...
The Linux Kernel.
Linux 2.6.20.4-r3 4047  151150 Luca...
The Linux Kernel.
Linux 2.6.20-r1 4047  106429 Luca...
The Linux Kernel.
Linux 2.6.18.3-r2 4047  111124 Luca...
The Linux Kernel.
Linux 2.6.17.11-r1 4047  164053 Luca...
The Linux Kernel.
Linux 2.6.17.3-r1 4047  165067 Luca...
The Linux Kernel.
Linux 2.6.16.20-r1 4047  133625 Luca...
The Linux Kernel.
Linux 2.6.16.14-r1 4047  168270 Luca...
The Linux Kernel.
Linux 2.6.15.5-r1 4047  224686 Jona...
The Linux Kernel.
Linux 2.6.15.2-r1 4047  177165 Carl...
The Linux Kernel.
Linux 2.6.15.1-r1 4047  149219 Jona...
The Linux Kernel.
Linux 2.6.15-r1 4047  149214 Luca...
The Linux Kernel.
Linux 2.6.14.4-r1 4047  150166 Jona...
The Linux Kernel.
Linux 2.6.14.3-r1 4047  150060 Jona...
The Linux Kernel.
Linux 2.6.14.2-r1 4047  149791 Carl...
The Linux Kernel.
Linux 2.6.13.4-r1 4047  149559 Luca...
The Linux Kernel.
Linux 2.6.13.2-r1 4047  56611 Jona...
The Linux Kernel.
Linux 2.6.13.1-r1 4047  56378 Luca...
The Linux Kernel.
Linux 2.6.12.2-r1 4047  50355 Luca...
The Linux Kernel.
Linux 2.6.11.9-r1 4047  98969 Luca...
The Linux Kernel.
Linux 2.6.11.8-r1 4047  109424 Jona...
The Linux Kernel.
Linux 2.6.11-r1 4047  99032 Luca...
The Linux Kernel.
Linux 2.6.10-r1 4047  65969 Luca...
The Linux Kernel.
Linux 2.6.9-r1 4047  278461 Luca...
The Linux Kernel.
Linux 2.6.8.1-r1 4047  35576 Luca...
The Linux Kernel.
Linux 2.6.7-r1 4047  22610 Luca...
The Linux Kernel.
Linux 2.6.6-r1 4047  21958 Luca...
The Linux Kernel.
Linux 2.4.26-r1 4047  22359 Luca...
The Linux Kernel.