Re: [PATCH v2 7/8] mdio_bus: Change PHY's naming scheme

2016-02-03 Thread Sascha Hauer
Hi Andrey, On Wed, Feb 03, 2016 at 11:23:38AM -0800, Andrey Smirnov wrote: > On Tue, Feb 2, 2016 at 11:36 PM, Sascha Hauer wrote: > > On Sun, Jan 31, 2016 at 07:10:12PM -0800, Andrey Smirnov wrote: > >> Change the way PHY devices are named upon creation. This commit replaces > >> sequentialy numb

Re: [PATCH] docs: fix typos

2016-02-03 Thread Sascha Hauer
On Thu, Feb 04, 2016 at 08:25:24AM +0100, Ulrich Ölmann wrote: > Signed-off-by: Ulrich Ölmann > --- > Documentation/devicetree/bindings/barebox/barebox,state.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/barebox/barebox,state.rst

Re: [PATCH] ARM: i.MX25: fixup broken DryIce GPR

2016-02-03 Thread Sascha Hauer
On Wed, Feb 03, 2016 at 11:49:03AM +0100, Steffen Trumtrar wrote: > Fixup the DryIce Non-Non-Volatile-Memory GPR register. > > Signed-off-by: Steffen Trumtrar > --- > arch/arm/mach-imx/imx25.c | 26 ++ > 1 file changed, 26 insertions(+) Applied, thanks Sascha -- Peng

Re: [PATCH 4/4] ARM: i.MX ocotp: Switch to regmap support

2016-02-03 Thread Sascha Hauer
Hi Stefan, On Thu, Feb 04, 2016 at 08:38:30AM +0100, Stefan Christ wrote: > Hi Sascha, > > > + priv->map = regmap_init(dev, &imx_ocotp_regmap_bus, priv, > > &imx_ocotp_regmap_config); > > + if (IS_ERR(priv->map)) > > + return PTR_ERR(priv->map); > > + > > + ret = regmap_register_

Re: [PATCH 4/4] ARM: i.MX ocotp: Switch to regmap support

2016-02-03 Thread Stefan Christ
Hi Sascha, > + priv->map = regmap_init(dev, &imx_ocotp_regmap_bus, priv, > &imx_ocotp_regmap_config); > + if (IS_ERR(priv->map)) > + return PTR_ERR(priv->map); > + > + ret = regmap_register_cdev(priv->map, "imx-ocotp"); > +if (ret) > +return ret; >

[PATCH] docs: fix typos

2016-02-03 Thread Ulrich Ölmann
Signed-off-by: Ulrich Ölmann --- Documentation/devicetree/bindings/barebox/barebox,state.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/barebox/barebox,state.rst b/Documentation/devicetree/bindings/barebox/barebox,state.rst index d1b0627

Re: [PATCH 2/2] nvmem: Test it with fec/ocotp

2016-02-03 Thread Sascha Hauer
On Wed, Feb 03, 2016 at 07:01:03PM +, Trent Piepho wrote: > On Wed, 2016-02-03 at 17:27 +0100, Sascha Hauer wrote: > > While this generally works it reveals a shortcoming of the nvmem > > framework: There's no way to specify the layout of the cell. For example > > the MAC address stored in the

Re: [RFC 1/2] misc: Add MAC address mapper "driver"

2016-02-03 Thread Andrey Smirnov
On Wed, Feb 3, 2016 at 10:40 AM, Trent Piepho wrote: > On Tue, 2016-02-02 at 17:14 -0800, Andrey Smirnov wrote: >> On Mon, Feb 1, 2016 at 11:18 AM, Trent Piepho wrote: >> > The way imx28 works in the kernel is to just store the extension in the >> > OCOTP. The OUI is determined from the board's

Re: [RFC 1/2] misc: Add MAC address mapper "driver"

2016-02-03 Thread Trent Piepho
On Tue, 2016-02-02 at 17:14 -0800, Andrey Smirnov wrote: > On Mon, Feb 1, 2016 at 11:18 AM, Trent Piepho wrote: > > The way imx28 works in the kernel is to just store the extension in the > > OCOTP. The OUI is determined from the board's compatible property and a > > hard coded table in the kerne

Re: [PATCH v2 7/8] mdio_bus: Change PHY's naming scheme

2016-02-03 Thread Andrey Smirnov
On Tue, Feb 2, 2016 at 11:36 PM, Sascha Hauer wrote: > On Sun, Jan 31, 2016 at 07:10:12PM -0800, Andrey Smirnov wrote: >> Change the way PHY devices are named upon creation. This commit replaces >> sequentialy numbered "/dev/phy%d" with "/dev/mdio%d-phy%02x". This way >> it is significanlty easier

Re: [PATCH v2 8/8] miitool: Add code to register a PHY

