06 Jan, 2012

1 commit

  • This patch converts the drivers in drivers/watchdog/* to use the
    module_platform_driver() macro which makes the code smaller and a bit
    simpler.

    Signed-off-by: Axel Lin
    Cc: Nicolas Thill
    Cc: Florian Fainelli
    Cc: "David S. Miller"
    Cc: Paul Cercueil
    Cc: Marc Zyngier
    Cc: Wan ZongShun
    Cc: Alejandro Cabrera
    Cc: "George G. Davis"
    Cc: Sylver Bruneau
    Cc: Vitaly Wool
    Cc: Mika Westerberg
    Cc: Timo Kokkonen
    Signed-off-by: Wim Van Sebroeck

    Axel Lin
     

22 Jul, 2011

1 commit


28 Jun, 2011

3 commits

  • Fix section mismatch and remove unused variable 'tmp'.

    Signed-off-by: Florian Fainelli
    Signed-off-by: Wim Van Sebroeck

    Florian Fainelli
     
  • Commit e391be76 (MIPS: Alchemy: Clean up GPIO registers and accessors)
    changed the way the GPIO was toggled. Prior to this patch, we would
    always actively drive the GPIO output to either 0 or 1, this patch
    drove the GPIO active to 0, and put the GPIO in tristate to drive it
    to 1, unfortunately this does not work, revert back to active driving.

    Using a signed variable (gstate) to hold the gpio state and using a bit-
    wise operation on it also resulted in toggling value from 1 to -2 since
    the variable is signed. This value was then passed on to gpio_direction_
    output, which always perform a if (value) ... to set the value to the
    gpio, so we were always writing a 1 to this GPIO instead of 1 -> 0 -> 1 ...

    Signed-off-by: Florian Fainelli
    Signed-off-by: Wim Van Sebroeck
    Cc: stable

    Florian Fainelli
     
  • Otherwise, the gpiolib autorequest feature will produce a WARN_ON():

    WARNING: at drivers/gpio/gpiolib.c:101 0x8020ec6c()
    autorequest GPIO-215
    [...]

    Signed-off-by: Florian Fainelli
    Signed-off-by: Wim Van Sebroeck
    Cc: stable

    Florian Fainelli
     

19 May, 2011

1 commit

  • remove au_readl/au_writel, remove the predefined GPIO1/2 KSEG1 register
    addresses and fix the fallout in all boards and drivers.

    This also fixes a bug in the mtx-1_wdt driver which was introduced by
    commit 6ea8115bb6f359df4f45152f2b40e1d4d1891392
    ("Convert mtx1 wdt to be a platform device and use generic GPIO API")
    before this patch mtx-1_wdt only modified GPIO215, the patch then
    used the gpio resource information as bit index into the GPIO2 register
    but the conversion to the GPIO API didn't realize that.
    With this patch the drivers original behaviour is restored and GPIO15
    is left alone.

    Signed-off-by: Manuel Lauss
    Cc: Florian Fainelli
    To: Linux-MIPS
    Cc: linux-watchdog@vger.kernel.org
    Cc: Wim Van Sebroeck
    Patchwork: https://patchwork.linux-mips.org/patch/2381/
    Signed-off-by: Ralf Baechle <ralf@linux-mips.org

    Manuel Lauss
     

16 Mar, 2011

1 commit


18 Jun, 2009

1 commit


25 Mar, 2009

1 commit


21 Nov, 2008

1 commit


07 Aug, 2008

1 commit


06 Aug, 2008

1 commit

  • This brings the watchdog drivers into line with coding style.
    This patch takes cares of the indentation as described in chapter 1.
    Main changes:
    * Re-structure the ioctl switch call for all drivers as follows:
    switch (cmd) {
    case WDIOC_GETSUPPORT:
    case WDIOC_GETSTATUS:
    case WDIOC_GETBOOTSTATUS:
    case WDIOC_GETTEMP:
    case WDIOC_SETOPTIONS:
    case WDIOC_KEEPALIVE:
    case WDIOC_SETTIMEOUT:
    case WDIOC_GETTIMEOUT:
    case WDIOC_GETTIMELEFT:
    default:
    }

    This to make the migration from the drivers to the uniform watchdog
    device driver easier in the future.

    Signed-off-by: Wim Van Sebroeck

    Wim Van Sebroeck
     

14 Jun, 2008

1 commit


11 Apr, 2008

1 commit

  • Since 43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform modalias is
    prefixed with "platform:". Add MODULE_ALIAS() to the hotpluggable watchdog
    drivers, to re-enable auto loading.

    [dbrownell@users.sourceforge.net: more drivers; registration fixes]
    Signed-off-by: Kay Sievers
    Signed-off-by: David Brownell
    Cc: Wim Van Sebroeck
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kay Sievers
     

06 Mar, 2008

1 commit


19 Feb, 2008

1 commit


26 Jan, 2008

1 commit


18 Oct, 2007

1 commit