development kernel tree: Changes to 'andy'

git at git.openmoko.org git at git.openmoko.org
Thu Jul 3 00:20:14 CEST 2008


Rebased ref, commits from common ancestor:
commit 8e2d149c8d13c269bd1361128dd97714934c2f65
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 23:05:35 2008 +0100

    test-touchscreen-pressure.patch
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit e860f58b91d3be6de1e568f6eac2cbb0add7a0ff
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 23:00:54 2008 +0100

    test-touchscreen-median.patch
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 1d466cccbe86d3a73514cb642d80c64f07176108
Author: Cesar Eduardo Barros <cesarb at cesarb.net>
Date:   Wed Jul 2 22:56:24 2008 +0100

    PATCH-9_9-gta01-Tweak-pixclock-to-reduce-flicker-with-cpufreq.eml
    
    Experimenting with a GTA01 showed pixclock values near 40000 (after the
    rounding caused by the divider calculation) caused visible flicker. Values
    near 20000 caused only a slight flicker, and the default value after rounding
    with the default HCLK frequency of 133MHz is 30075.
    
    Change the value to 35000 to make it stay in the range 17500-35000 and thus
    reduce the flicker a bit.
    
    Signed-off-by: Cesar Eduardo Barros <cesarb at cesarb.net>

commit e73c0ff042c4d378cfdcf3516175d64cb7fa9826
Author: Cesar Eduardo Barros <cesarb at cesarb.net>
Date:   Wed Jul 2 22:56:22 2008 +0100

    PATCH-8_9-Experimental-S3C2410A-cpufreq-driver-fb-.eml
    
    This is the cpufreq notifier for the S3C2410 framebuffer driver.
    
    Signed-off-by: Cesar Eduardo Barros <cesarb at cesarb.net>

commit bb87000ede05a75f8264dd6e52bda592d766fb8d
Author: Cesar Eduardo Barros <cesarb at cesarb.net>
Date:   Wed Jul 2 22:56:16 2008 +0100

    PATCH-7_9-Experimental-S3C2410A-cpufreq-driver-serial-.eml
    
    This is the cpufreq notifier for the S3C2410 serial driver.
    
    It uses the hardware flow control, when available, to avoid losing characters
    during the transition.
    
    Signed-off-by: Cesar Eduardo Barros <cesarb at cesarb.net>

commit 518464d16d6eeed52af3d7defa882a5c0dfa1d3a
Author: Cesar Eduardo Barros <cesarb at cesarb.net>
Date:   Wed Jul 2 22:55:25 2008 +0100

    PATCH-6_9-s3c2410-serial-move-divisor-calculation-to-separate-function.eml
    
    The cpufreq notifier for the S3C2410 serial driver has to recalculate the
    baud rate divisor. The code which does the calculation is currently part of
    s3c24xx_serial_set_termios. Split it off to a separate function.
    
    Code movement only, no functional changes.
    
    Signed-off-by: Cesar Eduardo Barros <cesarb at cesarb.net>

commit 5617af018313d97b75c62cf48ca5a0e2da74e9a9
Author: Cesar Eduardo Barros <cesarb at cesarb.net>
Date:   Wed Jul 2 22:55:24 2008 +0100

    PATCH-5_9-Experimental-S3C2410A-cpufreq-driver-nand-.eml
    
    This is the cpufreq notifier for the S3C2410 NAND driver.
    
    Signed-off-by: Cesar Eduardo Barros <cesarb at cesarb.net>

commit 6efff844bb593196b0727337bc177daf7cb3b6ea
Author: Cesar Eduardo Barros <cesarb at cesarb.net>
Date:   Wed Jul 2 22:55:21 2008 +0100

    PATCH-4_9-Experimental-S3C2410A-cpufreq-driver-timer-.eml
    
    This is the cpufreq notifier for the S3C2410 timer code.
    
    Signed-off-by: Cesar Eduardo Barros <cesarb at cesarb.net>

commit 593f23cd4e2baf70feb21c87546bdef55af6b8c2
Author: Cesar Eduardo Barros <cesarb at cesarb.net>
Date:   Wed Jul 2 22:55:20 2008 +0100

    PATCH-3_9-cpufreq-Warn-whem-cpufreq_register_notifier-called-before-pure-initcalls.eml
    
    If cpufreq_register_notifier is called before pure initcalls,
    init_cpufreq_transition_notifier_list will overwrite whatever it did,
    causing notifiers to be ignored.
    
    Print some noise to the kernel log if that happens.
    
    Signed-off-by: Cesar Eduardo Barros <cesarb at cesarb.net>

commit a734e0998292bf2a36f0830084c5ee18fcef7d50
Author: Cesar Eduardo Barros <cesarb at cesarb.net>
Date:   Wed Jul 2 22:55:18 2008 +0100

    PATCH-2_9-Experimental-S3C2410A-cpufreq-driver-core-.eml
    
    This is a cpufreq driver for the S3C2410A. It deals only with the main
    frequency switching part and with the SDRAM refresh counter. The rest of the
    hardware should be dealt with via cpufreq notifiers on each of the drivers.
    
    It also has experimental support for the S3C2442.
    
    Signed-off-by: Cesar Eduardo Barros <cesarb at cesarb.net>

commit b7dd88af3f75344f887e5df87b66b3eeabb86446
Author: Cesar Eduardo Barros <cesarb at cesarb.net>
Date:   Wed Jul 2 22:55:15 2008 +0100

    PATCH-1_9-cpufreq-fix-show_trans_table.eml
    
    Fix show_trans_table when it overflows PAGE_SIZE.
    
    * Not all snprintf calls were protected against being passed a negative
    length.
    * When show_trans_table overflows, len might be > PAGE_SIZE. In that case,
    returns PAGE_SIZE.
    
    Signed-off-by: Cesar Eduardo Barros <cesarb at cesarb.net>

commit 1d83ce274bfbb13d1fff66adbf9c84a62fc834e1
Author: warmcat <andy at warmcat.com>
Date:   Wed Jul 2 22:55:13 2008 +0100

    local-config-cpufreq.patch

commit 96c44fcccd1bf9ea97299a1593277c5d3dd516b9
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    change-remove-kernel-charging-led-drive.patch
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 344bfaba1383ab39a1bf7a4bf9908e93ddc9deb4
Author: Holger Freyther <zecke at openmoko.org>
Date:   Wed Jul 2 22:53:00 2008 +0100

    From c221bb27c8e22daa451e26353140777223d397d2 Mon Sep 17 00:00:00 2001
    Subject: [PATCH] [pcf50633] Report more events to userspace using the default callback
    
    Signed-Off-By: Holger Freyther <zecke at openmoko.org>

commit f4b4d9a7697aa7b8ebfde0deb31940688d05c2f0
Author: Holger Freyther <zecke at openmoko.org>
Date:   Wed Jul 2 22:53:00 2008 +0100

    From 5718bde77ed1a75e0fd2cdf5e099e66121d10c0a Mon Sep 17 00:00:00 2001
    Subject: [PATCH] [battery] Make the bq27000 send an uevent when the charging state possible changed
         Remove the todo entries from the pcf50633, make the mach-gta02
         call the bq27000 driver from the pmu callback.

commit fe8b2b8f8c50353e9d9c6b86b455bb1e50ac7932
Author: Holger Freyther <zecke at openmoko.org>
Date:   Wed Jul 2 22:53:00 2008 +0100

    From 000450f1ad2c713d2345a872fdf44f5dd3702e1b Mon Sep 17 00:00:00 2001
    Subject: [PATCH] [janitor] make checkpatch.pl happy

commit 4bccba16a80f3b9af91ce36a110d87d611858dd5
Author: Holger Freyther <zecke at openmoko.org>
Date:   Wed Jul 2 22:53:00 2008 +0100

    From 683ef8067815f6ba0ede73fa71973823726213a3 Mon Sep 17 00:00:00 2001
    Subject: [PATCH] [janitor] Make checkpatch happy on the header files

commit d89aed1d38d978eddb21e0d87cbd3b5809d5e168
Author: Holger Freyther <zecke at openmoko.org>
Date:   Wed Jul 2 22:53:00 2008 +0100

    From ae3f72fc608fcd0a98a980a335ac4dc7ad95b221 Mon Sep 17 00:00:00 2001
    Subject: [PATCH] [bq27000] Make the checkpatch.pl happy

commit d6528bb851419f4b70de2a7080bb9c95c031d322
Author: Andrzej Zaborowski <balrog at zabor.org>
Date:   Wed Jul 2 22:53:00 2008 +0100

    From 119f4e02ba81cffe4dbc88d8ff667048ad28d925 Mon Sep 17 00:00:00 2001
    Subject: [PATCH] Hacky CONFIG_NO_IDLE_HZ (dyn-tick) support for S3C24xx.

