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 versionextracted 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
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 -
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 -
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
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
23 Nov, 2018
1 commit
-
The Linux i2c layer has functions to execute common SMBUS/I2C
transactions. The register access code here is identical to the I2C
read/write block data routines.Cc: Alessandro Zummo
Cc: Alexandre Belloni
Signed-off-by: Trent Piepho
Signed-off-by: Alexandre Belloni
28 Sep, 2018
2 commits
-
The core header file is reserved for the core, stop including it.
Also reorder includes alphabetically.
Signed-off-by: Alexandre Belloni
-
Use rtc_add_group to add the common sysfs group to avoid a possible race
condition.[Denis.Osterland@diehl.com: use to_i2c_client(dev->parent)]
Signed-off-by: Denis Osterland
Signed-off-by: Alexandre BelloniThe move of atrim, dtrim usr sysfs properties from i2c device
to rtc device require to access them via dev->parent.
This patch also aligns timestamp0.
15 Aug, 2018
3 commits
-
Add support to disable event in pull-up.
Signed-off-by: Denis Osterland
Signed-off-by: Alexandre Belloni -
Add support for "evdet" named interrupt source.
The check if i2c client irq matches evdet irq is needed
for the case that there is only one interrupt named "evdet".
In this case i2c client code handles this like an unnamed
interrupt souce and assigns the value.Signed-off-by: Denis Osterland
Reviewed-by: Michael Grzeschik
Signed-off-by: Alexandre Belloni -
We add support for the ISL1219 chip that got an integrated tamper
detection function. This patch implements the feature by adding
an additional timestamp0 file to sysfs device path.
This file contains seconds since epoch, if an event occurred,
or is empty, if none occurred.Signed-off-by: Michael Grzeschik
Signed-off-by: Denis Osterland
Signed-off-by: Alexandre Belloni
17 Mar, 2018
2 commits
-
Fix possible race condition.
It is not allowed to return with an error code after RTC is registered.Suggested-by: Alexandre Belloni
Signed-off-by: Denis Osterland
Reviewed-by: Michael Grzeschik
Signed-off-by: Alexandre Belloni -
The interrupt handler got enabled very early. If the interrupt cause is
triggering immediately before the context is fully prepared. This can
lead to undefined behaviour. Therefor we move the interrupt enable code
to the end of the probe function.Signed-off-by: Michael Grzeschik
Signed-off-by: Denis Osterland
Signed-off-by: Alexandre Belloni
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
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
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
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.cocciSigned-off-by: Fabio Estevam
Signed-off-by: Alexandre Belloni
25 Jun, 2015
1 commit
-
isl1208_i2c_set_alarm() uses deprecated rtc_tm_to_time(),
which will overflow in year 2106 on 32-bit machines.This patch solves this by:
- Replacing rtc_tm_to_time() with rtc_tm_sub()Cc: Herbert Valerio Riedel
Signed-off-by: Xunlei Pang
Signed-off-by: Alexandre Belloni
13 Nov, 2013
2 commits
-
devm_* APIs are device managed and make code simpler.
Signed-off-by: Sachin Kamat
Cc: Herbert Valerio Riedel
Cc: Jingoo Han
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
i2c_smbus_read_byte_data() returns negative errno on failure. Return the
value obtained from it directly.Signed-off-by: Sachin Kamat
Cc: Herbert Valerio Riedel
Cc: Jingoo Han
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
05 Feb, 2013
1 commit
-
Previously the alarm event was not propagated into the RTC subsystem.
By adding a call to rtc_update_irq, this fixes a timeout problem with
the hwclock utility.Signed-off-by: Jan Luebbe
Cc: Alessandro Zummo
Cc:
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
19 Nov, 2012
1 commit
-
"Whether" is misspelled in various comments across the tree; this
fixes them. No code changes.Signed-off-by: Adam Buchbinder
Signed-off-by: Jiri Kosina
06 Oct, 2012
2 commits
-
Convert the struct i2c_msg initialization to C99 format. This makes
maintaining and editing the code simpler. Also helps once other fields
like transferred are added in future.Signed-off-by: Shubhrajyoti D
Reviewed-by: Felipe Balbi
Cc: Alessandro Zummo
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
The ISL1218 chip is identical to the ISL1208, except that it has 6
additional user-storage registers. This patch does not enable access to
those additional registers, but only adds the chip name to the list.Signed-off-by: Ben Gardner
Cc: Alessandro Zummo
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
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
23 Mar, 2011
1 commit
-
Add alarm/wakeup support to rtc isl1208 driver
Signed-off-by: Ryan Mallon
Cc: Alessandro Zummo
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
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
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
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
13 Aug, 2008
1 commit
-
Signed-off-by: Alessandro Zummo
Cc: Herbert Valerio Riedel
Cc: Hartley Sweeten
Cc: David Brownell
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
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 -
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
28 Apr, 2008
1 commit
-
[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Alessandro Zummo
Cc: Herbert Valerio Riedel
Cc: David Brownell
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
28 Jan, 2008
1 commit
-
Signed-off-by: Jean Delvare
Acked-by: Alessandro Zummo
01 Oct, 2006
1 commit
-
Update RTC framework so that drivers can constify their method tables, moving
them from ".data" to ".rodata". Then update the drivers.Signed-off-by: David Brownell
Cc: Alessandro Zummo
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
15 Jul, 2006
1 commit
-
Add support for the I2C-attached Intersil ISL1208 RTC chip.
[akpm@osdl.org: cleanups, fixlets]
Signed-off-by: Herbert Valerio Riedel
Cc: Alessandro Zummo
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds