RE: 4.14/4.18: Please add "eeprom: at24: Add support for address-width property"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



All,

The original author Alanx chiang has left the company. I assigned Ken to help handle the cherrypick task (4.14 and 4.18).

Regards, Andy

>-----Original Message-----
>From: Adrian Bunk [mailto:bunk@xxxxxxxxxx]
>Sent: Monday, October 22, 2018 4:39 PM
>To: stable@xxxxxxxxxxxxxxx
>Cc: Alan Chiang <alanx.chiang@xxxxxxxxx>; Yeh, Andy <andy.yeh@xxxxxxxxx>;
>Bartosz Golaszewski <brgl@xxxxxxxx>; linux-i2c@xxxxxxxxxxxxxxx
>Subject: 4.14/4.18: Please add "eeprom: at24: Add support for address-width
>property"
>
>Please cherry-pick the following commit to 4.14 and 4.18:
>
>    commit a2b3bf4846e5eed62ea6abb096af2c950961033c
>    Author: Alan Chiang <alanx.chiang@xxxxxxxxx>
>    Date:   Wed Jul 25 11:20:22 2018 +0800
>
>    eeprom: at24: Add support for address-width property
>
>    Provide a flexible way to determine the addressing bits of eeprom.
>    Pass the addressing bits to driver through address-width property.
>
>    Signed-off-by: Alan Chiang <alanx.chiang@xxxxxxxxx>
>    Signed-off-by: Andy Yeh <andy.yeh@xxxxxxxxx>
>    Signed-off-by: Bartosz Golaszewski <brgl@xxxxxxxx>
>
>
>Confirmed to work on 4.14 with the Identification Page of an ST M24M02-DR
>(256 bytes but 16 bit addressing).
>
>Cannot be cherry-picked trivially on 4.9.
>
>The corresponding documentation commit
>21d04054501fb27b56e995b54ac74e39aee79a46
>can be cherry-picked to 4.18, the backport for 4.14 is below.
>
>Thanks
>Adrian
>
>
>From 2562e333f39b8077ffb06bdf79430f10b74c11f5 Mon Sep 17 00:00:00
>2001
>From: Alan Chiang <alanx.chiang@xxxxxxxxx>
>Date: Wed, 25 Jul 2018 11:20:21 +0800
>Subject: [PATCH] dt-bindings: at24: Add address-width property
>
>Currently the only way to use a variant of a supported model with a different
>address width is to define a new compatible string and the corresponding chip
>data structure.
>
>Provide a flexible way to specify the size of the address pointer by defining a
>new property: address-width.
>
>Signed-off-by: Alan Chiang <alanx.chiang@xxxxxxxxx>
>Signed-off-by: Andy Yeh <andy.yeh@xxxxxxxxx>
>Acked-by: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx>
>Reviewed-by: Rob Herring <robh@xxxxxxxxxx>
>[Bartosz: fixed the commit message]
>Signed-off-by: Bartosz Golaszewski <brgl@xxxxxxxx> [Adrian Bunk: backported
>to 4.14]
>Signed-off-by: Adrian Bunk <bunk@xxxxxxxxxx>
>---
> Documentation/devicetree/bindings/eeprom/eeprom.txt | 2 ++
> 1 file changed, 2 insertions(+)
>
>diff --git a/Documentation/devicetree/bindings/eeprom/eeprom.txt
>b/Documentation/devicetree/bindings/eeprom/eeprom.txt
>index afc04589eadf..44bfffc43bed 100644
>--- a/Documentation/devicetree/bindings/eeprom/eeprom.txt
>+++ b/Documentation/devicetree/bindings/eeprom/eeprom.txt
>@@ -36,6 +36,8 @@ Optional properties:
>
>   - read-only: this parameterless property disables writes to the eeprom
>
>+  - address-width: number of address bits (one of 8, 16).
>+
> Example:
>
> eeprom@52 {
>--
>2.11.0





[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux