Changeset 4073


Ignore:
Timestamp:
02/16/08 10:35:08 (5 years ago)
Author:
werner
Message:

When reading the PMU RTC alarm status, the "enabled" flag wasn't set to
indicate whether the alarm is active.

Note that the pcf50606 change is untested.

pcf50633.patch:

  • drivers/i2c/chips/pcf50633.c (pcf50633_rtc_read_alarm): set alrm->enabled

gta01-pcf50606.patch:

  • drivers/i2c/chips/pcf50606.c (pcf50606_rtc_read_alarm) set alrm->enabled
Location:
branches/src/target/kernel/2.6.24.x/patches
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/src/target/kernel/2.6.24.x/patches/gta01-pcf50606.patch

    r4069 r4073  
    99--- /dev/null 
    1010+++ linux-2.6.24/drivers/i2c/chips/pcf50606.c 
    11 @@ -0,0 +1,1937 @@ 
     11@@ -0,0 +1,1939 @@ 
    1212+/* Philips/NXP PCF50606 Power Management Unit (PMU) driver 
    1313+ * 
     
    12211221+ 
    12221222+       mutex_lock(&pcf->lock); 
     1223+       alrm->enabled =  
     1224+             __reg_read(pcf, PCF50606_REG_INT1M) & PCF50606_INT1_ALARM ? 0 : 1; 
    12231225+       pcf_tm.sec = __reg_read(pcf, PCF50606_REG_RTCSCA); 
    12241226+       pcf_tm.min = __reg_read(pcf, PCF50606_REG_RTCMNA); 
  • branches/src/target/kernel/2.6.24.x/patches/pcf50633.patch

    r4064 r4073  
    3535--- /dev/null 
    3636+++ linux-2.6.24/drivers/i2c/chips/pcf50633.c 
    37 @@ -0,0 +1,1954 @@ 
     37@@ -0,0 +1,1956 @@ 
    3838+/* Philips PCF50633 Power Management Unit (PMU) driver 
    3939+ * 
     
    13411341+ 
    13421342+       mutex_lock(&pcf->lock); 
     1343+       alrm->enabled = 
     1344+            __reg_read(pcf, PCF50633_REG_INT1M) & PCF50633_INT1_ALARM ? 0 : 1; 
    13431345+       pcf_tm.sec = __reg_read(pcf, PCF50633_REG_RTCSCA); 
    13441346+       pcf_tm.min = __reg_read(pcf, PCF50633_REG_RTCMNA); 
Note: See TracChangeset for help on using the changeset viewer.