commit 3fc1f974eb5f35277b5af07663257674e0d56afb
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    introduce-resume-exception-capture.patch
    
    This patch introduces a new resume debugging concept: if we
    get an OOPS inbetween starting suspend and finishing resume, it
    uses a new "emergency spew" device similar to BUT NOT REQUIRING
    CONFIG_DEBUG_LL to dump the syslog buffer and then the OOPS
    on the debug device defined by the existing CONFIG_DEBUG_S3C_UART
    index.  But neither CONFIG_DEBUG_LL nor the S3C low level configs
    are needed to use this feature.
    
    Another difference between this feature and CONFIG_DEBUG_LL is that
    it does not affect resume timing, ordering or UART traffic UNLESS
    there is an OOPS during resume.
    
    The patch adds three global exports, one to say if we are inside
    suspend / resume, and two callbacks for printk() to use to init
    and dump the emergency data.  The callbacks are set in s3c serial
    device init, but the whole structure is arch independent.
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit fce5892fa3be7777474605deb9ba4a697094b681
Author: Mike Westerhof <mwester at dls.net>
Date:   Wed Jul 2 22:53:00 2008 +0100

    clean-gsm-flow-control.patch
    
    Signed-off-by: Mike Westerhof <mwester at dls.net>
    
     arch/arm/plat-s3c24xx/neo1973_pm_gsm.c |   52 +-------
     drivers/serial/s3c2410.c               |  204 +++-----------------------------
     2 files changed, 24 insertions(+), 232 deletions(-)

