12 Jan, 2010

1 commit

  • commit abd6633c67925f90775bb74755f9c547e30f1f20 ("pnp: add a shutdown
    method to pnp drivers") adds shutdown method to bus driver blindly. With
    it, driver->shutdown is no longer valid.

    Use pnp_driver->shutdown instead.

    Addresses http://bugzilla.kernel.org/show_bug.cgi?id=14889

    Signed-off-by: OGAWA Hirofumi
    Reported-by: Malte Schröder
    Cc: "Rafael J. Wysocki"
    Cc: Bjorn Helgaas
    Cc: David Hardeman
    Cc: Dmitry Torokhov
    Cc: Alessandro Zummo
    Cc: Paul Gortmaker
    Cc: [2.6.32.x]
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    OGAWA Hirofumi
     

18 Dec, 2009

2 commits

  • * 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus: (71 commits)
    MIPS: Lasat: Fix botched changes to sysctl code.
    RTC: rtc-cmos.c: Fix warning on MIPS
    MIPS: Cleanup random differences beween lmo and Linus' kernel.
    MIPS: No longer hardwire CONFIG_EMBEDDED to y
    MIPS: Fix and enhance built-in kernel command line
    MIPS: eXcite: Remove platform.
    MIPS: Loongson: Cleanups of serial port support
    MIPS: Lemote 2F: Suspend CS5536 MFGPT Timer
    MIPS: Excite: move iodev_remove to .devexit.text
    MIPS: Lasat: Convert to proc_fops / seq_file
    MIPS: Cleanup signal code initialization
    MIPS: Modularize COP2 handling
    MIPS: Move EARLY_PRINTK to Kconfig.debug
    MIPS: Yeeloong 2F: Cleanup reset logic using the new ec_write function
    MIPS: Yeeloong 2F: Add LID open event as the wakeup event
    MIPS: Yeeloong 2F: Add basic EC operations
    MIPS: Move several variables from .bss to .init.data
    MIPS: Tracing: Make function graph tracer work with -mmcount-ra-address
    MIPS: Tracing: Reserve $12(t0) for mcount-ra-address of gcc 4.5
    MIPS: Tracing: Make ftrace for MIPS work without -fno-omit-frame-pointer
    ...

    Linus Torvalds
     
  • RTC core won't allow wakeup alarms to be set if RTC devices' parent (i.e.
    i2c_client or spi_device) isn't wakeup capable.

    For I2C devices there is I2C_CLIENT_WAKE flag exists that we can pass via
    board info, and if set, I2C core will initialize wakeup capability. For
    SPI devices there is no such flag at all.

    I believe that it's not platform code responsibility to allow or disallow
    wakeups, instead, drivers themselves should set the capability if a device
    can trigger wakeups.

    That's what drivers/base/power/sysfs.c says:

    * It is the responsibility of device drivers to enable (or disable)
    * wakeup signaling as part of changing device power states, respecting
    * the policy choices provided through the driver model.

    I2C and SPI RTC devices send wakeup events via interrupt lines, so we
    should set the wakeup capability if IRQ is routed.

    Ideally we should also check irq for wakeup capability before setting
    device's capability, i.e.

    if (can_irq_wake(irq))
    device_set_wakeup_capable(&client->dev, 1);

    But there is no can_irq_wake() call exist, and it is not that trivial to
    implement it for all interrupts controllers and complex/cascaded setups.

    drivers/base/power/sysfs.c also covers these cases:

    * Devices may not be able to generate wakeup events from all power
    * states. Also, the events may be ignored in some configurations;
    * for example, they might need help from other devices that aren't
    * active

    So there is no guarantee that wakeup will actually work, and so I think
    there is no point in being pedantic wrt checking IRQ wakeup capability.

    Signed-off-by: Anton Vorontsov
    Cc: David Brownell
    Cc: Ben Dooks
    Cc: Jean Delvare
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Anton Vorontsov
     

17 Dec, 2009

1 commit

  • This patch fixes the following warning with RTC_LIB on MIPS:

    drivers/rtc/rtc-cmos.c:697:2: warning: #warning Assuming 128 bytes of
    RTC+NVRAM address space, not 64 bytes.

    Signed-off-by: Wu Zhangjin
    Cc: Arnaud Patard
    Cc: linux-mips@linux-mips.org
    Cc: rtc-linux@googlegroups.com
    Cc: Paul Gortmaker
    Cc: Alessandro Zummo
    Patchwork: http://patchwork.linux-mips.org/patch/570/
    Acked-by: Alessandro Zummo
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     

16 Dec, 2009

21 commits

  • Signed-off-by: Wan ZongShun
    Cc: Alessandro Zummo
    Cc: Hu Ruihuan
    Cc: Russell King
    Cc: "jack wang"
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Wan ZongShun
     
  • All callsites of x1205_set_datetime() want the date to be set as well, so
    remove the flag parameter and set it unconditionally.

    Signed-off-by: Johannes Weiner
    Cc: Alessandro Zummo
    Cc: Paul Gortmaker
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Johannes Weiner
     
  • Signed-off-by: Yoichi Yuasa
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Yoichi Yuasa
     
  • It's possible to have RTC irq shared with other device (e.g.
    mpc8349e-mitx board shares ds1339 irq with phy one). Handle this in
    driver.

    Signed-off-by: Dmitry Eremin-Solenikov
    Signed-off-by: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dmitry Eremin-Solenikov
     
  • This switches __raw_[read|write]l() for plain [read|write]l in the PL031
    RTC driver. The sister driver for PL030 use the simple accessors as most
    PrimeCell drivers.

    Signed-off-by: Linus Walleij
    Signed-off-by: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Linus Walleij
     
  • This patch adds basic support for Texas Instruments BQ32000 I2C RTC. Only
    time reading/writing is implemented. Advanced features, such as trickle
    charger and crystal calibration are not supported.

    Signed-off-by: Piotr Ziecik
    Signed-off-by: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Piotr Ziecik
     
  • The rtc-omap driver currently assumes that the rtc's registers are at a
    fixed address and already mapped into virtual memory space. Remove those
    assumptions so the same driver can be used for similar devices that reside
    at different physical addresses (e.g., TI's DA8xx/OMAP-L13x SoC's).

    Also allow the possibility for the timer and alarm interrupts to use the
    same IRQ.

    Signed-off-by: Mark A. Greer
    Acked-by: David Brownell
    Acked-by: Kevin Hilman
    Acked-by: Tony Lindgren
    Signed-off-by: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mark A. Greer
     
  • This driver provides support for the RTC part integrated into the
    Freescale MC13783 PMIC and bases on patch created earlier by Sascha
    Hauer.

    Signed-off-by: Sascha Hauer
    Signed-off-by: Uwe Kleine-König
    Acked-by: Valentin Longchamp
    Cc: Paul Gortmaker
    Signed-off-by: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Uwe Kleine-König
     
  • Convert WM8350 RTC driver to dev_pm_ops

    Signed-off-by: Mark Brown
    Signed-off-by: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mark Brown
     
  • This patch adds the Alarm support, this mode enabled when adding
    IORESOURCE_IRQ to the platform device resources.

    The patch also enables the wakeup mode, so the wakealarm sysfs file (under
    /sys/class/rtc/rtcX/) can be used to configure the alarm clock.

    Signed-off-by: Saeed Bishara
    Signed-off-by: Nicolas Pitre
    Signed-off-by: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Saeed Bishara
     
  • Add setting and clearing of the "pending" flag of the RTC alarm. The
    semantics follow the UEFI specification 2.2 available at
    http://www.uefi.org/specs/, i.e., the "pending" flag is cleared by
    disabling the alarm, but not by any other condition (such as the passing
    of time, a successful wakeup, or setting of a new alarm.)

    Signed-off-by: Werner Almesberger
    Signed-off-by: Paul Fertser
    Cc: Alessandro Zummo
    Cc: Paul Gortmaker
    Cc: Balaji Rao
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Werner Almesberger
     
  • The to_platform_device macro itself uses container_of macro. Nested use
    of container_of macro causes following sparse warnings:

    rtc-ds1553.c:259:3: warning: symbol '__mptr' shadows an earlier one
    rtc-ds1553.c:259:3: originally declared here

    Signed-off-by: Atsushi Nemoto
    Cc: Alessandro Zummo
    Cc: David Brownell
    Cc: Andrew Sharp
    Cc: Thomas Hommel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Atsushi Nemoto
     
  • - Call dev_set_drvdata before rtc device creation.

    - Use its own spinlock instead of rtc->irq_lock. Because pdata->rtc
    must be initialized to use the irq_lock (pdata->rtc->irq_lock). There
    is a small window which rtc methods can be called before pdata->rtc is
    initialized.

    And there is no need use the irq_lock to protect hardware registers.
    The driver's own spinlock shoule be enough.

    - Check pdata->rtc before calling rtc_update_irq.

    - Use alarm_irq_enable and remove ioctl routine.

    - Use devres APIs and simplify error/remove path.

    These fixes are ported from ds1553 driver and just compile-tested only.

    Signed-off-by: Atsushi Nemoto
    Cc: Alessandro Zummo
    Cc: Thomas Hommel
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Atsushi Nemoto
     
  • * Call dev_set_drvdata before rtc device creation
    * Use devres APIs and simplify error/remove path

    Signed-off-by: Atsushi Nemoto
    Acked-by: Alessandro Zummo
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Atsushi Nemoto
     
  • * Call dev_set_drvdata before rtc device creation
    * Use its own spinlock instead of rtc->irq_lock
    * Check pdata->rtc before calling rtc_update_irq
    * Use {alarm,update}_irq_enable and remove ioctl routine
    * Use devres APIs and simplify error/remove path

    Signed-off-by: Atsushi Nemoto
    Acked-by: Alessandro Zummo
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Atsushi Nemoto
     
  • * Use its own spinlock instead of rtc->irq_lock
    * Check pdata->rtc before calling rtc_update_irq
    * Disable interrupt after rtc_device_unregister

    Signed-off-by: Atsushi Nemoto
    Acked-by: Alessandro Zummo
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Atsushi Nemoto
     
  • - Call dev_set_drvdata before rtc device creation.

    - Use its own spinlock instead of rtc->irq_lock. Because pdata->rtc
    must be initialized to use the irq_lock (pdata->rtc->irq_lock). There
    is a small window which rtc methods can be called before pdata->rtc is
    initialized.

    And there is no need use the irq_lock to protect hardware registers.
    The driver's own spinlock shoule be enough.

    - Check pdata->rtc before calling rtc_update_irq.

    - Use {alarm,update}_irq_enable and remove ioctl routine.

    - Use devres APIs and simplify error/remove path.

    These fixes are ported from ds1553 driver and just compile-tested only.

    Signed-off-by: Atsushi Nemoto
    Cc: Andrew Sharp
    Cc: Thomas Hommel
    Cc: David Brownell
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Atsushi Nemoto
     
  • Drop ioctl function that handles RTC_AIE/RTC_UIE, and use instead the
    rtc subsystem API (alarm_irq_enable/update_irq_enable callbacks).

    Signed-off-by: Herton Ronaldo Krzesinski
    Cc: Alessandro Zummo
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Herton Ronaldo Krzesinski
     
  • Herton Ronaldo Krzesinski recently raised up, and fixed, an issue with the
    rtc_cmos driver, which was referring to an inconsistent driver data.

    This patch ensures that driver data registration happens before
    rtc_device_register().

    Signed-off-by: Alessandro Zummo
    Acked-by: Thomas Hommel
    Acked-by: Hans-Christian Egtvedt
    Acked-by: Paul Mundt
    Cc: David S. Miller
    Cc: Thomas Bogendoerfer
    Cc: Andrew Sharp
    Cc: Atsushi Nemoto
    Cc: Alexander Bigga
    Cc: Thomas Bogendoerfer
    Cc: Mark Zhan
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alessandro Zummo
     
  • I noticed that rtc wont generate interrupts after a resume from disk.
    Here hpet rtc emulation is used.

    Problem is that rtc hpet comparator, isn't reinitialized after resume.
    Easiest way to solve this, is always mask all hpet interrupts on suspend
    This is triggered, when suspending with alarm set.

    Otherwise, hpet driver will think it doesn't need to reinitialize
    the rtc comparator, thus rtc interrupts won't work.

    This emulation isn't need for wakealarm.

    Signed-off-by: Maxim Levitsky
    Cc: David Brownell
    Cc: "H. Peter Anvin"
    Cc: Thomas Gleixner
    Cc: Ingo Molnar
    Cc: "Rafael J. Wysocki"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Maxim Levitsky
     
  • Signed-off-by: Alexey Dobriyan
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan
     

