2015-10-21 16:23 GMT+02:00 Peter Korsgaard <pe...@korsgaard.com>:
>>>>>> "Bartosz" == Bartosz Golaszewski <bgolaszew...@baylibre.com> writes:
>
> >> As the serial number is available on a separate i2c address, wouldn't
> >> it be s
2015-10-21 13:03 GMT+02:00 Peter Korsgaard <pe...@korsgaard.com>:
>>>>>> "Bartosz" == Bartosz Golaszewski <bgolaszew...@baylibre.com> writes:
>
> > Chips from the at24cs EEPROM series have an additional read-only memory
> area
> > c
Move the macro definitions above the struct definitions and add some
tabs for better readability.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
drivers/misc/eeprom/at24.c | 16
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/misc/
The at24cs series EEPROM chips have an additional read-only memory area,
that is visible on a different i2c slave address. Tie it up with a dummy
device.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
drivers/misc/eeprom/at24.c | 30 ++
The at24 driver is now capable of reading the serial number from at24cs
EEPROM chips. Export the serial number through sysfs.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
drivers/misc/eeprom/at24.c | 44
1 file chang
attribute.
While we're at it: some of the patches contain readability tweaks and code
organization fixes.
Tested with at24cs64 and at24cs02 chips (for both 16 and 8 bit address
pointers).
v2:
- protect the serial number read with a mutex
v1: https://lkml.org/lkml/2015/10/20/162
Bartosz Golaszewski
In preparation for supporting the at24cs EEPROM series add a new flag to
platform data. When set, it should tell the driver that the chip has an
additional read-only memory area that holds a factory pre-programmed serial
number.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.
-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
drivers/misc/eeprom/at24.c | 71 ++
1 file changed, 71 insertions(+)
diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c
index 3a75a52..442aac7 100644
--- a/drivers/misc/eeprom/at24.c
The infrastructure for reading of the factory-programmed serial number
for at24cs EEPROM series is now in place. Add the chips that are actually
equipped with the serial number memory area to the list of supported
devices.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.
Use BIT() macro to replace the 0xXX constants in platform_data flags
definitions.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
include/linux/platform_data/at24.h | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/linux/platform_data/
Improve the readability of the device table by separating columns with
tabs.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
drivers/misc/eeprom/at24.c | 28 ++--
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/drivers/misc/eeprom/
It seems as if the second check for I2C_FUNC_I2C functionality had been
introduced accidentally during a merge. Tt's reduntant, so remove it.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
drivers/misc/eeprom/at24.c | 3 ---
1 file changed, 3 deletions(-)
diff
The at24 driver is now capable of reading the serial number from at24cs
EEPROM chips. Export the serial number through sysfs.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
drivers/misc/eeprom/at24.c | 44
1 file chang
Improve the readability of the device table by separating columns with
tabs.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
drivers/misc/eeprom/at24.c | 28 ++--
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/drivers/misc/eeprom/
Move the macro definitions above the struct definitions and add some
tabs for better readability.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
drivers/misc/eeprom/at24.c | 16
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/misc/
The infrastructure for reading of the factory-programmed serial number
for at24cs EEPROM series is now in place. Add the chips that are actually
equipped with the serial number memory area to the list of supported
devices.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.
It seems as if the second check for I2C_FUNC_I2C functionality had been
introduced accidentally during a merge. Tt's reduntant, so remove it.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
drivers/misc/eeprom/at24.c | 3 ---
1 file changed, 3 deletions(-)
diff
Use BIT() macro to replace the 0xXX constants in platform_data flags
definitions.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
include/linux/platform_data/at24.h | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/linux/platform_data/
attribute.
While we're at it: some of the patches contain readability tweaks and code
organization fixes.
Tested with at24cs64 and at24cs02 chips (for both 16 and 8 bit address
pointers).
Bartosz Golaszewski (9):
eeprom: at24: platform_data: use BIT() macro
eeprom: at24: new flag in platform_data
The at24cs series EEPROM chips have an additional read-only memory area,
that is visible on a different i2c slave address. Tie it up with a dummy
device.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
drivers/misc/eeprom/at24.c | 30 ++
-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
drivers/misc/eeprom/at24.c | 65 ++
1 file changed, 65 insertions(+)
diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c
index 3a75a52..4d4a793 100644
--- a/drivers/misc/eeprom/at24.c
In preparation for supporting the at24cs EEPROM series add a new flag to
platform data. When set, it should tell the driver that the chip has an
additional read-only memory area that holds a factory pre-programmed serial
number.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.
It seems as if the second check for I2C_FUNC_I2C functionality had been
introduced accidentally during a merge. Tt's reduntant, so remove it.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
drivers/misc/eeprom/at24.c | 3 ---
1 file changed, 3 deletions(-)
diff
In preparation for supporting the at24cs EEPROM series add a new flag to
platform data. When set, it should tell the driver that the chip has an
additional read-only memory area that holds a factory pre-programmed serial
number.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.
Improve the readability of the device table by separating columns with
tabs.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
drivers/misc/eeprom/at24.c | 28 ++--
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/drivers/misc/eeprom/
Move the macro definitions above the struct definitions and add some
tabs for better readability.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
drivers/misc/eeprom/at24.c | 16
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/misc/
The infrastructure for reading of the factory-programmed serial number
for at24cs EEPROM series is now in place. Add the chips that are actually
equipped with the serial number memory area to the list of supported
devices.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.
attribute.
While we're at it: some of the patches contain readability tweaks and code
organization fixes.
Tested with at24cs64 and at24cs02 chips (for both 16 and 8 bit address
pointers).
Bartosz Golaszewski (9):
eeprom: at24: platform_data: use BIT() macro
eeprom: at24: new flag in platform_data
Use BIT() macro to replace the 0xXX constants in platform_data flags
definitions.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
include/linux/platform_data/at24.h | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/linux/platform_data/
The infrastructure for reading of the factory-programmed serial number
for at24cs EEPROM series is now in place. Add the chips that are actually
equipped with the serial number memory area to the list of supported
devices.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.
It seems as if the second check for I2C_FUNC_I2C functionality had been
introduced accidentally during a merge. Tt's reduntant, so remove it.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
drivers/misc/eeprom/at24.c | 3 ---
1 file changed, 3 deletions(-)
diff
Move the macro definitions above the struct definitions and add some
tabs for better readability.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
drivers/misc/eeprom/at24.c | 16
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/misc/
The at24 driver is now capable of reading the serial number from at24cs
EEPROM chips. Export the serial number through sysfs.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
drivers/misc/eeprom/at24.c | 44
1 file chang
The at24cs series EEPROM chips have an additional read-only memory area,
that is visible on a different i2c slave address. Tie it up with a dummy
device.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
drivers/misc/eeprom/at24.c | 30 ++
-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
drivers/misc/eeprom/at24.c | 71 ++
1 file changed, 71 insertions(+)
diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c
index 08cc327..6182f47 100644
--- a/drivers/misc/eeprom/at24.c
Improve the readability of the device table by separating columns with
tabs.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
drivers/misc/eeprom/at24.c | 28 ++--
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/drivers/misc/eeprom/
/20/162
Bartosz Golaszewski (9):
eeprom: at24: platform_data: use BIT() macro
eeprom: at24: new flag in platform_data
eeprom: at24: tie up an additional address for at24cs series
eeprom: at24: support reading of the serial number
eeprom: at24: export the serial number through sysfs
eeprom
In preparation for supporting the at24cs EEPROM series add a new flag to
platform data. When set, it should tell the driver that the chip has an
additional read-only memory area that holds a factory pre-programmed serial
number.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.
2015-09-17 16:55 GMT+02:00 Pantelis Antoniou <pantelis.anton...@konsulko.com>:
> Hi Bartosz,
>
>> On Sep 17, 2015, at 17:42 , Bartosz Golaszewski <bgolaszew...@baylibre.com>
>> wrote:
>>
>> 2015-09-16 18:11 GMT+02:00 Pantelis Antoniou
>> <pantel
The infrastructure for reading of the factory-programmed serial number
for at24cs EEPROM series is now in place. Add the chips that are actually
equipped with the serial number memory area to the list of supported
devices.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.
Improve the readability of the device table by separating columns with
tabs.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
drivers/misc/eeprom/at24.c | 28 ++--
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/drivers/misc/eeprom/
The at24 driver is now capable of reading the serial number from at24cs
EEPROM chips. Export the serial number through sysfs.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
drivers/misc/eeprom/at24.c | 44
1 file chang
Move the macro definitions above the struct definitions and add some
tabs for better readability.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
drivers/misc/eeprom/at24.c | 16
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/misc/
It seems as if the second check for I2C_FUNC_I2C functionality had been
introduced accidentally during a merge. Tt's reduntant, so remove it.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
drivers/misc/eeprom/at24.c | 3 ---
1 file changed, 3 deletions(-)
diff
The at24cs series EEPROM chips have an additional read-only memory area,
that is visible on a different i2c slave address. Tie it up with a dummy
device.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
drivers/misc/eeprom/at24.c | 30 ++
Use BIT() macro to replace the 0xXX constants in platform_data flags
definitions.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
include/linux/platform_data/at24.h | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/linux/platform_data/
In preparation for supporting the at24cs EEPROM series add a new flag to
platform data. When set, it should tell the driver that the chip has an
additional read-only memory area that holds a factory pre-programmed serial
number.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.
2015-12-11 13:08 GMT+01:00 Wolfram Sang <w...@the-dreams.de>:
> On Wed, Dec 02, 2015 at 11:25:17AM +0100, Bartosz Golaszewski wrote:
>> Chips from the at24cs EEPROM series have an additional read-only memory area
>> containing a factory pre-programmed serial numbe
2016-01-02 21:50 GMT+01:00 Wolfram Sang <w...@the-dreams.de>:
> On Fri, Dec 11, 2015 at 02:55:10PM +0100, Bartosz Golaszewski wrote:
>> 2015-12-11 13:08 GMT+01:00 Wolfram Sang <w...@the-dreams.de>:
>> > On Wed, Dec 02, 2015 at 11:25:17AM +0100, Bartosz Golas
2016-01-05 19:58 GMT+01:00 Wolfram Sang <w...@the-dreams.de>:
> On Mon, Jan 04, 2016 at 03:01:54PM +0100, Bartosz Golaszewski wrote:
>> 2016-01-02 21:50 GMT+01:00 Wolfram Sang <w...@the-dreams.de>:
>> > On Fri, Dec 11, 2015 at 02:55:10PM +0100, Bartosz Golaszewski wro
2015-12-11 14:55 GMT+01:00 Bartosz Golaszewski <bgolaszew...@baylibre.com>:
> 2015-12-11 13:08 GMT+01:00 Wolfram Sang <w...@the-dreams.de>:
>> On Wed, Dec 02, 2015 at 11:25:17AM +0100, Bartosz Golaszewski wrote:
>>> Chips from the at24cs EEPROM series have an ad
It seems as if the second check for I2C_FUNC_I2C functionality had been
introduced accidentally during a merge. Tt's reduntant, so remove it.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
drivers/misc/eeprom/at24.c | 3 ---
1 file changed, 3 deletions(-)
diff
The infrastructure for reading of the factory-programmed serial number
for at24cs EEPROM series is now in place. Add the chips that are actually
equipped with the serial number memory area to the list of supported
devices.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.
Move the macro definitions above the struct definitions and add some
tabs for better readability.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
drivers/misc/eeprom/at24.c | 16
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/misc/
Use BIT() macro to replace the 0xXX constants in platform_data flags
definitions.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
include/linux/platform_data/at24.h | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/linux/platform_data/
Improve the readability of the device table by separating columns with
tabs.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
drivers/misc/eeprom/at24.c | 28 ++--
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/drivers/misc/eeprom/
The at24 driver is now capable of reading the serial number from at24cs
EEPROM chips. Export the serial number through sysfs.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
drivers/misc/eeprom/at24.c | 44
1 file chang
/20/162
Bartosz Golaszewski (9):
eeprom: at24: platform_data: use BIT() macro
eeprom: at24: new flag in platform_data
eeprom: at24: tie up an additional address for at24cs series
eeprom: at24: support reading of the serial number
eeprom: at24: export the serial number through sysfs
-by: Bartosz Golaszewski <bgolaszew...@baylibre.com>
---
drivers/misc/eeprom/at24.c | 71 ++
1 file changed, 71 insertions(+)
diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c
index 08cc327..6182f47 100644
--- a/drivers/misc/eeprom/at24.c
In preparation for supporting the at24cs EEPROM series add a new flag to
platform data. When set, it should tell the driver that the chip has an
additional read-only memory area that holds a factory pre-programmed serial
number.
Signed-off-by: Bartosz Golaszewski <bgolaszew...@baylibre.
60 matches
Mail list logo