06 Jan, 2012

1 commit


24 Jan, 2011

1 commit


09 Jan, 2011

12 commits


28 May, 2010

4 commits


11 May, 2010

1 commit


14 Apr, 2010

1 commit


16 Dec, 2009

1 commit


22 Sep, 2009

1 commit

  • On resume from suspend, the driver currently resets the logical state as
    if it was brought up from halt. This patch uses the
    dev_pm_ops.resume/restore methods to synchronize the hardware with the
    memorized logical state, in effect bringing back the accelerometer and
    backlight to the state prior to suspend. Works for both suspend to ram
    and hibernation. The patch has zero effect on the running state.

    Signed-off-by: Henrik Rydberg
    Cc: Nicolas Boichat
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Henrik Rydberg
     

15 Sep, 2009

1 commit


30 Jan, 2009

1 commit


16 Jan, 2009

1 commit

  • The light sensors ALV0 and ALV1 on newer MacBooks (early 2008 and later)
    changed to report 10 bytes instead the earlier 6, and the sensor encoding
    subsequently changed. As a result, the reported light sensors readings
    are much too low.

    Via experiments leading up to this patch, it seems only the ALV0 is
    reporting data, and the most useful value therein is a 10-bit big-endian
    value at offset 6. This suggests that a new protocol was added as a
    backward-compatible replacement on top of the old one.

    This patch makes applesmc report the improved light sensor reading for the
    new machines, on a scale in conformance with earlier ones.

    Signed-off-by: Alex Murray
    Signed-off-by: Henrik Rydberg
    Cc: Nicolas Boichat
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alex Murray
     

07 Jan, 2009

1 commit


02 Dec, 2008

1 commit


20 Nov, 2008

2 commits


13 Nov, 2008

1 commit


07 Nov, 2008

4 commits


20 Oct, 2008

6 commits

  • The read fail ratio is sensitive to the delay between the first byte
    written and the first byte read; apparently the sensors cannot be rushed.
    Increasing the minimum wait time, without changing the total wait time,
    improves the fail ratio from a 8% chance that any of the sensors fails in
    one read, down to 0.4%, on a Macbook Air. On a Macbook Pro 3,1, the
    effect is even more apparent. By reducing the number of status polls, the
    ratio is further improved to below 0.1%. Finally, increasing the total
    wait time brings the fail ratio down to virtually zero.

    Signed-off-by: Henrik Rydberg
    Tested-by: Bob McElrath
    Cc: Nicolas Boichat
    Cc: "Mark M. Hoffman"
    Cc: Jean Delvare
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Henrik Rydberg
     
  • Add temperature sensor support for Macbook Pro 3.

    Signed-off-by: Henrik Rydberg
    Cc: Nicolas Boichat
    Cc: Riki Oktarianto
    Cc: Mark M. Hoffman
    Cc: Jean Delvare
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Henrik Rydberg
     
  • Adds temperature sensor support for the Macbook Pro 4.

    Signed-off-by: Henrik Rydberg
    Cc: Nicolas Boichat
    Cc: Riki Oktarianto
    Cc: Mark M. Hoffman
    Cc: Jean Delvare
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Henrik Rydberg
     
  • dmi_system_id.driver_data is already void*.

    Cc: Henrik Rydberg
    Cc: Nicolas Boichat
    Cc: Riki Oktarianto
    Cc: Mark M. Hoffman
    Cc: Jean Delvare
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • This patch adds accelerometer, backlight and temperature sensor support
    for the Macbook Air.

    Signed-off-by: Henrik Rydberg
    Cc: Nicolas Boichat
    Cc: Riki Oktarianto
    Cc: Mark M. Hoffman
    Cc: Jean Delvare
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Henrik Rydberg
     
  • On some recent Macbooks, the package length for the light sensors ALV0 and
    ALV1 has changed from 6 to 10. This patch allows for a variable package
    length encompassing both variants.

    Signed-off-by: Henrik Rydberg
    Cc: Nicolas Boichat
    Cc: Riki Oktarianto
    Cc: Mark M. Hoffman
    Cc: Jean Delvare
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Henrik Rydberg