commit a30b29d6028e2ac95e94f2b32bca1da49aa65266
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    fix-gsm-resume-problems.patch
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 732b0f5a530d14c357a3765d93ed90a740f4b054
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    fix-lis302dl-resume-and-init-reload-boot-coefficients.patch
    Reported-by: John Lee <john_lee at openmoko.com>
    
    We don't reset the devices either at init or resume, where init
    means use the BOOT bit to reload device calibration coefficients
    from internal EEPROM.  John Lee saw brain-damaged behaviour after
    resume and sometimes after boot (since it may not have lost power
    to force a BOOT itself that makes sense).
    
    This patch
    
     - adds a diagnostic dump feature down /sys
     - forces BOOT action on init and resume, and waits for
       completion
     - makes sure XYZ capture is enabled on resume
     - adds some constants in the .h and removes some magic numbers
       in the code by using them
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 5c1cf6dbfbe40006354778c2fd7128b44472ee10
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    fix-touchscreen-meddling-divde.patch
    Reported-by: Holger Freyther <zecke at openmoko.org>
    
    length can be zero... blowing a divide by zero exception...
    which somehow I don't get (?)  Anyway the code is wrong and
    this should fix it.
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 2419d38f0492560b4ae11be16c54ceef97f6fab8
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    touchscreen-meddling.patch
    
    Touchscreen on GTA01-02 experiences noise on the channel that serves the
    "tall axis" of the LCM.  The sample quality of the other axis is good.
    The bad samples have a characteristic of one shot excursions that can
    reach +/- 20% or more of the sample average.
    
    Previously, we had a simple averaging scheme going in the touchscreen
    driver that summed up 32 x and ys and then divided it by 32.  This patch
    first tidies up the existing code for style, then adds a new "running
    average" concept with a FIFO.  The running average is separate from the
    summing average mentioned above, and is accurate for the last n samples
    sample-by-sample, where n is set by 1 << excursion_filter_len_bits in the
    machine / platform stuff.
    
    The heuristic the patch implements for the filtering is to accept all
    samples, but tag the *previous* sample with a flag if it differed from
    the running average by more than reject_threshold_vs_avg in either
    axis.  The next sample time, a beauty contest is held if the flag was
    set to decide if we think the previous sample was a one-shot excursion
    (detected by the new sample being closer to the average than to the
    flagged previous sample), or if we believe we are moving (detected by
    the new sample being closer to the flagged previous sample than the
    average.  In the case that we believe the previous sample was an
    excursion, we simply overwrite it with the new data and adjust the
    summing average to use the new data instead of the excursion data.
    
    I only tested this by eyeballing the output of ts_print_raw, but it
    seemed to be quite a bit better.  Gross movement appeared to be
    tracked fine too.  If folks want to try different heuristics on top
    of this patch, be my guest; either way feedback on what it looks like
    with a graphical app would be good.
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 1e3011ca45fc57f902c3e4924507dfa5fd0c562f
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    introduce-panic-blink-led-not-using-userspace-omfg.patch
    
    A panic is silent on GTA02, it would be good if we got a little hint
    if we are crashing (eg, in suspend / resume) from a panic instead of
    a deadlock, etc.  On a normal PC i8042 blinks the keyboard lights if
    we panic, this patch causes AUX to flash at 5Hz in event of a panic.
    
    Tested by giving kernel fake root= that didn't exist.
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 18c12a4b341c9ac0bba2cc5523d6d2df47cc852b
Author: Andrzej Zaborowski <balrog at zabor.org>
Date:   Wed Jul 2 22:53:00 2008 +0100

    Subject: [PATCH] glamo: Don't disable hwcursor for blinking and use vsync-wait.

commit 2348bafa281122eb42d42d003822aa8565ef176b
Author: Holger Freyther <zecke at openmoko.org>
Date:   Wed Jul 2 22:53:00 2008 +0100

    Subject: [PATCH] [a6k] Everyone calls SET_NET_DEV and hald needs that too,
    make it happy
         Call SET_NET_DEV to set a parent device. All other net drivers
         are doing this and hald needs a parent to add the network device.

commit fc25402874b67fd0ea702df7ff8d95be377e1648
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    workaround-s3c24xx-i2s-stop-live-stream-stall-on-resume.patch
    Reported-by: Graeme Gregory <graeme at openmoko.org>
    Basically-solved-by: Graeme Gregory <graeme at openmoko.org>
    
    Graeme found a while back that on resume, IISCON register in
    s3c2442 does not show LRCK toggling in LRINDEX bit any more,
    causing s3c24xx_snd_lrsync() to timeout and return an error,
    aborting restart of any live stream that was playing at
    suspend.
    
    I confirmed it was true, meddled around for a bit looking
    for some magic to restart LRCK or at least the reporting of
    it, and in the end worked around it using the method noted
    by Graeme: just ignore LRCK sync if it timed out.  The worst
    that could happen would be L and R swap for the duration of
    stream that was suspended into but probably not even that.
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit c40e5befee915acc75b433b8d291fd137e8fdce7
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    fix-pcf50633-use-pcf-not-data-in-probe-for-context.patch
    
    Everywhere in the sources except the probe function the context
    pointer is called "pcf"... in there it's called "data" for some
    reason.  This stops confusion by changing it to be "pcf" in there
    as well.
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit b1cef042c05de1b3967b0fc1ac3d932a25d568c7
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    fix-pcf50633-migrate-gta02-peripherals-out.patch
    
    pcf50633.c shouldn't know GTAxx at all.  Move to using a
    platform callback to allow definition of platform devices
    with pcf50633 as parent device (good for enforcing suspend /
    resume ordering).  Remove all code references to GTAxx from
    the sources (one string left for compatability).
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit b1843cfcef1770b3523609a586fb9fca006caaa8
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    fix-pcf50633-platform-backlight-resume-ramp-setting.patch
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 199fb736c8bf5215ab12fb8fbbbb864c5828e272
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    fix-pcf50633-really-defer-backlight-on-resume.patch
    
    Backlight wasn't off by default on resume, so it was never really
    deferred (until LCM is initialized).  This fixes that and so removes
    the brief white screen between pcf50633 resume and LCM init.
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 7733e1bee543f74cc937107a9e223b2ba57fc4df
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    debug-backtrace-not-choke-on-null-dev_blah.patch
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 0b927e7b54c4228ebcbdeb99cef3cd9cf095f364
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    fix-pcf50633-disable-irq-from-suspend-until-resume.patch
    
    Disable pcf interrupt (not for wake, just as interrupt) in
    suspend, re-enable it again just before we force-call the
    workqueue function at end of pcf resume, which leads to
    pcf interrupt source registers getting cleared so it can
    signal an interrupt normally again.
    
    This change ends the uncontrolled appearance of pcf interrupts
    during resume time which previously caused the work to attempt
    to use the I2C stuff before i2c host device had itself resumed.
    Now the isr work is only queued, and the isr work function called,
    definitively after pcf resume completes.
    
    In suspend time, the work function may have been queued some
    time before and be pending, and it could still show up at a
    bad time.  Therefore if the work function sees that it is
    coming since the start of pcf50633 suspend function, it
    aborts without attempting to read the pcf interrupt regs,
    leaving them for resume to take care of.
    
    USB current limit and no battery work functions are also made
    aware of suspend state and act accordingly.
    
    Lastly I noticed that in early resume, i2c_get_clientdata(&pcf->client)
    returns NULL, presumably because i2c device is still suspended.  This
    could easily make trouble for async events like interrupt work,
    since pcf pointer is the client data.  Disabling appearance of the
    work until after pcf50633 resume will also avoid that.
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 92d2975a47d7dfe5e8700d67a1546ec8c0e9c0a7
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    fix-pcf50633-suspend-state-as-enum.patch
    
    Use an enum to define pcf50633 suspend / resume state.
    Add PCF50633_SS_RESUMING_BUT_NOT_US_YET to be the state
    early in resume: add platform driver resume function just
    to set this state so we can differentiate between early
    resume and late suspend.
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 7e68c676ee811b96f135b4c5ed43038be138aa81
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    debug-i2c-s3c2410-dump-stack-on-suspended-tranfer.patch
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit faf503f613c23752a0acc24620f2e1127ac1876e
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    fix-allow-core-1v3-to-go-down.patch
    
    Whoops left it up in suspend
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit e26409485ce78449f8271adae136898d1d4a0a72
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    fix-pcf50633-kill-white-splash-of-death-on-suspend.patch
    
    mach-gta02 meddles with the regulator platform struct after
    it is defined, leading to LCM power getting lost in suspend
    despite I set it to be left up.  Fixing this finally removes
    the incredibly stubborn white LCM on suspend "flash".
    
    This is also going to be implicated in Sean McNeil's
    experience of monochromatic LCM after resume, which was
    previously attacked by resetting and re-initing the LCM
    from scratch.
    
    In addition, I realized that we take down core_1v3 in
    pcf50633 suspend action, this is happening near the
    start of suspend, so we are in a meta-race to finish
    suspend in a controlled way before the caps on core_1v3
    run out (I only saw 23.3uF total).  If it's true, this
    is where the weirdo sensitivity to timing during
    suspend is coming from.
    
    Therefore in this patch we also remove sleeps and
    dev_info() etc (which have to flush on serial console)
    from the pc50633 isr workqueue if we are in pcf50633
    driver suspend state 1, ie, suspending... because we
    don't have time for it.
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit e4f1e9e89286aa65bfea403602a12628782d081d
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    cosmetic-checkpatch-complaints.patch
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 2857bd8c4292acbc682c659216afbe630a9917c5
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    fix-pcf50633-add-back-gratuitous-isr-work-call-in-resume.patch
    
    Sean McNeil reports that he doesn't get pcf50633 interrupts any
    more after resume.  This adds back the call to ISR work in
    the resume, removal of which is probably to do with it.
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 9bdd8d104fa98cbcab1eb2b1cddcc56977ebd6a7
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    fix-pcf50633-require-resume-level-3-for-irq-work.patch
    Signed-off-by: Andy Green <andy at openmoko.com>

commit f0ac5e1db05b78978790085cb8de000ae289d872
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    add-remote-install-sdcard-script.patch
    
    If you boot from SDCARD, this helper script for the build host
    mounts SD card part 1, copies the new uImage.bin, umounts it and
    then remounts SD card part 2 as ro, before doing a reboot all
    in one step.  Read the instructions inside the script for adding
    your public key to the GTAxx rootfs for really really simple and
    nice automatic update and reboot action.
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit d607161f4ab6280cc9f840a5ef93aae00700ee42
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    fix-gta02-mach-remove-gta01-lcd-reset.patch
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 9b12206ea7b1e5e042e1fbb84ccc7dad47bfabd8
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    change-lcm-keep-power-faster-resume.patch
    
    The LCM spins for 100ms during resume for not much reason.  Leave it powered
    (it is meant to pull uA when suspended) and get nice fast resume to video.
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit cd13bad76d8b6c21957a44ff6b2b51b2503cf35f
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    fix-pcf50633-usb-curlim-workqueue-migration.patch
    
    pcf50633 needs to take responsibility for managing current limit
    changes asycnhrnously, ie, from USB stack enumeration.  It's a feature of
    pcf50633 not mach-gta02.c, and we can do better with taking care about
    keeping it from firing at a bad time in there too.
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit b724ea28544ce7b8e5e737847edfcbb64a7e011d
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    fix-pcf50633-use-i2c-bulk-autoincrement.patch
    
    Simplify and speed up bulk sequential I2C actions in pcf50633
    the time savings are pretty considerable and so is the simplification
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 22cf3452fb4d5b35dd2fbaa592ed122cb8c4a256
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    fix-pcf50633-rtc-i2c-bulk-autoincrement-simplify.patch
    
    More pcf50633 major time saving by using i2c bulk autoincrement.  Code
    reduction too by using array for time elements.
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 7df5b8414c00d17c0960291f7ed6b855167975ab
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    fix-pcf50633-interrupt-work-enforce-wait-on-resume-completion.patch
    
    Improve pcf50633 interrupt service scheduling to enforce only servicing
    when resume action is completed
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 0bb2079113dfc84c425530b562f236e63883e6b7
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    fix-glamo-mci-resume-dependency-on-pcf50633.patch
    
    Glamo MCI has a resume order dependncy on pcf50633, it has to be able to
    power the SD slot via it.
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 84d12fc4dbeb489ca50003d34f4ad2a33db99bfc
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    fix-glamo-mci-power-setting-timeout-waiting-for-pcf50633.patch
    
    Glamo MCI power setting stuff spins on pcf50633
    but it won't hurt if it gives up after a second or
    two instead of stalling the resume silently.
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 1ffba575666a6483873462d9e087d806154b05d3
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    ASoC: Don't block system resume
    
    On OpenMoko soc-audio resume is taking 700ms of the whole resume time of
    1.3s, dominated by writes to the codec over I2C.  This patch shunts the
    resume guts into a workqueue which then is done asynchronously.
    
    The "card" is locked using the ALSA power state APIs as suggested by
    Mark Brown.
    
    [Added fix for race with resume to suspend and fixed a couple of nits
    from checkpatch -- broonie.]
    
    Signed-off-by: Andy Green <andy at openmoko.com>
    Signed-off-by: Mark Brown <broonie at opensource.wolfsonmicro.com>

commit fab0aa8146579326518e2551486840945aca623a
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    fix-jbt6k74-force-reset-suspend.patch
    Sean McNeil reports that without the reset for LCM in suspend, he
    gets a monochromatic mode on it somehow.
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 9da4f373782ba4f12d52413072551dfbe1bbf647
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    fix-glamo-mci-relationship-with-pcf50633-suspend-resume.patch
    
    After protecting pcf50633 read and write primitives against
    operation after suspend or before resume (by blowing a
    stack_trace()) I saw glamo-mci was trying to use pcf50633
    at these bad times on its own suspend and resume.  Since that
    part was already done via platform callback, I added an
    export in pcf50633 that tells you if it is ready or busy,
    and used it to defer (resume power on case) or ignore
    (suspend power off case, since pcf50633 already did it)
    the mci power call.
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit e709713fe44444731ae92ded4fb339aaf0f213b0
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    fix-pcf50633-suspend-resume-onehit-i2c-other-meddling.patch
    
     - speed up suspend and resume by using one hit i2c bulk transactions
     - don't bother storing int mask set on suspend, the default one is
       what we use anyway
     - put stack_trace() on pcf50633 low level access that fire if we
       try to touch them before we resumed
     - cosmetic source cleanup
     - reduces resume time for pcf50633 from 450ms to 255ms
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit a013d81ff60fa2a47f8e33a92dec761ade3fcff3
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:53:00 2008 +0100

    debug-codec-register-setting-sysfs.patch
    Allow direct setting of codec registers for super mega meddling power
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 1c354ec1434e69d0238c26e2bb0ed4ffccde8ac2
Author: Sean McNeil <sean at mcneil.com>
Date:   Wed Jul 2 22:52:59 2008 +0100

    The following is a minor cleanup of backlight resume:

commit 7c07f94ce87e3b452db8a642a07eb4db11e982d0
Author: Andrzej Zaborowski <balrog at zabor.org>
Date:   Wed Jul 2 22:52:59 2008 +0100

    Subject: [PATCH] Hardware glamo-fb cursor, some clean-up.

commit 1308b4886f708ed5dd22013f5cf24670bd3613c9
Author: Andrzej Zaborowski <balrog at zabor.org>
Date:   Wed Jul 2 22:52:59 2008 +0100

    Subject: [PATCH] Build fixes.

commit 7b71d66ccfd0a126875fef2feca9e946baa3c683
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:52:59 2008 +0100

    fix-remove-unused-model-name-bq27000.patch
    
    Model name isn't in the bq27000 register set, remove the
    claim that we can deliver it
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit bee20501b2c4dcf23419ffedf96b63720fd28877
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:52:59 2008 +0100

    add-use-pcf50633-resume-callback-jbt6k74.patch
    
    Adds the resume callback stuff to glamo, then changes
    jbt6k74 to no longer use a sleeping workqueue, but to
    make its resume actions dependent on pcf50633 and
    glamo resume (for backlight and communication to LCM
    respectively)
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 1ec5ee958721bdd3dcc7fa683209bc45a7d01a7a
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:52:59 2008 +0100

    introduce-pcf50633-resume-dependency-list.patch
    
    Adds resume dependency support to pcf50633
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 513b7ecd55af2e83cb7da6de04a196a70d7e9c7e
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:52:59 2008 +0100

    introduce-resume-dependency.patch
    
    Defines a way for drivers to defer execution of resume callbacks
    until one or more other driver they are dependent on has itself
    resumed.
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 8c84531ea30e49d1c0b486db6a16d906150bff0a
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:52:59 2008 +0100

    introduce-charging-led-behaviour.patch
    
    Creates a new behaviour requested by Will that the red LED on GTA02
    is lit during battery charging.and goes out when the battery is full.
    
    This is done by leveraging the PMU interrupts, but in one scenario
    there is no interrupt that occurs, when the battery is replaced after
    being removed with the USB power in all the while.  So a sleepy work
    function is started under those circumstances to watch for battery
    reinsertion or USB cable pull.
    
    100mA limit was not being observed under some conditions so this was
    fixed and tested with a USB cable with D+/D- disconnected.  1A
    charger behaviour was also tested.
    
    Showing the charging action exposes some inconsistency in pcf50633
    charging action.  If your battery is nearly full, it will keep
    charging it at decreasing current even after it thinks it is at
    100% capacity for a long while.  But if you pull that same battery
    and re-insert it, the charger state machine in pcf50633 believe it is
    full and won't charge it.
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 70ce5f7795d9fd12e0f5b2a9250c615d0594854b
Author: Andy Green <andy at opennoko.com>
Date:   Wed Jul 2 22:52:59 2008 +0100

    uplevel-samsung-camera-unit.patch
    
    Update this old code to clk API, I2C changes, official GPIO API
    various struct changes, explicit readl() writel(), DMA API changes.
    Still not ready for actual use (eg, I2C) but a LOT closer.
    
    Compiles on 2.6.24 without errors or warnings now.
    
    Use CONFIG_S3C2440_CAMERA=y in .config
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 14e61f5385c7827204115c61d4274f6ffeb365d9
Author: SW.LEE <hitchcar at samsung.com>
Date:   Wed Jul 2 22:52:59 2008 +0100

    introduce-samsung-camera-unit-driver.patch
    
    This is the kernel side of an old (2004) samsung camera driver for 2440
    It doesn't compile on modern kernel yet, this patch introduces it into the
    kernel tree without gross mods, so it is broken code we can start to work on

commit d175fde181db98d0c291e6c169766299972aa72f
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:52:59 2008 +0100

    add-gta01-resume-sysfs.patch
    
    Adds the somewhat simpler resume source support for GTA01
    since PMU is not a wake source
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit aabe73b2b02b6647f81e77035177f9d2504047bb
Author: Holger Freyther <zecke at openmoko.org>
Date:   Wed Jul 2 22:52:59 2008 +0100

    Subject: [PATCH] [a6k] Everyone calls SET_NET_DEV and hald needs that too,
    make it happy
         Call SET_NET_DEV to set a parent device. All other net drivers
         are doing this and hald needs a parent to add the network device.

commit 03d5e4d3796c6542780ca8cb7b67577226194619
Author: No Attribution <dunno at dunno.org>
Date:   Wed Jul 2 22:52:59 2008 +0100

    Remove GTA01 PM debug

commit 1cace8b1aaf72553a8c2a038f3046cf7ded99dbb
Author: Holger Freyther <zecke at openmoko.org>
Date:   Wed Jul 2 22:52:59 2008 +0100

    Make ar6k not print soooo much to my console
    
    From 4cb4c308fde9c1f3598046ff98191d14b62bc609 Mon Sep 17 00:00:00 2001
    From: Holger Freyther <zecke at openmoko.org>
    Date: Thu, 29 May 2008 00:09:32 +0200
    Subject: [PATCH] [ar6k] silent++, removing -DDEBUG from the Makefile does not
    work

commit 27089bd21748d5070904dd3a4b6f8fa00bcce9f7
Author: Holger Freyther <zecke at openmoko.org>
Date:   Wed Jul 2 22:52:59 2008 +0100

    Fix possible null pointer dereference in s3c24xx_i2c_resume
    
    From 0b9bae6aed5268707b348e48a01411ba420844e1 Mon Sep 17 00:00:00 2001
    From: Holger Freyther <zecke at openmoko.org>
    Date: Tue, 27 May 2008 14:41:35 +0200
    Subject: [PATCH] [janitor] Fix possible null pointer dereference
         Judging by the control flow of the resume method i2c->suspended++ could
         lead to a null pointer dereference.

commit a3d65c6017c9c6479d189fa6fb0eee8b8af4603d
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:52:59 2008 +0100

    fix-reduce-wake-reasons-in-pcf50633.patch
    
    Currently we are willing to wake from sleep from
    pcf50633 interrupts we don't actually do anything about
    even when we wake (somewhat puzzled).
    
    Let's disable some of these wake sources.
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 0bb24abca3834efc63c026a0b7e156f2c8d99ee6
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:52:59 2008 +0100

    add-resume-reason-sysfs.patch
    
    If you have U-Boot with uboot-add-find-wake-reason.patch, this
    patch will get you a wake reason report from
    
    cat /sys/devices/platform/neo1973-resume.0/resume_reason
    
    it looks like this:
    
      EINT00_ACCEL1
      EINT01_GSM
      EINT02_BLUETOOTH
      EINT03_DEBUGBRD
      EINT04_JACK
      EINT05_WLAN
      EINT06_AUXKEY
      EINT07_HOLDKEY
      EINT08_ACCEL2
    * EINT09_PMU
        adpins
        adprem
        usbins
        usbrem
        rtcalarm
        second
        onkeyr
        onkeyf
        exton1r
        exton1f
        exton2r
        exton2f
        exton3r
        exton3f
      * batfull
        chghalt
        thlimon
        thlimoff
        usblimon
        usblimoff
        adcrdy
        onkey1s
        lowsys
        lowbat
        hightmp
        autopwrfail
        dwn1pwrfail
        dwn2pwrfail
        ledpwrfail
        ledovp
        ldo1pwrfail
        ldo2pwrfail
        ldo3pwrfail
        ldo4pwrfail
        ldo5pwrfail
        ldo6pwrfail
        hcidopwrfail
        hcidoovl
      EINT10_NULL
      EINT11_NULL
      EINT12_GLAMO
      EINT13_NULL
      EINT14_NULL
      EINT15_NULL
    
    This shows a problem, false wake from suspend due to battery full
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit ea88faf7de925d76ec6fb340c25c21bff357d765
Author: Andy Green <agreen at localhost.localdomain>
Date:   Wed Jul 2 22:52:59 2008 +0100

    fix-motion-sensor-corruption.patch

commit 80f1e718d34c4c58374fd07216699707e4fff8c8
Author: Holger Freyther <zecke at openmoko.org>
Date:   Wed Jul 2 22:52:59 2008 +0100

    Fixup hang on resume caused by the s3c2410 touch screen driver
    
    From dc6d335b467646d802a21ea6b925ee97e83e07be Mon Sep 17 00:00:00 2001
    From: Holger Freyther <zecke at openmoko.org>
    Date: Thu, 15 May 2008 01:16:23 +0200
    Subject: [PATCH] Do not use msleep in the resume path of s3c2410_ts as it
    might lockup
    
    For some reason msleep might set the only task running into a suspended
    state and no timer will ever wake it up. Use mdelay to avoid this. I was not
    able to understand the reasoning of sleeping after enabling the clock. So we
    might just remove the msleep/mdelay at all and be fine.
    
    Signed-Off-By: Holger Freyther <zecke at openmoko.org>

commit 6f4ee89e2f6a356638e07c15fd18efe3323c1c96
Author: Sean McNeil <sean at mcneil.com>
Date:   Wed Jul 2 22:52:59 2008 +0100

    minor problem with LCD
    
    Looking at wrong register to see if the LCD is turned off?

commit b2f7e5b8084e4f0feda02604379ccb9cd9a32c98
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:52:59 2008 +0100

    clean-remove-build-noise.patch
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 2060d55e853d6a17e360479551107a91a8a1c308
Author: Holger Freyther <zecke at openmoko.org>
Date:   Wed Jul 2 22:52:59 2008 +0100

    Disable low level debugging, make the s3c24xx PM debug code depend on DEBUG_LL
    
    Hey,
    where are slowly getting into the product state, low level debugging is
    supposed to be turned off there. :)
    
    z
    
    
    
    From 6448f0a521c05c5ba6672f5908c55583974ce1ed Mon Sep 17 00:00:00 2001
    From: Holger Freyther <zecke at openmoko.org>
    Date: Fri, 9 May 2008 19:56:31 +0200
    Subject: [PATCH] [debug] Disable low level debugging for the product
         Disable low level debugging in the defconfig-gta02 and
         the s3c pm code used printascii which is only available
         with low level debugging, update the Kconfig entry for
         this pm debugging support to depend on low level debugging
    
    Signed-Off-By: Holger Freyther <zecke at openmoko.org>