14 Dec, 2009

7 commits

  • This patch adds support for RTC in phoenix TWL6030.
    Register offset addresses have changed in TWL6030
    rtc-twl.c will hence forth support all twl RTC (4030, 5030, 6030 ..)

    Signed-off-by: Balaji T K
    Signed-off-by: Santosh Shilimkar
    Reviewed-by: Tony Lindgren
    Reviewed-by: Kevin Hilman
    Signed-off-by: Samuel Ortiz

    Balaji T K
     
  • This patch renames all twl4030_ functions to twl_ so that RTC driver can be
    shared between Triton and Phoenix.

    Signed-off-by: Balaji T K
    Signed-off-by: Nayak Rajendra
    Signed-off-by: Santosh Shilimkar
    Acked-by: Kevin Hilman
    Signed-off-by: Samuel Ortiz

    Balaji T K
     
  • This patch renames function names like twl4030_i2c_write_u8,
    twl4030_i2c_read_u8 to twl_i2c_write_u8, twl_i2c_read_u8
    and also common variable in twl-core.c

    Signed-off-by: Rajendra Nayak
    Signed-off-by: Balaji T K
    Signed-off-by: Santosh Shilimkar
    Acked-by: Kevin Hilman
    Signed-off-by: Samuel Ortiz

    Balaji T K
     
  • The upcoming TWL6030 is companion chip for OMAP4 like the current TWL4030
    for OMAP3. The common modules like RTC, Regulator creates opportunity
    to re-use the most of the code from twl4030.

    This patch renames few common drivers twl4030* files to twl* to enable
    the code re-use.

    Signed-off-by: Rajendra Nayak
    Signed-off-by: Balaji T K
    Signed-off-by: Santosh Shilimkar
    Acked-by: Kevin Hilman
    Signed-off-by: Samuel Ortiz

    Santosh Shilimkar
     
  • Bring the WM8350 IRQ API more in line with the generic IRQ API by
    masking and unmasking interrupts as they are requested and freed.
    This is mostly just a case of deleting the mask and unmask calls
    from the individual drivers.

    The RTC driver is changed to mask the periodic IRQ after requesting
    it rather than only unmasking the alarm IRQ. If the periodic IRQ
    fires in the period where it is reqested then there will be a
    spurious notification but there should be no serious consequences
    from this.

    The CODEC drive is changed to explicitly disable headphone jack
    detection prior to requesting the IRQs. This will avoid the IRQ
    firing with no jack set up.

    Signed-off-by: Mark Brown
    Signed-off-by: Samuel Ortiz

    Mark Brown
     
  • This is done as simple code transformation, the semantics of the
    IRQ API provided by the core are are still very different to those
    of genirq (mainly with regard to masking).

    Signed-off-by: Mark Brown
    Signed-off-by: Samuel Ortiz

    Mark Brown
     
  • Since platform_device_add_data copies the passed data, the allocated
    subdev_pdata is never freed. A simple fix would be to either free subdev_pdata
    or put it onto the stack. But since the pcf50633 child devices can rely on
    beeing children of the pcf50633 core device it's much more elegant to get access
    to pcf50633 core structure through that link. This allows to get completly rid
    of pcf5033_subdev_pdata.

    Signed-off-by: Lars-Peter Clausen
    Signed-off-by: Paul Fertser
    Signed-off-by: Samuel Ortiz

    Lars-Peter Clausen
     

