[PATCH v3 1/3] spi: spidev: create spidev device for all spi slaves.

2016-07-18 Thread Michal Suchanek
provide interface backwards compatible with existing spidev tools. Signed-off-by: Michal Suchanek --- Documentation/spi/spidev | 40 ++--- drivers/spi/Kconfig | 2 +- drivers/spi/spi.c| 19 ++- drivers/spi/spidev.c | 370 --- include

[PATCH] of: fdt: mark unflattened tree as detached

2016-07-18 Thread Michal Suchanek
The tree returned from of_fdt_unflatten_tree cannot be attached to the live tree because it is not marked as detached so mark it as such. The dt resolver checks the flag and refuses to process the tree otherwise. Signed-off-by: Michal Suchanek <hramr...@gmail.com> --- - rebase on top of

[PATCH] of: fdt: mark unflattened tree as detached

2016-07-18 Thread Michal Suchanek
The tree returned from of_fdt_unflatten_tree cannot be attached to the live tree because it is not marked as detached so mark it as such. The dt resolver checks the flag and refuses to process the tree otherwise. Signed-off-by: Michal Suchanek --- - rebase on top of 4.7rc --- drivers/of/fdt.c

Re: [linux-sunxi] Re: [PATCH v2 06/14] ARM: sun8i: clk: Add clk-factor rate application method

2016-07-15 Thread Michal Suchanek
Hello, On 15 July 2016 at 15:48, Ondřej Jirman wrote: > > > On 15.7.2016 15:27, Jean-Francois Moine wrote: >> On Fri, 15 Jul 2016 12:38:54 +0200 >> Ondřej Jirman wrote: >> If so, then yes, trying to switch to the 24MHz oscillator before applying

Re: [linux-sunxi] Re: [PATCH v2 06/14] ARM: sun8i: clk: Add clk-factor rate application method

2016-07-15 Thread Michal Suchanek
Hello, On 15 July 2016 at 15:48, Ondřej Jirman wrote: > > > On 15.7.2016 15:27, Jean-Francois Moine wrote: >> On Fri, 15 Jul 2016 12:38:54 +0200 >> Ondřej Jirman wrote: >> If so, then yes, trying to switch to the 24MHz oscillator before applying the factors, and then switching back

Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-07-01 Thread Michal Suchanek
On 1 July 2016 at 20:56, Michal Suchanek <hramr...@gmail.com> wrote: > On 1 July 2016 at 18:22, Mark Brown <broo...@kernel.org> wrote: >> On Fri, Jul 01, 2016 at 05:37:53PM +0200, Michal Suchanek wrote: >> >>> Can you, please, specify what problem

Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-07-01 Thread Michal Suchanek
On 1 July 2016 at 20:56, Michal Suchanek wrote: > On 1 July 2016 at 18:22, Mark Brown wrote: >> On Fri, Jul 01, 2016 at 05:37:53PM +0200, Michal Suchanek wrote: >> >>> Can you, please, specify what problems this patch creates for other users >>> and maintaina

Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-07-01 Thread Michal Suchanek
On 1 July 2016 at 18:22, Mark Brown <broo...@kernel.org> wrote: > On Fri, Jul 01, 2016 at 05:37:53PM +0200, Michal Suchanek wrote: > >> Can you, please, specify what problems this patch creates for other users >> and maintainability? > > To repeat yet ag

Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-07-01 Thread Michal Suchanek
On 1 July 2016 at 18:22, Mark Brown wrote: > On Fri, Jul 01, 2016 at 05:37:53PM +0200, Michal Suchanek wrote: > >> Can you, please, specify what problems this patch creates for other users >> and maintainability? > > To repeat yet again a major design goal for DT is to

Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-07-01 Thread Michal Suchanek
On 1 July 2016 at 17:00, Mark Brown <broo...@kernel.org> wrote: > On Fri, Jul 01, 2016 at 10:58:34AM +0200, Michal Suchanek wrote: >> On 1 July 2016 at 10:25, Mark Brown <broo...@kernel.org> wrote: > >> > It's been repeatedly suggested to you that the tooling f

Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-07-01 Thread Michal Suchanek
On 1 July 2016 at 17:00, Mark Brown wrote: > On Fri, Jul 01, 2016 at 10:58:34AM +0200, Michal Suchanek wrote: >> On 1 July 2016 at 10:25, Mark Brown wrote: > >> > It's been repeatedly suggested to you that the tooling for this stuff >> > could use some work.

Re: [linux-sunxi] [PATCH v2 14/14] ARM: dts: sun8i: Enable DVFS on Orange Pi One

2016-07-01 Thread Michal Suchanek
On 30 June 2016 at 17:50, Michal Suchanek <hramr...@gmail.com> wrote: > On 30 June 2016 at 17:16, Michal Suchanek <hramr...@gmail.com> wrote: >> On 30 June 2016 at 16:19, Ondřej Jirman <meg...@megous.com> wrote: >>> Hello, >>)k, so I tried> >>>

Re: [linux-sunxi] [PATCH v2 14/14] ARM: dts: sun8i: Enable DVFS on Orange Pi One

2016-07-01 Thread Michal Suchanek
On 30 June 2016 at 17:50, Michal Suchanek wrote: > On 30 June 2016 at 17:16, Michal Suchanek wrote: >> On 30 June 2016 at 16:19, Ondřej Jirman wrote: >>> Hello, >>)k, so I tried> >>> On 30.6.2016 13:13, Michal Suchanek wrote: >>>> Hello, >>

Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-07-01 Thread Michal Suchanek
On 1 July 2016 at 11:36, Mark Brown wrote: > On Thu, Jun 30, 2016 at 10:03:57AM +0100, Dan O'Donovan wrote: > > Please fix your mail client to word wrap within paragraphs at something > substantially less than 80 columns. Doing this makes your messages much > easier to read

Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-07-01 Thread Michal Suchanek
On 1 July 2016 at 11:36, Mark Brown wrote: > On Thu, Jun 30, 2016 at 10:03:57AM +0100, Dan O'Donovan wrote: > > Please fix your mail client to word wrap within paragraphs at something > substantially less than 80 columns. Doing this makes your messages much > easier to read and reply to. Sorry

Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-07-01 Thread Michal Suchanek
On 1 July 2016 at 10:25, Mark Brown <broo...@kernel.org> wrote: > On Thu, Jun 30, 2016 at 09:47:32AM +0200, Michal Suchanek wrote: > >> So to write such tutorial you have to give some steps to follow which >> are reasonably likely to succeed on wide variety of boards

Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-07-01 Thread Michal Suchanek
On 1 July 2016 at 10:25, Mark Brown wrote: > On Thu, Jun 30, 2016 at 09:47:32AM +0200, Michal Suchanek wrote: > >> So to write such tutorial you have to give some steps to follow which >> are reasonably likely to succeed on wide variety of boards and require >> s

Re: [linux-sunxi] [PATCH v2 14/14] ARM: dts: sun8i: Enable DVFS on Orange Pi One

2016-06-30 Thread Michal Suchanek
On 30 June 2016 at 16:19, Ondřej Jirman <meg...@megous.com> wrote: > Hello, > > On 30.6.2016 13:13, Michal Suchanek wrote: >> Hello, >> >> On 25 June 2016 at 05:45, <meg...@megous.com> wrote: >>> From: Ondrej Jirman <meg...@megous.com>

Re: [linux-sunxi] [PATCH v2 14/14] ARM: dts: sun8i: Enable DVFS on Orange Pi One

2016-06-30 Thread Michal Suchanek
On 30 June 2016 at 16:19, Ondřej Jirman wrote: > Hello, > > On 30.6.2016 13:13, Michal Suchanek wrote: >> Hello, >> >> On 25 June 2016 at 05:45, wrote: >>> From: Ondrej Jirman >>> >>> Use Xulong Orange Pi One GPIO based regulator for >

Re: [linux-sunxi] [PATCH v2 14/14] ARM: dts: sun8i: Enable DVFS on Orange Pi One

2016-06-30 Thread Michal Suchanek
On 30 June 2016 at 17:16, Michal Suchanek <hramr...@gmail.com> wrote: > On 30 June 2016 at 16:19, Ondřej Jirman <meg...@megous.com> wrote: >> Hello, >> >> On 30.6.2016 13:13, Michal Suchanek wrote: >>> Hello, >>> >>> On 25 June 2016 at

Re: [linux-sunxi] [PATCH v2 14/14] ARM: dts: sun8i: Enable DVFS on Orange Pi One

2016-06-30 Thread Michal Suchanek
On 30 June 2016 at 17:16, Michal Suchanek wrote: > On 30 June 2016 at 16:19, Ondřej Jirman wrote: >> Hello, >> >> On 30.6.2016 13:13, Michal Suchanek wrote: >>> Hello, >>> >>> On 25 June 2016 at 05:45, wrote: >>>> From: Ondrej Jir

Re: [linux-sunxi] [PATCH v2 14/14] ARM: dts: sun8i: Enable DVFS on Orange Pi One

2016-06-30 Thread Michal Suchanek
Hello, On 25 June 2016 at 05:45, wrote: > From: Ondrej Jirman > > Use Xulong Orange Pi One GPIO based regulator for > passive cooling and thermal management. > > Signed-off-by: Ondrej Jirman > --- >

Re: [linux-sunxi] [PATCH v2 14/14] ARM: dts: sun8i: Enable DVFS on Orange Pi One

2016-06-30 Thread Michal Suchanek
Hello, On 25 June 2016 at 05:45, wrote: > From: Ondrej Jirman > > Use Xulong Orange Pi One GPIO based regulator for > passive cooling and thermal management. > > Signed-off-by: Ondrej Jirman > --- > arch/arm/boot/dts/sun8i-h3-orangepi-one.dts | 39 > + > 1 file

Re: [linux-sunxi] Re: [PATCH 06/14] ARM: dts: sun8i: Add cpu0 label to sun8i-h3.dtsi

2016-06-30 Thread Michal Suchanek
Hello, On 29 June 2016 at 23:11, Ondřej Jirman wrote: > On 29.6.2016 22:45, Maxime Ripard wrote: >> Hi, >> >> On Sat, Jun 25, 2016 at 04:50:24PM +0200, Ondřej Jirman wrote: >>> On 25.6.2016 09:02, Maxime Ripard wrote: On Sat, Jun 25, 2016 at 09:02:48AM +0800, Chen-Yu Tsai

Re: [linux-sunxi] Re: [PATCH 06/14] ARM: dts: sun8i: Add cpu0 label to sun8i-h3.dtsi