commit ce84f198d33d97437d13ecd13852508d98cf671a
Author: Holger Freyther <zecke at openmoko.org>
Date:   Wed Jul 2 22:52:59 2008 +0100

    [power] Use the bq27000 battery to provide charging values for apm
        Built the apm emulation for gta02 and say that the gta02 battery
        is supposed to be used for this apm emulation.
    
    Signed-Off-By: Holger Freyther <zecke at openmoko.org>

commit d54877fb08e2209600f0f9975917c3613030fd3c
Author: Holger Freyther <zecke at openmoko.org>
Date:   Wed Jul 2 22:52:59 2008 +0100

    [pcf50633] Disable debugging statements as the driver is working well
    
    Signed-Off-By: Holger Freyther <zecke at openmoko.org>

commit e55ef6da547b15ebb8fd0953f803bc60040e3366
Author: Holger Freyther <ich at tamarin.(none)>
Date:   Wed Jul 2 22:52:59 2008 +0100

    [pcf50633] Assume that all gta02's have a battery with coulumb counter
        For the gta02 and the bq27000 battery it does not make sense to use the
        ADC to get the current voltage. Under the assumption that all mass
        production gta02's have such batteries it does not make any sense to
        forward this value to APM.
    
    Signed-Off-By: Holger Freyther <zecke at openmoko.org>

commit 50a1b1bd044c9c59036837e25457ad9c377bca85
Author: Holger Freyther <ich at tamarin.(none)>
Date:   Wed Jul 2 22:52:59 2008 +0100

    [pcf50633] Add exported symbol to the header file
        Reading the battery volt using the ADC was an exported symbol
        but not in the header file, add it.
    
    Signed-Off-By: Holger Freyther <zecke at openmoko.org>

commit 5117945f1d5b6cd251a6aa6aaced982837da1c09
Author: Holger Freyther <ich at tamarin.(none)>
Date:   Wed Jul 2 22:52:59 2008 +0100

    [pcf50633] Print less debugging messages
        According to the comments in the code we have to read
        INT1 - INT5 in case of any interrupt. So even if we have masked
        out the periodic timer interrupt we were able to see that it
        fired. Only print that we got a SECOND interrupt if we are actually
        interested in the periodic tick. From a brief look at the datasheet there
        is no way to stop the periodic tick.
    
    Signed-Off-By: Holger Freyther <zecke at openmoko.org>

commit f6281caadbbf9cd8f8aea7f0e989f1c696a1070f
Author: Holger Freyther <ich at tamarin.(none)>
Date:   Wed Jul 2 22:52:59 2008 +0100

    Explain why we want SECOND to kick.
        We do not mask the SECOND interrupt to make sure that we get
        a interrupt at the beginning. We use this for the coldplug_done
        initisalisation.
        So pcf->flags and INT1M is out of sync at the beginning but after the
        first SECOND interrupt it will be put into sync.
    
    Signed-Off-By: Holger Freyther <zecke at openmoko.org>

commit 6c05bef6b8a8c9bc8540939a956027708fbf8548
Author: Holger Freyther <zecke at openmoko.org>
Date:   Wed Jul 2 22:52:59 2008 +0100

    Re: [PATCH 6/7] fix-suppress-cpu-suspend-save-restore-messages.patch
    
    Andy Green <andy at ...> writes:
    
    
    I kind of dislike commenting out code. Is this any better?

commit f33e33a4a351b17d5023bf344b39273c9bfaa280
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:52:59 2008 +0100

    fix-backlight-disable-on-zero-intensity.patch
    
    It's never right to put 0 intensity into LEDOUT according to datasheet
    But having a floor at intensity 2 means backlight isn't properly off
    when "dimmed".  So change to intensity 0 --> disable backlight.
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 27ffcf96b4895da2adc36b1d5ad54d6894d34c75
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:52:59 2008 +0100

    add-force-backlight-up-on-resume.patch
    
    The backlight status is restored during resume action, if it was
    off then it resumes like that.
    
    This patch forces it on after resume.
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit bed925cd8535b465a66a11348ed0ab134ee16858
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:52:59 2008 +0100

    quench-glamofb-err-lock-and-mmc-debug.patch
    
    Remove debugging noise
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 7859dc43b02cee9818de029a9f61520717ebef3d
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:52:59 2008 +0100

    fix-suspend-backlight-timing-pm-debug.patch
    
    This patch improves the smoothness of suspend and resume action.
    
    Taking out CONFIG_PM_DEBUG allows much more rapid resume (the low level
    serial traffic appears to be synchronous)
    
    Added a platform callback in jbt driver and support in pcf50633 so we
    can defer bringing up the backlight until the LCM is able to process
    video again (which must happen after the glamo is up and producing
    video beacuse the LCM is hooked to glamo SPI)
    
    GTA01 should not be affected by all this as the callback will default
    to null and it is on pcf50606
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit bc76e7acccadc8750f78cfc75740ba188bc05dc1
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:52:59 2008 +0100

    config-add-back-MMC_UNSAFE_RESUME.patch
    
    After LL debug disable, "unsafe" resume allows resume from SD card
    rootfs without corruption, WAH
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 5a59d9510885ec060b8eae93774d673993a24e7c
Author: Sean McNeil <sean at mcneil.com>
Date:   Wed Jul 2 22:52:59 2008 +0100

    fix-wep-needs-keys-before-ap.patch
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 9d36474237fcbec556f171b3c7c75e17935422fd
Author: matt_hsu <matt_hsu at openmoko.org>
Date:   Wed Jul 2 22:52:59 2008 +0100

    s3c24xx-pwm-platform-driver.patch
    
    This patch is to register pwm as platform driver to keep the PWM-related
    config when system is in suspend/resume. This could fix the following
    issue after resume:
    
    - HDQ read timeout
    - LEDs blinked abnormally(if LEDs is driven by PWM)
    
    Signed-off-by: Matt Hsu <matt_hsu at openmoko.org>

commit 8e23a960ecfe695b19d497dab2122690840e1184
Author: Sean McNeil <sean at mcneil.com>
Date:   Wed Jul 2 22:52:59 2008 +0100

    fix-KEY_PHONE-up-down-inversion.patch
    
    the KEY_PHONE is backwards. It returns up when pushed and down when
    released. The following change fixes it:
    
    Signed-off-by: Sean McNeil <sean at mcneil.com>

commit 997a0fb400ae14c3dfefc1ab6964c24f56f24127
Author: Mike Westerhof <mwester at dls.net>
Date:   Wed Jul 2 22:52:59 2008 +0100

    Stop GTA01 MMC Debugging messages
    
    Signed-off-by: Mike Westerhof <mwester at dls.net>

commit 156b2004779870ae8a4203d6774193ab2c43377e
Author: Andy Green <agreen at localhost.localdomain>
Date:   Wed Jul 2 22:52:59 2008 +0100

    clean-sdio-hcd-suspend.patch
    
    fix trailing whitespace and function args for suspend.
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit af28f93b2d85503e8d0dda60594ea18f9d3a6e98
Author: Matt Hsu <matt_hsu at openmoko.org>
Date:   Wed Jul 2 22:52:59 2008 +0100

    From cc08b5986dfd8d971ee46ce7045fb7863f99a92a Mon Sep 17 00:00:00 2001
    Subject: [PATCH] - add suspend/resume function of s3c24xx_hcd driver
    
    
    Signed-off-by: Matt Hsu <matt_hsu at openmoko.org>

commit 872a756231ca1648dcb4ff03d28192b669787f2d
Author: Tim Niemeyer <reddog at mastersword.de>
Date:   Wed Jul 2 22:52:59 2008 +0100

    This-adds-some-debug-messages-to-the-Neo1937-sound-d.patch
    Subject: [PATCH] This adds some debug messages to the Neo1937 sound driver.
    
    Signed-off-by: Tim Niemeyer <reddog at mastersword.de>

commit adbf5539125199264d3ea0963fe3e7bf971d4e70
Author: Tim Niemeyer <reddog at mastersword.de>
Date:   Wed Jul 2 22:52:59 2008 +0100

    This-fixes-the-exit-function-so-that-the-module-can.patch
    Subject: [PATCH] This fixes the exit function, so that the module can be removed.
     Signed-off-by: Tim Niemeyer <reddog at mastersword.de>

commit 0c59aa2cd6c45269c2368e72cba08d8b8e254da2
Author: Mike Westerhof <mwester at dls.net>
Date:   Wed Jul 2 22:52:59 2008 +0100

    gta01-gps-power-state-resume-preserve.patch
    
    Created an attachment (id=593) / from BZ#79
    Updated patch to preserve the power state of the GPS on the GTA01
    
    Currently the GPS is powered up after a suspend/resume occurs.  This patch will
    only power the GPS back up if it was powered up when the GTA01 suspended.
    
    Signed-off-by: Mike Westerhof <mwester at dls.net>