2016-02-03 Thread Andrey Smirnov
> What I'd like to do though is the following change. It changes the way > how the mdio bus / phy address is specified. With separate options for > specifying the mdio bus and address it's not clear that the -a, -b and > -r options only make sense when given together, whereas the -a and -b > option

Re: [PATCH 2/2] nvmem: Test it with fec/ocotp

2016-02-03 Thread Trent Piepho
On Wed, 2016-02-03 at 17:27 +0100, Sascha Hauer wrote: > While this generally works it reveals a shortcoming of the nvmem > framework: There's no way to specify the layout of the cell. For example > the MAC address stored in the OCOTP has another byte order than > the one stored in the IIM module o

[PATCH 1/2] drivers: add nvmem framework from kernel

2016-02-03 Thread Sascha Hauer
From: Steffen Trumtrar Add the nvmem framework from Linux. Based on the v4.4-rc3 version. Signed-off-by: Steffen Trumtrar --- drivers/Kconfig| 1 + drivers/Makefile | 1 + drivers/nvmem/Kconfig | 8 + drivers/nvmem/Makefile | 6 + drivers

[PATCH] Add nvmem support

2016-02-03 Thread Sascha Hauer
This ports over the nvmem framework from the kernel. I probably won't apply it as is since it doesn't make me very happy. While it generally works the very first test already reveals that it can't properly handle the different layouts of nvmem cells. The MAC addresses for the i.MX FEC are stored in

[PATCH 2/2] nvmem: Test it with fec/ocotp

2016-02-03 Thread Sascha Hauer
This adds a test for the nvmem framework. The ocotp is registered as a nvmem device which shall provide the MAC address for the i.MX FEC driver. While this generally works it reveals a shortcoming of the nvmem framework: There's no way to specify the layout of the cell. For example the MAC address

[PATCH 2/4] Add initial regmap support

2016-02-03 Thread Sascha Hauer
This adds initial regmap support. Function prototypes are from the Kernel, the implemention is mostly rewritten. Currently the regmap support is limited to the bare minimum to get started. Signed-off-by: Sascha Hauer --- drivers/base/Makefile | 1 + drivers/base/regmap/Makefile |

[PATCH 3/4] mfd: mc13xxx: Switch to regmap support

2016-02-03 Thread Sascha Hauer
This moves the mc13xxx driver over to regmap. Signed-off-by: Sascha Hauer --- drivers/mfd/mc13xxx.c | 123 +- 1 file changed, 52 insertions(+), 71 deletions(-) diff --git a/drivers/mfd/mc13xxx.c b/drivers/mfd/mc13xxx.c index 0ebfc9e..496fcbb 10064

[PATCH] Add regmap support

2016-02-03 Thread Sascha Hauer
This series adds simple regmap support. It's overdue to have regmap support in barebox since regmap can make register accesses far more generic and convenient. More and more kernel code depends on it, so here it is for barebox. Two drivers are switched over to regmap to provide some users. ---

[PATCH 4/4] ARM: i.MX ocotp: Switch to regmap support

2016-02-03 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- arch/arm/mach-imx/ocotp.c | 146 ++ 1 file changed, 57 insertions(+), 89 deletions(-) diff --git a/arch/arm/mach-imx/ocotp.c b/arch/arm/mach-imx/ocotp.c index c99a003..c6c341d 100644 --- a/arch/arm/mach-imx/ocotp.c +++ b

[PATCH 1/4] bitops: Fix shift overflow in GENMASK macros

2016-02-03 Thread Sascha Hauer
From: Steffen Trumtrar Based on the original patch for linux: commit 00b4d9a14125f1e51874def2b9de6092e007412d Author: Maxime COQUELIN Date: Thu Nov 6 10:54:19 2014 On some 32 bits architectures, including x86, GENMASK(31, 0) returns 0 instead of the ex

[PATCH] ARM: i.MX25: fixup broken DryIce GPR

2016-02-03 Thread Steffen Trumtrar
Fixup the DryIce Non-Non-Volatile-Memory GPR register. Signed-off-by: Steffen Trumtrar --- arch/arm/mach-imx/imx25.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/mach-imx/imx25.c b/arch/arm/mach-imx/imx25.c index 8761d636820f..3cfeebbe9348 100644 --- a

Re: scripts/remote: make clean leftovers

2016-02-03 Thread Jan Lübbe
On Mi, 2016-02-03 at 08:55 +0100, Sascha Hauer wrote: > On Tue, Jan 26, 2016 at 11:49:09AM +0100, Jan Lübbe wrote: > > On Di, 2016-01-26 at 11:04 +0100, Yegor Yefremov wrote: > > > After performing make distclean I've discovered following files being > > > removed: > > > > > > Changes not staged