2016-06-30 Thread Michal Suchanek
Hello, On 29 June 2016 at 23:11, Ondřej Jirman wrote: > On 29.6.2016 22:45, Maxime Ripard wrote: >> Hi, >> >> On Sat, Jun 25, 2016 at 04:50:24PM +0200, Ondřej Jirman wrote: >>> On 25.6.2016 09:02, Maxime Ripard wrote: On Sat, Jun 25, 2016 at 09:02:48AM +0800, Chen-Yu Tsai wrote: > On

Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-06-30 Thread Michal Suchanek
On 29 June 2016 at 20:02, Mark Brown <broo...@kernel.org> wrote: > On Wed, Jun 29, 2016 at 05:32:48AM +0200, Michal Suchanek wrote: > >> The other is to get a generic expansion board and jumper wires. Of >> course, you will not use all pins of your expansion connector t

Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-06-30 Thread Michal Suchanek
On 29 June 2016 at 20:02, Mark Brown wrote: > On Wed, Jun 29, 2016 at 05:32:48AM +0200, Michal Suchanek wrote: > >> The other is to get a generic expansion board and jumper wires. Of >> course, you will not use all pins of your expansion connector this >> way.

Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-06-28 Thread Michal Suchanek
On 28 June 2016 at 22:57, Mark Brown <broo...@kernel.org> wrote: > On Tue, Jun 28, 2016 at 10:02:59PM +0200, Michal Suchanek wrote: > >> Of course I could add "my-shiny-new-board" compatible to the device >> tree and spidev. Then when I build my-shiny-new-bo

Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-06-28 Thread Michal Suchanek
On 28 June 2016 at 22:57, Mark Brown wrote: > On Tue, Jun 28, 2016 at 10:02:59PM +0200, Michal Suchanek wrote: > >> Of course I could add "my-shiny-new-board" compatible to the device >> tree and spidev. Then when I build my-shiny-new-board2 and it happens >&

Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-06-28 Thread Michal Suchanek
On 28 June 2016 at 20:38, Mark Brown <broo...@kernel.org> wrote: > On Tue, Jun 28, 2016 at 06:24:58PM +0200, Michal Suchanek wrote: > >> No, no, no! > >> This is NOT about loading an overlay. This is about talking on the bus >> without loading an overlay. > >

Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-06-28 Thread Michal Suchanek
On 28 June 2016 at 20:38, Mark Brown wrote: > On Tue, Jun 28, 2016 at 06:24:58PM +0200, Michal Suchanek wrote: > >> No, no, no! > >> This is NOT about loading an overlay. This is about talking on the bus >> without loading an overlay. > > This is the solution

Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-06-28 Thread Michal Suchanek
On 28 June 2016 at 17:51, Mark Brown <broo...@kernel.org> wrote: > On Tue, Jun 28, 2016 at 02:40:41PM +0200, Michal Suchanek wrote: > >> There is no hardware other than pin header. You are preparing a >> factory image for a devboard with a pin header that can be used for &

Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-06-28 Thread Michal Suchanek
On 28 June 2016 at 17:51, Mark Brown wrote: > On Tue, Jun 28, 2016 at 02:40:41PM +0200, Michal Suchanek wrote: > >> There is no hardware other than pin header. You are preparing a >> factory image for a devboard with a pin header that can be used for >> connecting SPI de

Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-06-28 Thread Michal Suchanek
On 27 June 2016 at 22:32, Mark Brown <broo...@kernel.org> wrote: > On Mon, Jun 27, 2016 at 09:40:38PM +0200, Michal Suchanek wrote: > >> No. It's for buses that have some inherent identification. It's not for > >> 1) generate random compatible and stick it in dev

Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-06-28 Thread Michal Suchanek
On 27 June 2016 at 22:32, Mark Brown wrote: > On Mon, Jun 27, 2016 at 09:40:38PM +0200, Michal Suchanek wrote: > >> No. It's for buses that have some inherent identification. It's not for > >> 1) generate random compatible and stick it in device tree > > Don't g

Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-06-27 Thread Michal Suchanek
On 27 June 2016 at 21:09, Greg Kroah-Hartman <gre...@linuxfoundation.org> wrote: > On Mon, Jun 27, 2016 at 09:02:32PM +0200, Michal Suchanek wrote: >> The spi bus has no autodetection whatsoever. The 'detection' of the >> device that's suposed to be on the other side comp

Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-06-27 Thread Michal Suchanek
On 27 June 2016 at 21:09, Greg Kroah-Hartman wrote: > On Mon, Jun 27, 2016 at 09:02:32PM +0200, Michal Suchanek wrote: >> The spi bus has no autodetection whatsoever. The 'detection' of the >> device that's suposed to be on the other side completely relies on user >> suppli

[PATCH v2 0/3] Updated spidev usability patchset

2016-06-27 Thread Michal Suchanek
This hopefully addresses pretty much all the comments on the previous version. Thanks Michal Michal Suchanek (3): spi: spidev: fix the check for spidev in dt spi: of: allow instantiating slaves without a driver drivers core: allow id match override when manually binding driver drivers

[PATCH v2 0/3] Updated spidev usability patchset

2016-06-27 Thread Michal Suchanek
This hopefully addresses pretty much all the comments on the previous version. Thanks Michal Michal Suchanek (3): spi: spidev: fix the check for spidev in dt spi: of: allow instantiating slaves without a driver drivers core: allow id match override when manually binding driver drivers

[PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-06-27 Thread Michal Suchanek
les or any other needless complication. Note that any slave driver that requires configuration will fail to probe anyway if the configuration is not provided in the devicetree node. A driver like spidev that requires no configuration can bind to any slave. Signed-off-by: Michal Suchanek <

[PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-06-27 Thread Michal Suchanek
les or any other needless complication. Note that any slave driver that requires configuration will fail to probe anyway if the configuration is not provided in the devicetree node. A driver like spidev that requires no configuration can bind to any slave. Signed-off-by: Michal Suchanek --- driv

[PATCH v2 2/3] spi: of: allow instantiating slaves without a driver

2016-06-27 Thread Michal Suchanek
and the slave driver can try to set arbitrary transfer speed. Signed-off-by: Michal Suchanek <hramr...@gmail.com> --- drivers/spi/spi.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 0239b45..9b3b512 100644 --- a/drivers/spi

[PATCH v2 2/3] spi: of: allow instantiating slaves without a driver

2016-06-27 Thread Michal Suchanek
and the slave driver can try to set arbitrary transfer speed. Signed-off-by: Michal Suchanek --- drivers/spi/spi.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 0239b45..9b3b512 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c

[PATCH v2 1/3] spi: spidev: fix the check for spidev in dt

2016-06-27 Thread Michal Suchanek
some other random compatible which is not "spidev". Also the spidev id match table is not compiled when !CONFIG_OF So add a match table that has just "spidev" entry in it so it can reliably detect what this message is supposed to warn about. Signed-off-by: Michal Suchanek &

[PATCH v2 1/3] spi: spidev: fix the check for spidev in dt

2016-06-27 Thread Michal Suchanek
some other random compatible which is not "spidev". Also the spidev id match table is not compiled when !CONFIG_OF So add a match table that has just "spidev" entry in it so it can reliably detect what this message is supposed to warn about. Signed-off-by: Michal Suchanek ---

[PATCH 2/2] of: fdt: mark unflattened tree as detached

2016-06-26 Thread Michal Suchanek
The tree returned from of_fdt_unflatten_tree cannot be attached to the live tree because it is not marked as detached so mark it as such. The dt resolver checks the flag and refuses to process the tree otherwise. Signed-off-by: Michal Suchanek <hramr...@gmail.com> --- drivers/of/fdt.

[PATCH 1/2] of: overlay: add resolver error prints

2016-06-26 Thread Michal Suchanek
Applying overlay fails silently in case of an error. Add error prints. Most notably the lack of symbols in the live tree is not reported. Signed-off-by: Michal Suchanek <hramr...@gmail.com> --- drivers/of/resolver.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/of/reso

[PATCH 2/2] of: fdt: mark unflattened tree as detached

2016-06-26 Thread Michal Suchanek
The tree returned from of_fdt_unflatten_tree cannot be attached to the live tree because it is not marked as detached so mark it as such. The dt resolver checks the flag and refuses to process the tree otherwise. Signed-off-by: Michal Suchanek --- drivers/of/fdt.c | 12 +--- 1 file

[PATCH 1/2] of: overlay: add resolver error prints

2016-06-26 Thread Michal Suchanek
Applying overlay fails silently in case of an error. Add error prints. Most notably the lack of symbols in the live tree is not reported. Signed-off-by: Michal Suchanek --- drivers/of/resolver.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/of/resolver.c b/drivers

[PATCH 0/2] devicetree overlay small fixes

2016-06-26 Thread Michal Suchanek
Hello, while testing overlay loading I found some issues with applying the overlay. I sent these like a year ago already. One was since fixed but two still apply. Thanks Michal Michal Suchanek (2): of: overlay: add resolver error prints of: fdt: mark unflattened tree as detached drivers

[PATCH 0/2] devicetree overlay small fixes

2016-06-26 Thread Michal Suchanek
Hello, while testing overlay loading I found some issues with applying the overlay. I sent these like a year ago already. One was since fixed but two still apply. Thanks Michal Michal Suchanek (2): of: overlay: add resolver error prints of: fdt: mark unflattened tree as detached drivers

Re: [PATCH 3/3] drivers core: allow id match override when manually binding driver

2016-06-26 Thread Michal Suchanek
On 26 June 2016 at 20:28, Greg Kroah-Hartman <gre...@linuxfoundation.org> wrote: > On Thu, Jun 23, 2016 at 05:41:20PM -0000, Michal Suchanek wrote: >> This allows binding spidev on any slave device by hand using sysfs >> without adding superfluous compatibles or any other nee

Re: [PATCH 3/3] drivers core: allow id match override when manually binding driver

2016-06-26 Thread Michal Suchanek
On 26 June 2016 at 20:28, Greg Kroah-Hartman wrote: > On Thu, Jun 23, 2016 at 05:41:20PM -0000, Michal Suchanek wrote: >> This allows binding spidev on any slave device by hand using sysfs >> without adding superfluous compatibles or any other needless >> complication. >

Re: [PATCH 2/3] spi: of: allow instantiating slaves without a driver

2016-06-26 Thread Michal Suchanek
On 26 June 2016 at 14:57, Mark Brown <broo...@kernel.org> wrote: > On Sun, Jun 26, 2016 at 02:53:31PM +0200, Michal Suchanek wrote: >> On 26 June 2016 at 14:45, Mark Brown <broo...@kernel.org> wrote: > >> > No, there's other things like figuring out which con

Re: [PATCH 2/3] spi: of: allow instantiating slaves without a driver

2016-06-26 Thread Michal Suchanek
On 26 June 2016 at 14:57, Mark Brown wrote: > On Sun, Jun 26, 2016 at 02:53:31PM +0200, Michal Suchanek wrote: >> On 26 June 2016 at 14:45, Mark Brown wrote: > >> > No, there's other things like figuring out which controller to bind to >> > that need to be taken i

Re: [PATCH 2/3] spi: of: allow instantiating slaves without a driver

2016-06-26 Thread Michal Suchanek
On 26 June 2016 at 14:45, Mark Brown <broo...@kernel.org> wrote: > On Sun, Jun 26, 2016 at 02:39:20PM +0200, Michal Suchanek wrote: >> On 26 June 2016 at 13:58, Mark Brown <broo...@kernel.org> wrote: > >> > No, there's a lot more to having overlays to board-

Re: [PATCH 2/3] spi: of: allow instantiating slaves without a driver

2016-06-26 Thread Michal Suchanek
On 26 June 2016 at 14:45, Mark Brown wrote: > On Sun, Jun 26, 2016 at 02:39:20PM +0200, Michal Suchanek wrote: >> On 26 June 2016 at 13:58, Mark Brown wrote: > >> > No, there's a lot more to having overlays to board-neutral connectors... > >> If you are fin

Re: [PATCH 2/3] spi: of: allow instantiating slaves without a driver

2016-06-26 Thread Michal Suchanek
On 26 June 2016 at 13:58, Mark Brown <broo...@kernel.org> wrote: > On Sun, Jun 26, 2016 at 01:35:46PM +0200, Michal Suchanek wrote: >> On 26 June 2016 at 13:21, Mark Brown <broo...@kernel.org> wrote: > >> > You can just add the entire slave node in the overlay, i

Re: [PATCH 2/3] spi: of: allow instantiating slaves without a driver

2016-06-26 Thread Michal Suchanek
On 26 June 2016 at 13:58, Mark Brown wrote: > On Sun, Jun 26, 2016 at 01:35:46PM +0200, Michal Suchanek wrote: >> On 26 June 2016 at 13:21, Mark Brown wrote: > >> > You can just add the entire slave node in the overlay, it's not clear >> > that this buys us

Re: [PATCH 2/3] spi: of: allow instantiating slaves without a driver

2016-06-26 Thread Michal Suchanek
On 26 June 2016 at 13:21, Mark Brown <broo...@kernel.org> wrote: > On Sun, Jun 26, 2016 at 04:23:41AM +0200, Michal Suchanek wrote: >> On 26 June 2016 at 03:15, Mark Brown <broo...@kernel.org> wrote: > >> > I can't relate this hunk to the changelog and th

Re: [PATCH 2/3] spi: of: allow instantiating slaves without a driver

2016-06-26 Thread Michal Suchanek
On 26 June 2016 at 13:21, Mark Brown wrote: > On Sun, Jun 26, 2016 at 04:23:41AM +0200, Michal Suchanek wrote: >> On 26 June 2016 at 03:15, Mark Brown wrote: > >> > I can't relate this hunk to the changelog and there's a coding style >> > problem, if there's { }

Re: [PATCH 3/3] drivers core: allow id match override when manually binding driver

2016-06-26 Thread Michal Suchanek
Hello, On 26 June 2016 at 06:14, Dan Williams <dan.j.willi...@intel.com> wrote: > On Thu, Jun 23, 2016 at 10:41 AM, Michal Suchanek <hramr...@gmail.com> wrote: >> This allows binding spidev on any slave device by hand using sysfs >> without adding superfluous compat

Re: [PATCH 3/3] drivers core: allow id match override when manually binding driver

2016-06-26 Thread Michal Suchanek
Hello, On 26 June 2016 at 06:14, Dan Williams wrote: > On Thu, Jun 23, 2016 at 10:41 AM, Michal Suchanek wrote: >> This allows binding spidev on any slave device by hand using sysfs >> without adding superfluous compatibles or any other needless >> complication. >> &g

Re: [PATCH 2/3] spi: of: allow instantiating slaves without a driver

2016-06-25 Thread Michal Suchanek
On 26 June 2016 at 03:15, Mark Brown <broo...@kernel.org> wrote: > On Thu, Jun 23, 2016 at 05:41:20PM -0000, Michal Suchanek wrote: >> SPI slave devices are not created when looking up driver for the slave >> fails. Create a device anyway so it can be manually bound to a dri

Re: [PATCH 2/3] spi: of: allow instantiating slaves without a driver

2016-06-25 Thread Michal Suchanek
On 26 June 2016 at 03:15, Mark Brown wrote: > On Thu, Jun 23, 2016 at 05:41:20PM -0000, Michal Suchanek wrote: >> SPI slave devices are not created when looking up driver for the slave >> fails. Create a device anyway so it can be manually bound to a driver. > >&

Re: [PATCH 1/3] spi: spidev: fix the check for spidev in dt

2016-06-25 Thread Michal Suchanek
On 26 June 2016 at 03:13, Mark Brown <broo...@kernel.org> wrote: > On Thu, Jun 23, 2016 at 05:41:19PM -0000, Michal Suchanek wrote: > >> The check is supposed to warn about spidev specified directly in >> devicetree as compatible. This just does not work. I have a devicetr

Re: [PATCH 1/3] spi: spidev: fix the check for spidev in dt

2016-06-25 Thread Michal Suchanek
On 26 June 2016 at 03:13, Mark Brown wrote: > On Thu, Jun 23, 2016 at 05:41:19PM -0000, Michal Suchanek wrote: > >> The check is supposed to warn about spidev specified directly in >> devicetree as compatible. This just does not work. I have a devicetree >> with

Re: [PATCH 1/3] spi: spidev: fix the check for spidev in dt

2016-06-25 Thread Michal Suchanek
On 26 June 2016 at 03:09, Mark Brown <broo...@kernel.org> wrote: > On Fri, Jun 24, 2016 at 04:20:32PM +0200, Michal Suchanek wrote: > >> The check is supposed to warn about spidev specified directly in >> devicetree as compatible. This just does not work. I have a devicetr

Re: [PATCH 1/3] spi: spidev: fix the check for spidev in dt

2016-06-25 Thread Michal Suchanek
On 26 June 2016 at 03:09, Mark Brown wrote: > On Fri, Jun 24, 2016 at 04:20:32PM +0200, Michal Suchanek wrote: > >> The check is supposed to warn about spidev specified directly in >> devicetree as compatible. This just does not work. I have a devicetree >> with

[PATCH 2/3] spi: of: allow instantiating slaves without a driver

2016-06-24 Thread Michal Suchanek
SPI slave devices are not created when looking up driver for the slave fails. Create a device anyway so it can be manually bound to a driver. Signed-off-by: Michal Suchanek <hramr...@gmail.com> --- drivers/spi/spi.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff

[PATCH 3/3] drivers core: allow id match override when manually binding driver

2016-06-24 Thread Michal Suchanek
-off-by: Michal Suchanek <hramr...@gmail.com> --- drivers/base/Kconfig.debug | 14 + drivers/base/bus.c | 72 +- lib/Kconfig.debug | 2 ++ 3 files changed, 87 insertions(+), 1 deletion(-) create mode 100644 driver

[PATCH 2/3] spi: of: allow instantiating slaves without a driver

2016-06-24 Thread Michal Suchanek
SPI slave devices are not created when looking up driver for the slave fails. Create a device anyway so it can be manually bound to a driver. Signed-off-by: Michal Suchanek --- drivers/spi/spi.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/spi/spi.c b

[PATCH 3/3] drivers core: allow id match override when manually binding driver

2016-06-24 Thread Michal Suchanek
-off-by: Michal Suchanek --- drivers/base/Kconfig.debug | 14 + drivers/base/bus.c | 72 +- lib/Kconfig.debug | 2 ++ 3 files changed, 87 insertions(+), 1 deletion(-) create mode 100644 drivers/base/Kconfig.debug diff --git

[PATCH 0/3] Another stab at making spidev usable with devicetree

2016-06-24 Thread Michal Suchanek
Hello, This small patchset makes it possible to bind spidev manually to any SPI slave without much hassle. Thanks Michal Michal Suchanek (3): spi: spidev: fix the check for spidev in dt spi: of: allow instantiating slaves without a driver drivers core: allow id match override when

[PATCH 1/3] spi: spidev: fix the check for spidev in dt

2016-06-24 Thread Michal Suchanek
with ! CONFIG_OF since the id table which the code checks is not compiled then. Signed-off-by: Michal Suchanek <hramr...@gmail.com> --- drivers/spi/spidev.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index e3c19f3..8045baf

[PATCH 0/3] Another stab at making spidev usable with devicetree

2016-06-24 Thread Michal Suchanek
Hello, This small patchset makes it possible to bind spidev manually to any SPI slave without much hassle. Thanks Michal Michal Suchanek (3): spi: spidev: fix the check for spidev in dt spi: of: allow instantiating slaves without a driver drivers core: allow id match override when

[PATCH 1/3] spi: spidev: fix the check for spidev in dt

2016-06-24 Thread Michal Suchanek
with ! CONFIG_OF since the id table which the code checks is not compiled then. Signed-off-by: Michal Suchanek --- drivers/spi/spidev.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index e3c19f3..8045baf 100644 --- a/drivers/spi

Re: [PATCH 7/9] mtd: m25p80: add support of dual and quad spi protocols to all commands

2016-06-23 Thread Michal Suchanek
On 24 June 2016 at 00:50, Marek Vasut <ma...@denx.de> wrote: > On 06/24/2016 12:43 AM, Michal Suchanek wrote: >> On 24 June 2016 at 00:14, Marek Vasut <ma...@denx.de> wrote: >>> On 06/23/2016 11:58 PM, Michal Suchanek wrote: >>>> On 23 June 2016 a

Re: [PATCH 7/9] mtd: m25p80: add support of dual and quad spi protocols to all commands

2016-06-23 Thread Michal Suchanek
On 24 June 2016 at 00:50, Marek Vasut wrote: > On 06/24/2016 12:43 AM, Michal Suchanek wrote: >> On 24 June 2016 at 00:14, Marek Vasut wrote: >>> On 06/23/2016 11:58 PM, Michal Suchanek wrote: >>>> On 23 June 2016 at 22:46, Marek Vasut wrote: >>>>>

Re: [PATCH 7/9] mtd: m25p80: add support of dual and quad spi protocols to all commands

2016-06-23 Thread Michal Suchanek
On 24 June 2016 at 00:14, Marek Vasut <ma...@denx.de> wrote: > On 06/23/2016 11:58 PM, Michal Suchanek wrote: >> On 23 June 2016 at 22:46, Marek Vasut <ma...@denx.de> wrote: >>> On 06/23/2016 10:35 PM, Michal Suchanek wrote: >>>> Hello, >>

Re: [PATCH 7/9] mtd: m25p80: add support of dual and quad spi protocols to all commands

2016-06-23 Thread Michal Suchanek
On 24 June 2016 at 00:14, Marek Vasut wrote: > On 06/23/2016 11:58 PM, Michal Suchanek wrote: >> On 23 June 2016 at 22:46, Marek Vasut wrote: >>> On 06/23/2016 10:35 PM, Michal Suchanek wrote: >>>> Hello, >>> >>> Hi, >>> >>>

Re: [PATCH 7/9] mtd: m25p80: add support of dual and quad spi protocols to all commands

2016-06-23 Thread Michal Suchanek
On 23 June 2016 at 22:46, Marek Vasut <ma...@denx.de> wrote: > On 06/23/2016 10:35 PM, Michal Suchanek wrote: >> Hello, > > Hi, > >> this patch is kind of awesome. >> >> I have a few practical concerns however. >> >> On 20 June 2016 at 18

Re: [PATCH 7/9] mtd: m25p80: add support of dual and quad spi protocols to all commands

2016-06-23 Thread Michal Suchanek
On 23 June 2016 at 22:46, Marek Vasut wrote: > On 06/23/2016 10:35 PM, Michal Suchanek wrote: >> Hello, > > Hi, > >> this patch is kind of awesome. >> >> I have a few practical concerns however. >> >> On 20 June 2016 at 18:50, Cyrille Pitchen wrote

Re: [PATCH 7/9] mtd: m25p80: add support of dual and quad spi protocols to all commands

2016-06-23 Thread Michal Suchanek
Hello, this patch is kind of awesome. I have a few practical concerns however. On 20 June 2016 at 18:50, Cyrille Pitchen wrote: > Before this patch, m25p80_read() supported few SPI protocols: > - regular SPI 1-1-1 > - SPI Dual Output 1-1-2 > - SPI Quad Output 1-1-4 >

Re: [PATCH 7/9] mtd: m25p80: add support of dual and quad spi protocols to all commands

2016-06-23 Thread Michal Suchanek
Hello, this patch is kind of awesome. I have a few practical concerns however. On 20 June 2016 at 18:50, Cyrille Pitchen wrote: > Before this patch, m25p80_read() supported few SPI protocols: > - regular SPI 1-1-1 > - SPI Dual Output 1-1-2 > - SPI Quad Output 1-1-4 > On the other hand, all

Re: [PATCH v3 00/13] sunxi spi fixes

2016-06-17 Thread Michal Suchanek
Hello, On 13 June 2016 at 21:57, Maxime Ripard <maxime.rip...@free-electrons.com> wrote: > On Mon, Jun 13, 2016 at 05:46:48PM -0000, Michal Suchanek wrote: >> Hello, >> >> This is update of the sunxi spi patches that should give full-featured SPI >> driver. >

Re: [PATCH v3 00/13] sunxi spi fixes

2016-06-17 Thread Michal Suchanek
Hello, On 13 June 2016 at 21:57, Maxime Ripard wrote: > On Mon, Jun 13, 2016 at 05:46:48PM -0000, Michal Suchanek wrote: >> Hello, >> >> This is update of the sunxi spi patches that should give full-featured SPI >> driver. >> >> First three patches fix

Re: [linux-sunxi] [PATCH v3 10/13] spi: sunxi: merge sun4i and sun6i SPI driver

2016-06-14 Thread Michal Suchanek
Hello, On 14 June 2016 at 07:45, Julian Calaby <julian.cal...@gmail.com> wrote: > Hi Michal, > > On Tue, Jun 14, 2016 at 3:28 PM, Michal Suchanek <hramr...@gmail.com> wrote: >> On 14 June 2016 at 06:47, Julian Calaby <julian.cal...@gmail.com> wrote: >>&g

Re: [linux-sunxi] [PATCH v3 10/13] spi: sunxi: merge sun4i and sun6i SPI driver

2016-06-14 Thread Michal Suchanek
Hello, On 14 June 2016 at 07:45, Julian Calaby wrote: > Hi Michal, > > On Tue, Jun 14, 2016 at 3:28 PM, Michal Suchanek wrote: >> On 14 June 2016 at 06:47, Julian Calaby wrote: >>> Hi Michal, >>> >>> On Tue, Jun 14, 2016 at 2:34 PM, Michal Suchanek wr

Re: [linux-sunxi] [PATCH v3 10/13] spi: sunxi: merge sun4i and sun6i SPI driver

2016-06-13 Thread Michal Suchanek
On 14 June 2016 at 06:47, Julian Calaby <julian.cal...@gmail.com> wrote: > Hi Michal, > > On Tue, Jun 14, 2016 at 2:34 PM, Michal Suchanek <hramr...@gmail.com> wrote: >> Hello, >> >> On 14 June 2016 at 01:43, Julian Calaby <julian.cal...@gmail.com>

Re: [linux-sunxi] [PATCH v3 10/13] spi: sunxi: merge sun4i and sun6i SPI driver

2016-06-13 Thread Michal Suchanek
On 14 June 2016 at 06:47, Julian Calaby wrote: > Hi Michal, > > On Tue, Jun 14, 2016 at 2:34 PM, Michal Suchanek wrote: >> Hello, >> >> On 14 June 2016 at 01:43, Julian Calaby wrote: >>> Hi Michal, >>> >>> On Tue, Jun 14, 2016 at 3:46

Re: [PATCH v3 00/13] sunxi spi fixes

2016-06-13 Thread Michal Suchanek
Hello, On 13 June 2016 at 21:57, Maxime Ripard <maxime.rip...@free-electrons.com> wrote: > On Mon, Jun 13, 2016 at 05:46:48PM -0000, Michal Suchanek wrote: >> Hello, >> >> This is update of the sunxi spi patches that should give full-featured SPI >> driver. >

Re: [PATCH v3 00/13] sunxi spi fixes

2016-06-13 Thread Michal Suchanek
Hello, On 13 June 2016 at 21:57, Maxime Ripard wrote: > On Mon, Jun 13, 2016 at 05:46:48PM -0000, Michal Suchanek wrote: >> Hello, >> >> This is update of the sunxi spi patches that should give full-featured SPI >> driver. >> >> First three patches fix

Re: [linux-sunxi] [PATCH v3 07/13] spi: sunxi: rename constants to match between sun4i and sun6i

2016-06-13 Thread Michal Suchanek
Hello, On 14 June 2016 at 01:31, Julian Calaby <julian.cal...@gmail.com> wrote: > Hi Michal, > > On Tue, Jun 14, 2016 at 3:46 AM, Michal Suchanek <hramr...@gmail.com> wrote: >> SUNXI_CTL_ -> SUNXI_TFR_CTL_ >> SUNXI_TFR_CTL_LMTF -> SUNXI_TFR_CTL_F

Re: [linux-sunxi] [PATCH v3 07/13] spi: sunxi: rename constants to match between sun4i and sun6i

2016-06-13 Thread Michal Suchanek
Hello, On 14 June 2016 at 01:31, Julian Calaby wrote: > Hi Michal, > > On Tue, Jun 14, 2016 at 3:46 AM, Michal Suchanek wrote: >> SUNXI_CTL_ -> SUNXI_TFR_CTL_ >> SUNXI_TFR_CTL_LMTF -> SUNXI_TFR_CTL_FBS > > I don't know these abbreviations, are they

Re: [linux-sunxi] [PATCH v3 11/13] dt: spi: sun4i: merge sun4i and sun6i binding doc

2016-06-13 Thread Michal Suchanek
On 14 June 2016 at 01:45, Julian Calaby <julian.cal...@gmail.com> wrote: > Hi Michal, > > On Tue, Jun 14, 2016 at 3:46 AM, Michal Suchanek <hramr...@gmail.com> wrote: >> Signed-off-by: Michal Suchanek <hramr...@gmail.com> >> --- >> .../device

Re: [linux-sunxi] [PATCH v3 11/13] dt: spi: sun4i: merge sun4i and sun6i binding doc

2016-06-13 Thread Michal Suchanek
On 14 June 2016 at 01:45, Julian Calaby wrote: > Hi Michal, > > On Tue, Jun 14, 2016 at 3:46 AM, Michal Suchanek wrote: >> Signed-off-by: Michal Suchanek >> --- >> .../devicetree/bindings/spi/spi-sun4i.txt | 21 ++- >> .../devi

Re: [linux-sunxi] [PATCH v3 10/13] spi: sunxi: merge sun4i and sun6i SPI driver

2016-06-13 Thread Michal Suchanek
Hello, On 14 June 2016 at 01:43, Julian Calaby <julian.cal...@gmail.com> wrote: > Hi Michal, > > On Tue, Jun 14, 2016 at 3:46 AM, Michal Suchanek <hramr...@gmail.com> wrote: >> The drivers are very similar and share multiple flaws which needed >> separate fixes f

Re: [linux-sunxi] [PATCH v3 10/13] spi: sunxi: merge sun4i and sun6i SPI driver

2016-06-13 Thread Michal Suchanek
Hello, On 14 June 2016 at 01:43, Julian Calaby wrote: > Hi Michal, > > On Tue, Jun 14, 2016 at 3:46 AM, Michal Suchanek wrote: >> The drivers are very similar and share multiple flaws which needed >> separate fixes for both drivers. >> >> Signed-off-by: Michal

Re: [PATCH] staging: fbtft: do not allocate huge txbuf

2016-06-09 Thread Michal Suchanek
Hello, On 9 June 2016 at 18:20, Noralf Trønnes <nor...@tronnes.org> wrote: > > Den 09.06.2016 17:08, skrev Michal Suchanek: >> >> txbuflen can be set to arbitrary value by user and it is also set >> automagically to the maximum transfer size of the SPI m

<    1   2   3   4   5   6   7   8   >