commit 90c5b77f8ca6888b1e8c9abd5f53a085ed7e6713
Author: Reddog <reddog at mastersword.de>
Date:   Wed Jul 2 22:52:59 2008 +0100

    gta01-fix-resume-redo-par.patch
    
     --> (http://bugzilla.openmoko.org/cgi-bin/bugzilla/attachment.cgi?id=595&action=view)
    fix resume of fbdev  BZ#79
    
    I played a bit with the fbdev resume. With this patch the neo doesn't get this
    white screen on resume from console and from X.
    
    Signed-off-by: Reddog <reddog at mastersword.de>

commit 149e2b135327179e5f4e5f08a4e99767eee931d2
Author: Mike Westerhof <mwester at dls.net>
Date:   Wed Jul 2 22:52:59 2008 +0100

    gta01-fix-jbt-platform-missing-members.patch
    
    Created an attachment (id=594) / BZ#79
    Add missing platform_data that caused the GTA01 to crash on suspend/resume
    
    The interface to the jbt6k74 driver changed slightly; this patch adds the
    missing platform_data for the GTA01.  This prevents a crash while suspending.
    This patch also makes some minor changes to cleanup and clarify some debug
    messages.
    Signed-off-by: Mike Westerhof <mwester at dls.net>

commit a16e249c692c47a1c5f0e113ad947a5863697cd8
Author: Mike Wester <mwester at dis.net>
Date:   Wed Jul 2 22:52:59 2008 +0100

    fix-gta01-pmu-irq-edge-lost-on-resume.patch
    
    GTA01 -only
    
    Restore power button functionality after resume operation
    
    Per Werner's suggestion, run the PMU interrupt handler immediately after resume
    to clear/handle any pending interrupts from that device.  This appears to
    resolve the  dead-powerbutton-after-resume problem.  This is not well-tested;
    need feedback to see if there are any side-effects or other problems.
    
    From BZ 1313
    
    Signed-off-by: Mike Wester <mwester at dis.net>

commit cdacf5b622ed8de7ba7bba1cdfe006d71920b1d2
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:52:59 2008 +0100

    fix-jack-interrupt-debounce-loss-window.patch
    
    Make sure we can't lose a jack interrupt in debounce, despite it is
    a one-in-a-million thing that just needs replug to clear
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit f337891696a2d6afeee8b2d004cb5b16709c1e63
Author: Holger Freyther <zecke at openmoko.org>
Date:   Wed Jul 2 22:52:58 2008 +0100

    [neo] Every access to GPIO bank B has to go through the shadow code
    
        - Any setting of any PIN on bank B will undo the LED setting.
          Introduce neo1973_gpb_set_pin to set the PIN in a way not losing
          the LED or any other shadowed setting.
        - Update users of GPBXY for gta01 and gta02.
    
    Signed-Off-By: Holger Freyther <zecke at openmoko.org>

commit f18b2d927567c167cead55032aea29817e5620b9
Author: Holger Freyther <zecke at openmoko.org>
Date:   Wed Jul 2 22:52:58 2008 +0100

    [neo bluetooth] GTA01_GPIO_MODEM_RST != GTA02_GPIO_MODEM_RST
        The bluetooth enable and modem reset switched the order in
        gta02. Do not poke the bluetooth dongle when we want to reset
        the modem.
    
    Signed-Off-By: Holger Freyther <zecke at openmoko.org>

commit 4272721823a07506e41e6e950571fa14fd825518
Author: Holger Freyther <zecke at openmoko.org>
Date:   Wed Jul 2 22:52:58 2008 +0100

    [led] Misc fixes in the driver code
        to_bundle returned the wrong data. The platform_device is the
        parent of the class_device used by the LED device class. Return
        the correct class.
    
        num_leds was not set to the correct number of registered LEDs. All
        loops using num_leds (e.g. module unloading) were not executed at
        all.
    
        On removal of the module disable all LEDs.
    
    Signed-Off-By: Holger Freyther <zecke at openmoko.org>

commit 24061a8aa1051c034ac7e778986e708c37dfdd09
Author: Holger Freyther <zecke at openmoko.org>
Date:   Wed Jul 2 22:52:58 2008 +0100

    [leds] We would enable PWM for all four timers, disable it for all four as well
    
    Currently we do not use the PWM code to drive the LEDS. We have enabled the PWM
    for four timer sources but disable it only for three, fix that up.
    
    Signed-Off-By: Holger Freyther <zecke at openmoko.org>

commit 88f456179a47a9869251beaaddf5e64e4e90552e
Author: Holger Freyther <zecke at openmoko.org>
Date:   Wed Jul 2 22:52:58 2008 +0100

    Remove not needed #ifdef as machine_is_ is always defined.
        If we build a kernel without gta01/gta02 the
        machine_is_ macro will expand to (0) and the compiler will
        optimize the if (0) {} away.
    
    Signed-Off-By: Holger Freyther <zecke at openmoko.org>

commit cae4b62efe87b0965c994eb84aac65525a69ec27
Author: Mike Wester <mwester at dis.net>
Date:   Wed Jul 2 22:52:58 2008 +0100

    fix-gta01-spi-resume-patch
    
    Patch to register the SPI device and thus the save/resume for the display
    
    This patch does *NOT* resolve this problem, but it does make things a bit
    better.  The SPI device name changed with 2.6.24, and the change was made for
    the gta02 but never propagated to the gta01.  With this change, you'll now see
    the entries for the spi bus and the display controller in /sys; and the display
    controller suspend/resume functions will be called.
    
    (via BZ 79)
    
    Signed-off-by: Mike Wester <mwester at dis.net>

commit ee9f095efceac387ee8b1fb00d51816dc5fabd0f
Author: Holger Freyther <zecke at openmoko.org>
Date:   Wed Jul 2 22:52:58 2008 +0100

    OpenMoko => Openmoko
    
    Signed-Off-By: Holger Freyther <zecke at openmoko.org>

commit fe4354ce68d8b390e74d380789b724bb63c7e1ab
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:52:58 2008 +0100

    fix-jack-debounce.patch
    
    Headphone jack detection is bouncy, it can trigger multiple interrupts
    on insertion or removal.  This patch adds a workqueue that waits out the
    interrupt spew in 100ms units, and if it sees no more interrupts for 100ms
    only then samples and reports the jack state.  I was unable to get a bounce
    after 20 or so tries after this.
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit db293b1662ca68374ddcff9be5ce8582a78617f7
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:52:58 2008 +0100

    fix-glamofb-cmd-mode-locking.patch
    
    Glamo "cmd mode" is modal, but nothing took care about locking.
    Also cmd mode was entered recursively in rotate_lcd().
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 2152dc2668afab219c0e370c5cf891ac705ade82
Author: Mike Wester <mwester at dis.net>
Date:   Wed Jul 2 22:52:58 2008 +0100

    fix-usb-ethernet-mwester.patch
    
    This is a kernel bug affecting all platforms, introduced in some code cleanup in
    2.6.23.  Patch will be posted as soon as I test it.
    
    NOTE: Do not submit upstream; this patch or something very similar is already
    in process for 2.6.25.

commit 4f6b70076bc99a78ef235b436cfb90be1f5e4c7d
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:52:58 2008 +0100

    fix-glamofb-cmdqueue-timeout.patch
    
    loglevl=9 can cause failure to init glamo-fb
    problem seems to be too low timeout when text scrolling can
    delay commandqueue going empty
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit a74b58a6ed0756c994e719e48809186e29e51757
Author: warmcat <andy at warmcat.com>
Date:   Wed Jul 2 22:52:58 2008 +0100

    add-modules-defconfig.patch
    From: Andy Green <andy at openmoko.com>
    
    Add in the svn "mostly modules" config and GTA01 / 02 split
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit f202bd8c64df3544d79493b4c2cab9d6356ac7a5
Author: warmcat <andy at warmcat.com>
Date:   Wed Jul 2 22:52:58 2008 +0100

    fix-gsm-download-irq-balance-issue.patch
    
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 42f1244c469fe592ff2db41bc9100c0f007e5851
Author: Werner Almesberger <werner at openmoko.org>
Date:   Wed Jul 2 22:52:58 2008 +0100

    audio-tickless-timeout.patch
    
    When we resume, we can end up in
    sound/soc/s3c24xx/s3c24xx-i2s.c:s3c24xx_snd_lrsync
    with the timer tick still disabled, and the LR signal never happening.
    Thus, we loop forever.
    
    The patch below changes the timeout mechanism to use udelay, which
    doesn't need timer ticks.
    
    Note that this code is in a module, so to get the fix, you have to
    build the modules, and update them.
    
    The kernel now resumes but does the ugly GSM modem ticking. I'll have
    to find a good place to turn that one off ...
    
    - Werner
    
    ---------------------------------- cut here -----------------------------------
    
    - sound/soc/s3c24xx/s3c24xx-i2s.c (s3c24xx_snd_lrsync): in resume, we may
      call s3c24xx_snd_lrsync with timer ticks disabled, thus jiffies never
      change. Use udelay to avoid this problem.

commit 2a6f81e7318728fa33de145063ed73a2dd3a7d7e
Author: warmcat <andy at warmcat.com>
Date:   Wed Jul 2 22:52:58 2008 +0100

    defconfig-audio.patch
    Add in some audio config needed
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 26780db84066447ac80dac4e35b838a59157346b
Author: Sameo <sameo at openedhand.com>
Date:   Wed Jul 2 22:52:58 2008 +0100

    fix-wlan-disable.patch
    
    see
    http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=1288

commit 272194333ae55eee3d83cb29640c3ea5f2c63b60
Author: Holger Freyther <zecke at openmoko.org>
Date:   Wed Jul 2 22:52:58 2008 +0100

    Enable GPS only if it was powered on before suspending the device
    
        Similar to the neo1974_pm_gsm.c keep a static struct around. On suspend
        we will save the current power state, on resume we will use this
        information to enable power of the GPS only when it was powered on before.
        This is passing basic tests with screen /dev/ttySAC1 on suspend and resume.
    
        Only do this for the GTA02 as I don't have a gllin setup for the GTA01
    
        I wonder why the suspend and resume code is not using gps_pwron_set and why
        for the GTA02 we need to keep the state of the GPIOs, this should be done
        by the s3c code.
    
    Signed-Off-by: Holger Frether <zecke at openmoko.org>

commit ef40722cce719ad04075495010cc141d808ca5ae
Author: Holger Freyther <zecke at openmoko.org>
Date:   Wed Jul 2 22:52:58 2008 +0100

    Fix the firing of "Jack"-Interrupts after resume when the modem is powered on.
    
    GTA02_GPIO_nDL_GSM defaults to high/1. On resume do not enable the DL_GSM if
    it was not enabled before. This is stopping the storm of interrupts.
    
    Fix the logic in the download file handling. Downloads are disabled (0) when
    the GTA02_GPIO_nDL_GSM is high (1). To enable downloading set
    GTA02_GPIO_nDL_GSM to low (0, !on). Disable the jack interrupt while download
    the is active. When disabling download we will get a couple of jack interrupts
    but this is hardly avoidable.
    
    Avoid reading the GPIO value if we do not even have a console set.
    
    Signed-Off-by: Holger Freyther <zecke at openmoko.org>

commit c16608bcb760fc577c1b4ea97e30738fc4f6d0cc
Author: Holger Freyther <zecke at openmoko.org>
Date:   Wed Jul 2 22:52:58 2008 +0100

    Fix spelling. flaoting => floating
    
    Signed-Off-by: Holger Freyther <zecke at openmoko.org>

commit cdbd0f70eea2070b422d0bf85e6a83ed307240e1
Author: Holger Freyther <zecke at openmoko.org>
Date:   Wed Jul 2 22:52:58 2008 +0100

    This is gta02 and not gta01. Do not call the vibrator led.
    
    Signed-Off-by: Holger Freyther <zecke at openmoko.org>

commit 63509649d61d6bb77cde5747c670b124192015cc
Author: Holger Freyther <zecke at openmoko.org>
Date:   Wed Jul 2 22:52:58 2008 +0100

    Add GPIO -> IRQ for the s3c2410 and add irq_to_gpio to the gpio.h of the Samsung SoC
    
    Use this irq_to_gpio in the neo1973 keyboard driver

commit aeaf7514890983a5f7214a34231e06672de8f9ec
Author: Holger Freyther <zecke at openmoko.org>
Date:   Wed Jul 2 22:52:58 2008 +0100

    Convert the driver to the generic GPIO framework
    
    Signed-Off-by: Holger Freyther <zecke at openmoko.org>

commit 3a34e4e57fab99e9da2dac7971eeddc6accbb27e
Author: Holger Freyther <zecke at openmoko.org>
Date:   Wed Jul 2 22:52:58 2008 +0100

    Fix the FIXME, store the GPIO value for now
    
    Signed-Off-by: Holger Freyther <zecke at openmoko.org>

commit 924b0ff160211fd3c1bddfd2aefa1341bda87d7d
Author: Holger Freyther <zecke at openmoko.org>
Date:   Wed Jul 2 22:52:58 2008 +0100

    Remove dead code
    
    Signed-Off-by: Holger Freyther <zecke at openmoko.org>

commit 20e858f65211773217179a3db7555027c0150e0e
Author: Holger Freyther <zecke at openmoko.org>
Date:   Wed Jul 2 22:52:58 2008 +0100

    Simplify the code, there is no need for a branch. The code for
    GTA01_GPIO_AUX_KEY looks odd.
    
    Signed-Off-by: Holger Freyther <zecke at openmoko.org>

commit eaef50bc8486b946990cf3dab264ae5552688282
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:52:58 2008 +0100

    add-pcb-rev-sysfs.patch
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 8667437ee09f9e1cc861e0bd1da73d53aedc6874
Author: warmcat <andy at warmcat.com>
Date:   Wed Jul 2 22:52:58 2008 +0100

    debug-glamo-dump-regs.patch
    From: Andy Green <andy at openmoko.com>
    
    Sigend-off-by: Andy Green <andy at openmoko.com>

commit a2484e16dd3525353d15d6ac560f72a3f6d092a3
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:52:58 2008 +0100

    add-gta02-pcb-revision-detect.patch
    
    Add function
    
    int gta02_get_pcb_revision(void)
    
    which returns state of GTA02 PCB revision pins.  It is also called
    and logged during boot with KERN_INFO.  The results look like:
    
    b9    b8        b2    b1    b0
     GPD4  GPD3     GPD0  GPC15 GPC13
    
     GTA02 A5 and before:  0x000
     GTA02 A6           :  0x001
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 6a64e41a4e218aebcc689f79287347f215b2d1a4
Author: Holger Freyther <zecke at openmoko.org>
Date:   Wed Jul 2 22:52:58 2008 +0100

    Do not send low level debugging to the modem
    
    Hey,
    
    I see no reason to send LL debugging messages to the modem. This can happen if
    we compile the Samsung SoC with PM debugging as in andy's git branch.
    
    
    
    From 452c17990dfeb9c2eb2ffa7ded4d24ddb1bcd4b2 Mon Sep 17 00:00:00 2001
    From: Holger Freyther <zecke at openmoko.org>
    Date: Sun, 23 Mar 2008 00:57:28 +0100
    Subject: [PATCH] Never ever send debug messages to the modem. The serial
    console is
     on UART2, send the messages for decompressing  and low level debugging
     there.
    
    Signed-Off-by: Holger Freyther <zecke at openmoko.org>

commit 9f068330f9e1bdbc9f8d28b6dadfd1cb527e1925
Author: warmcat <andy at warmcat.com>
Date:   Wed Jul 2 22:52:58 2008 +0100

    fix-suspend-gps-tx-level.patch
    
    We used to drive output high into GPS unit in suspend
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 07ca0af5b8edb9256afcbe4d0cd7010aee6b1b9e
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:52:58 2008 +0100

    fix-lis302dl-suspend-gpio.patch
    Add platform stuff to deal with going in and out of suspend
    so the motion sensor IO is not driving high into unpowered sensors
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 8c41420498562280c400ff1584778449c5b47ad9
Author: Holger Hans Peter Freyther <zecke at openmoko.org>
Date:   Wed Jul 2 22:52:58 2008 +0100

    add-pcf50633-06-RTC_AIE-ioctl
    
    Hey,
    
    the legacy application 'atd' from Russ Nelson/Nils Faerber, used by Qtopia, to
    schedule alarms currently fails to start as the the above ioctl is failing.
    The other drivers in drivers/rtc implement the above ioctl and we can
    implement it too.
    
    The code to mask/unmask the RTC alarm is copied from the set_alarm routine and
    adapted to use the reg_set_bit_mask and reg_set_clear_mask.
    
    It is compiling, so it must work. Please welcome me the lkml way ;)
    
    
    Signed-Off-by: Holger Hans Peter Freyther <zecke at openmoko.org>

