31 May, 2019

1 commit

  • Based on 1 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license as published by
    the free software foundation either version 2 of the license or at
    your option any later version

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-or-later

    has been chosen to replace the boilerplate/reference in 3029 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190527070032.746973796@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

18 Feb, 2019

3 commits

  • Add support for the RTC's NVRAM using the standard nvmem support that is
    part of the Linux RTC framework.

    This driver already has a sysfs attribute that provides access to the
    RTC's NVRAM as a single 16-bit value. Some chips have more than two
    bytes of NVRAM, so this will not work for them. It's also non-standard.

    This sysfs attribute is left in for backward compatibility, but will only
    be able to read the first two bytes of NVRAM. The nvmem interface will
    allow access to all NVRAM, e.g. eight bytes on the isl1218.

    Cc: Alessandro Zummo
    Cc: Alexandre Belloni
    Signed-off-by: Trent Piepho
    Signed-off-by: Alexandre Belloni

    Trent Piepho
     
  • Add more support in the driver for dealing with differences in is1208
    compatible chips. Put the 1208, 1209, 1218, and 1219 in the list and
    encode information about nvram size, tamper, and timestamp features.

    This adds support for the isl1209, which has a tamper detect but no
    timestamp feature.

    Cc: Alessandro Zummo
    Cc: Alexandre Belloni
    Signed-off-by: Trent Piepho
    Signed-off-by: Alexandre Belloni

    Trent Piepho
     
  • This driver has no state of its own, depending entirely on what is in
    the generic rtc device.

    Intoduce a state struct. For now it only contains a pointer to the rtc
    device struct, but future patches will add more data.

    Cc: Alessandro Zummo
    Cc: Alexandre Belloni
    Signed-off-by: Trent Piepho
    Signed-off-by: Alexandre Belloni

    Trent Piepho
     

11 Jan, 2019

1 commit

  • isl1208_i2c_get_dtr() was returning the dtr value directly, but could
    also return a negative error code. Negative trimming values, e.g. -20,
    would get interpreted as an error code, e.g. -ENOTDIR.

    This patch offsets the dtr value by 100 so it's positive and won't alias
    an error code.

    Also fix check that considered a return value of -1 to be success.

    Cc: Alessandro Zummo
    Cc: Alexandre Belloni
    Signed-off-by: Trent Piepho
    Signed-off-by: Alexandre Belloni

    Trent Piepho
     

23 Nov, 2018

1 commit


28 Sep, 2018

2 commits


15 Aug, 2018

3 commits


17 Mar, 2018

2 commits


01 Mar, 2018

1 commit

  • After successful
    sr = isl1208_i2c_set_regs(client, 0, regs, ISL1208_RTC_SECTION_LEN);
    sr will be 0.
    As a result
    sr = i2c_smbus_write_byte_data(client, ISL1208_REG_SR,
    sr & ~ISL1208_REG_SR_WRTC);
    is equal to
    sr = i2c_smbus_write_byte_data(client, ISL1208_REG_SR, 0);
    which clears all flags in SR.

    Add an additional read of SR, to have value of SR in sr again.

    Signed-off-by: Denis Osterland
    Signed-off-by: Michael Grzeschik
    Signed-off-by: Alexandre Belloni

    Denis Osterland
     

09 Mar, 2017

1 commit

  • The driver doesn't have a struct of_device_id table but supported devices
    are registered via Device Trees. This is working on the assumption that a
    I2C device registered via OF will always match a legacy I2C device ID and
    that the MODALIAS reported will always be of the form i2c:.

    But this could change in the future so the correct approach is to have an
    OF device ID table if the devices are registered via OF.

    Signed-off-by: Javier Martinez Canillas
    Signed-off-by: Alexandre Belloni

    Javier Martinez Canillas
     

20 May, 2016

1 commit

  • Many drivers are defining a DRV_VERSION. This is often only used for
    MODULE_VERSION and sometimes to print an info message at probe time. This
    is kind of pointless as they are all versionned with the kernel anyway.
    Also the core will print a message when a new rtc is found.

    Signed-off-by: Alexandre Belloni

    Alexandre Belloni
     

08 Nov, 2015

1 commit

  • Since commit 1c6c69525b40eb76de8adf039409722015927dc3 ("genirq: Reject
    bogus threaded irq requests") threaded IRQs without a primary handler
    need to be requested with IRQF_ONESHOT, otherwise the request will fail.

    So pass the IRQF_ONESHOT flag in this case.

    The semantic patch that makes this change is available
    in scripts/coccinelle/misc/irqf_oneshot.cocci

    Signed-off-by: Fabio Estevam
    Signed-off-by: Alexandre Belloni

    Fabio Estevam
     

25 Jun, 2015

1 commit


13 Nov, 2013

2 commits


05 Feb, 2013

1 commit


19 Nov, 2012

1 commit


06 Oct, 2012

2 commits


24 Mar, 2012

1 commit

  • Factor out some boilerplate code for i2c driver registration into
    module_i2c_driver.

    Signed-off-by: Axel Lin
    Cc: Piotr Ziecik
    Cc: Alessandro Zummo
    Cc: Scott Wood
    Cc: Srikanth Srinivasan
    Cc: Mike Rapoport
    Cc: Sergey Lapin
    Cc: Roman Fietze
    Cc: Herbert Valerio Riedel
    Cc: Alexander Bigga
    Cc: Dale Farnsworth
    Cc: Gregory Hermant
    Cc: Wolfgang Grandegger
    Cc: Martyn Welch
    Cc: Byron Bradley
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Axel Lin
     

23 Mar, 2011

1 commit


25 May, 2010

1 commit

  • Instead of individually creating and removing the sysfs device attribute
    files, wrap them in an attribute_group and use
    sysfs_{create/remove}_group.

    Signed-off-by: H Hartley Sweeten
    Cc: Alessandro Zummo
    Cc: Paul Gortmaker
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    H Hartley Sweeten
     

24 Dec, 2008

1 commit

  • This patch for the rtc-isl1208 driver makes it reject invalid dates.

    Signed-off-by: Chris Elston
    [a.zummo@towertech.it: added comment explaining the check]
    Signed-off-by: Alessandro Zummo
    Cc: Hebert Valerio Riedel
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Chris Elston
     

20 Oct, 2008

1 commit

  • Change drivers/rtc/ to use the new bcd2bin/bin2bcd functions instead of
    the obsolete BCD_TO_BIN/BIN_TO_BCD/BCD2BIN/BIN2BCD macros.

    Signed-off-by: Adrian Bunk
    Acked-by: Alessandro Zummo
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     

13 Aug, 2008

1 commit


30 Apr, 2008

2 commits

  • Based on earlier work by Jon Smirl and Jochen Friedrich.

    Update most new-style i2c drivers to use standard module aliasing
    instead of the old driver_name/type driver matching scheme. I've
    left the video drivers apart (except for SoC camera drivers) as
    they're a bit more diffcult to deal with, they'll have their own
    patch later.

    Signed-off-by: Jean Delvare
    Cc: Jon Smirl
    Cc: Jochen Friedrich

    Jean Delvare
     
  • Based on earlier work by Jon Smirl and Jochen Friedrich.

    This patch allows new-style i2c chip drivers to have alias names using
    the official kernel aliasing system and MODULE_DEVICE_TABLE(). At this
    point, the old i2c driver binding scheme (driver_name/type) is still
    supported.

    Signed-off-by: Jean Delvare
    Cc: Jochen Friedrich
    Cc: Jon Smirl
    Cc: Kay Sievers

    Jean Delvare
     

28 Apr, 2008

1 commit


28 Jan, 2008

1 commit


01 Oct, 2006

1 commit


15 Jul, 2006

1 commit