10 Dec, 2009

2 commits

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (42 commits)
    tree-wide: fix misspelling of "definition" in comments
    reiserfs: fix misspelling of "journaled"
    doc: Fix a typo in slub.txt.
    inotify: remove superfluous return code check
    hdlc: spelling fix in find_pvc() comment
    doc: fix regulator docs cut-and-pasteism
    mtd: Fix comment in Kconfig
    doc: Fix IRQ chip docs
    tree-wide: fix assorted typos all over the place
    drivers/ata/libata-sff.c: comment spelling fixes
    fix typos/grammos in Documentation/edac.txt
    sysctl: add missing comments
    fs/debugfs/inode.c: fix comment typos
    sgivwfb: Make use of ARRAY_SIZE.
    sky2: fix sky2_link_down copy/paste comment error
    tree-wide: fix typos "couter" -> "counter"
    tree-wide: fix typos "offest" -> "offset"
    fix kerneldoc for set_irq_msi()
    spidev: fix double "of of" in comment
    comment typo fix: sybsystem -> subsystem
    ...

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6: (137 commits)
    sh: include empty zero page in romImage
    sh: Make associative cache writes fatal on all SH-4A parts.
    sh: Drop associative writes for SH-4 cache flushes.
    sh: Partial revert of copy/clear_user_highpage() optimizations.
    sh: Add default uImage rule for se7724, ap325rxa, and migor.
    sh: allow runtime pm without suspend/resume callbacks
    sh: mach-ecovec24: Remove un-defined settings for VPU
    sh: mach-ecovec24: LCDC drive ability become high
    sh: fix sh7724 VEU3F resource size
    serial: sh-sci: Fix too early port disabling.
    sh: pfc: pr_info() -> pr_debug() cleanups.
    sh: pfc: Convert from ctrl_xxx() to __raw_xxx() I/O routines.
    sh: Improve kfr2r09 serial port setup code
    sh: Break out SuperH PFC code
    sh: Move KEYSC header file
    sh: convert /proc/cpu/aligmnent, /proc/cpu/kernel_alignment to seq_file
    sh: Add CPG save/restore code for sh7724 R-standby
    sh: Add SDHI power control support to Ecovec
    mfd: Add power control platform data to SDHI driver
    sh: mach-ecovec24: modify address map
    ...

    Linus Torvalds
     

09 Dec, 2009

1 commit

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k:
    m68k: parport_mfc3 - Not makes it a bool before the comparison.
    m68k: don't export static inline functions
    fbdev: atafb - add palette register check
    m68k: Remove the BKL from sys_execve
    m68k: Cleanup linker scripts using new linker script macros.
    m68k: Make thread_info.h usable from assembly.
    m68knommu: define arch_has_single_step() and friends
    m68k: ptrace fixes
    m68k: use generic code for ptrace requests
    rtc: Add an RTC driver for the Ricoh RP5C01
    rtc: Add an RTC driver for the Oki MSM6242

    Linus Torvalds
     

08 Dec, 2009

1 commit


07 Dec, 2009

1 commit


05 Dec, 2009

2 commits


04 Dec, 2009

1 commit

  • That is "success", "unknown", "through", "performance", "[re|un]mapping"
    , "access", "default", "reasonable", "[con]currently", "temperature"
    , "channel", "[un]used", "application", "example","hierarchy", "therefore"
    , "[over|under]flow", "contiguous", "threshold", "enough" and others.

    Signed-off-by: André Goddard Rosa
    Signed-off-by: Jiri Kosina

    André Goddard Rosa