commit fa3c66172ef2f156aa0ac8477958e86ebe8cd3b6
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:52:58 2008 +0100

    fix-charging-deassert-host-power-1a-detect.patch
    
    We don't take care to stop driving generated USB host power even
    when we have a 1A charger connected on the same pins.
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 0bf14829a28ed751ca529c0ae2514be83021265c
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:52:58 2008 +0100

    introduce-usb-host-power-control.patch
    
    Unless I really really missed the point, there is no support for enabling
    USB Host power for USB host mode.  This patch adds a /sys node for GTA02
    that allows control of the charge pump for 5V out on the USB mini connector
    It doesn't change any logical mode in the CPU, just enables (1) and disables
    (0) USB host power.
    
    # cat /sys/devices/platform/neo1973-pm-host.0/hostmode
    0
    # echo 1 > /sys/devices/platform/neo1973-pm-host.0/hostmode
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 8129b033697e0856c0fb6e70623cdb1203c102c3
Author: warmcat <andy at warmcat.com>
Date:   Wed Jul 2 22:52:58 2008 +0100

    fix-gpio-led-patch-still-pwm-t3.patch
    
    Starting up all the PWMs seems to be needed for PWM3 operation
    and FIQ / HDQ / VIB operation.  But after starting, turn the
    LEDs to GPIO-only.
    
    Applies on top of Willie's patch
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 8d614c7dd41c7d1eabd5ba3001a70dbf2ae9cce9
Author: Willie <willie_chen at openmoko.com>
Date:   Wed Jul 2 22:52:58 2008 +0100

    use gpio control leds

commit fd9ea89799a07d57112c6c7d9f56713349e293b7
Author: warmcat <andy at warmcat.com>
Date:   Wed Jul 2 22:52:58 2008 +0100

    fix-glamo-mci-fake-reset-opcode-in-suspend.patch

commit f6d0bd0bbf517fd05550d3b3583b01b26e8a20f7
Author: warmcat <andy at warmcat.com>
Date:   Wed Jul 2 22:52:58 2008 +0100

    fix-lcm-reinit-post-resume.patch

commit edc28672efac08171c903aa5da7fb9ad044ccb59
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:52:57 2008 +0100

    fix-glamo-mci-defeat-ops-during-suspend.patch
    
    We need to be able to use the config option CONFIG_MMC_UNSAFE_RESUME that allows the rootfs
    to live on SD.  But when we use this, it tries to send a reset command to the SD card during
    suspend -- and unfortunately many things like Power have suspended by then.
    
    This patch again rejects IO on the MMC device during suspend of the MMC device, and it
    gives the result the rootfs on SD card works okay.
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit fa32643a450bd5b04f8e19d976890e01d4ecf10f
Author: warmcat <andy at warmcat.com>
Date:   Wed Jul 2 22:52:57 2008 +0100

    config-add-alsa.patch

commit c47fb0d651b85448d2c3e8d879782f59e80825fc
Author: warmcat <andy at warmcat.com>
Date:   Wed Jul 2 22:52:57 2008 +0100

    fix-s3c2410_timer_setup-resume-BUG.patch

commit 73afc869dd21e74b778ab32164306d8afef95620
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:52:57 2008 +0100

    debug-suspend-dump-gpio-states-add-GPA.patch
    
    Add support for GPA[] GPIO bus since we have some NCs
    but they seem to output-only IO cells so no matter
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 271b7014a20e229488f7662447070d941a93d4ea
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:52:57 2008 +0100

    introduce-bq27000-battery-driver.patch
    
    This is a driver for the bq27000 found in the Highcell A5
    battery, and the platform device stuff for it for GTA02.  It
    is a Power Supply Class battery device.
    
    The driver doesn't contain an HDQ engine but accepts pointers
    from the platform data to the HDQ action routines; our
    platform data plugs it into the FIQ HDQ engine stuff.
    
    The Power Supply class exposes the battery down /sys so you
    can find out battery status by doing the equivalent of this
    bash command
    
    for i in capacity charge_full current_now present status technology temp time_to_empty_now time_to_full_now type voltage_now ; do echo -n "$i    " ; cat /sys/devices/platform/bq27000-battery.0/power_supply/bat/$i ; done
    
    Here is the kind of result you get from a battery discharging
    
    capacity    0
    charge_full    1215585
    current_now    183375
    present    1
    status    Discharging
    technology    Li-ion
    temp    276
    time_to_empty_now    0
    time_to_full_now    3932100
    type    Battery
    voltage_now    2761000
    
    Note that temp is in 1/10 degrees C, other values are in uV,
    uA, uW.  The time_to_* reported are bogus, but that is what
    the battery actually reports.
    
    We can make more mappings to entries in power_supply class
    but this is enough to get started with.
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 2042a8fed82ad54d84adc08fa7ae21ecc946de91
Author: Andy Green <andy at openmoko.com>
Date:   Wed Jul 2 22:52:57 2008 +0100

    introduce-fiq-hdq.patch
    
    This adds a platform driver and device which performs HDQ
    battery protocol using a single GPIO pin which is set
    through platform data.
    
    HDQ has some hard latency requirements which can't
    be met if interrupts are enabled, so normally using
    a GPIO for this will require blocking out all other
    interrupts and processes for several milliseconds
    per register being read or written.
    
    This HDQ protocol engine is a FSM implemented inside the
    the FIQ ISR and regulated by timer interrupts happening
    at 20us intervals.  The path through the FSM on any
    "clock" is very short and should be over with in ~
    1us.  Because FIQ has guaranteed latencies of <1us,
    it means we can service the HDQ protocol without
    blocking interrupts or any other process other than
    the caller that is waiting for the result. It's pretty
    cool performance from 1 GPIO ;-)
    
    Due to it being hard to do locking from the FIQ ISR
    the code simply sleeps 10ms or whatever the scheduler
    gives it and checks if the transfer took place yet.
    
    This platform driver doesn't have any knowledge about
    the device it is talking to, it just knows it is a
    HDQ device.  It exports three functions for read, write
    and confirming HDQ is initialized.  It also exports two
    /sys nodes that are usable by humans, one dumps the whole
    127 register HDQ register space
    
    # cat /sys/devices/platform/gta02-hdq.0/hdq/dump
    00 44 55 00 00 00 ba 04 a2 0d 50 00 00 00 00 00
    00 00 9a 1a 00 00 ff ff ff ff 29 00 00 00 80 2b
    00 00 00 00 00 00 ff ff 00 00 00 00 00 32 af 06
    a0 d8 37 4e 00 00 00 00 00 00 00 34 2e 03 b4 e7
    00 00 06 00 41 00 4c 02 00 00 00 00 00 00 00 00
    83 02 00 00 94 09 59 b9 a5 0d 7f 21 00 00 7a ff
    df ff 62 ff a7 04 2e 05 00 00 00 01 00 07 00 00
    2a 78 36 67 7b b5 1b a9 af 19 38 89 63 57 42 7c
    #
    
    and the other allows to set one register
    
    # echo 2 170 > /sys/devices/platform/gta02-hdq.0/hdq/write
    
    writes 0xAA into register 2.
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 9c544bf40a73f30b8a710d5cb74abcbb24ff677d
Author: warmcat <andy at openmoko.com>
Date:   Wed Jul 2 22:52:57 2008 +0100

    clean-snip-gpio-reinit.patch
    These are initialized already
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit ff4729dfc82269f0fe62a44d3eb2803a9fe1fb38
Author: warmcat <andy at openmoko.com>
Date:   Wed Jul 2 22:52:57 2008 +0100

    bugfix-deglitch-gpio-output-enable.patch

commit c8c0cfa7b67d47e93d30e101ef2a83e738dcef1b
Author: Mike Montour <mail at mmontour.net>
Date:   Wed Jul 2 22:52:57 2008 +0100

    contrib-fix-chgstate-array-bloat.patch
    
    --- linux-2.6.22/drivers/i2c/chips/pcf50606.c.orig	2008-01-17 22:30:16.000000000 -0800
    +++ linux-2.6.22/drivers/i2c/chips/pcf50606.c	2008-01-17 22:31:43.000000000 -0800
    @@ -71,12 +71,19 @@
    
     I2C_CLIENT_INSMOD_1(pcf50606);
    
    -#define PCF50606_F_CHG_FAST	0x00000001	/* Charger Fast allowed */
    -#define PCF50606_F_CHG_PRESENT	0x00000002	/* Charger present */
    -#define PCF50606_F_CHG_FOK	0x00000004	/* Fast OK for battery */
    -#define PCF50606_F_CHG_ERR	0x00000008	/* Charger Error */
    -#define PCF50606_F_CHG_PROT	0x00000010	/* Charger Protection */
    -#define PCF50606_F_CHG_READY	0x00000020	/* Charging completed */
    +#define PCF50606_B_CHG_FAST	0	/* Charger Fast allowed */
    +#define PCF50606_B_CHG_PRESENT	1	/* Charger present */
    +#define PCF50606_B_CHG_FOK	2	/* Fast OK for battery */
    +#define PCF50606_B_CHG_ERR	3	/* Charger Error */
    +#define PCF50606_B_CHG_PROT	4	/* Charger Protection */
    +#define PCF50606_B_CHG_READY	5	/* Charging completed */
    +
    +#define PCF50606_F_CHG_FAST	(1<<PCF50606_B_CHG_FAST)	/* Charger Fast allowed */
    +#define PCF50606_F_CHG_PRESENT	(1<<PCF50606_B_CHG_PRESENT)	/* Charger present */
    +#define PCF50606_F_CHG_FOK	(1<<PCF50606_B_CHG_FOK)	/* Fast OK for battery */
    +#define PCF50606_F_CHG_ERR	(1<<PCF50606_B_CHG_ERR)	/* Charger Error */
    +#define PCF50606_F_CHG_PROT	(1<<PCF50606_B_CHG_PROT)	/* Charger Protection */
    +#define PCF50606_F_CHG_READY	(1<<PCF50606_B_CHG_READY)	/* Charging completed */
     #define PCF50606_F_CHG_MASK	0x000000fc
    
     #define PCF50606_F_PWR_PRESSED	0x00000100
    @@ -1026,12 +1033,12 @@
     static DEVICE_ATTR(chgmode, S_IRUGO | S_IWUSR, show_chgmode, set_chgmode);
    
     static const char *chgstate_names[] = {
    -	[PCF50606_F_CHG_FAST]			= "fast_enabled",
    -	[PCF50606_F_CHG_PRESENT] 		= "present",
    -	[PCF50606_F_CHG_FOK]			= "fast_ok",
    -	[PCF50606_F_CHG_ERR]			= "error",
    -	[PCF50606_F_CHG_PROT]			= "protection",
    -	[PCF50606_F_CHG_READY]			= "ready",
    +	[PCF50606_B_CHG_FAST]			= "fast_enabled",
    +	[PCF50606_B_CHG_PRESENT] 		= "present",
    +	[PCF50606_B_CHG_FOK]			= "fast_ok",
    +	[PCF50606_B_CHG_ERR]			= "error",
    +	[PCF50606_B_CHG_PROT]			= "protection",
    +	[PCF50606_B_CHG_READY]			= "ready",
     };
    
     static ssize_t show_chgstate(struct device *dev, struct device_attribute *attr,

commit 71cc79eb90ee1883f5c8daa6339a34804547434f
Author: warmcat <andy at warmcat.com>
Date:   Wed Jul 2 22:52:57 2008 +0100

    local-config-ext2.patch

commit 1b9d78a6b0c4a0d41ee25ae44d71aa65da4c0bb1
Author: warmcat <andy at warmcat.com>
Date:   Wed Jul 2 22:52:57 2008 +0100

    local-config-pmu.patch

commit 6c85df77ad9d4ed86ec5df500adc5e540fc1e553
Author: warmcat <andy at openmoko.com>
Date:   Wed Jul 2 22:52:57 2008 +0100

    local-config-defconfig-motion-sensor-gpio.patch

commit 44fe3d54e7c899b01c641b08c4a1757ce1b734d9
Author: warmcat <andy at warmcat.com>
Date:   Wed Jul 2 22:52:57 2008 +0100

    local-config-wlan-config-changes.patch

commit 5106a27721505ce9d556f07b667dcceaf4eac872
Author: warmcat <andy at openmoko.com>
Date:   Wed Jul 2 22:52:57 2008 +0100

    local-config-add-bluetooth-monolithic.patch
    
    Add Bluetooth in monolithic kernel

commit b39dd747e2ba90e3102cac5aade7e8db289f7807
Author: warmcat <andy at warmcat.com>
Date:   Wed Jul 2 22:52:57 2008 +0100

    local-config-add-vfat-nls-to-kern.patch
    
    SD Card / VFAT in monolithic kernel
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 464db5c17f3ed3e130dad67b40c591fccfe554bb
Author: warmcat <andy at warmcat.com>
Date:   Wed Jul 2 22:52:57 2008 +0100

    local-update-defconfig-for-2.6-dev.patch
    
    Make a defconfig for 2.6.24 out of the current 2.6.22.5 one
    
    From: warmcat <andy at warmcat.com>

commit 9586229dcfbb1a4e676408f1a1d963f706352a4f
Author: warmcat <andy at warmcat.com>
Date:   Wed Jul 2 22:52:57 2008 +0100

    local-build-new-dfu-vid.patch
    
    Update to new DFU VID for A5
    
    Signed-off-by: Andy Green <andy at openmoko.com>

commit 3a47819108150e61be4a3157739926c5d2e9df67
Author: warmcat <andy at warmcat.com>
Date:   Wed Jul 2 22:52:57 2008 +0100

    local-build-scripts.patch
    
    Add a couple of handy scripts to crossmake and send over dfu
    
    From: warmcat <andy at warmcat.com>

commit 1a7624a2e3b2c6e71f6e0ed06b7dbcc72410b239
Author: warmcat <andy at warmcat.com>
Date:   Wed Jul 2 22:52:57 2008 +0100

    local-add-defconfig.patch
    
    Adds svn defconfig
    
    From: warmcat <andy at warmcat.com>





More information about the commitlog mailing list