Re: [linux-sunxi] Re: [PATCH 3/4] simplefb: disable dt node upon remove

2014-08-15 Thread jonsm...@gmail.com
On Fri, Aug 15, 2014 at 2:43 AM, Maxime Ripard wrote: > On Thu, Aug 14, 2014 at 09:27:14PM -0400, jonsm...@gmail.com wrote: >> On Thu, Aug 14, 2014 at 8:45 PM, Henrik Nordström >> wrote: >> > tor 2014-08-14 klockan 08:07 -0400 skrev jonsm...@gmail.com: >> > >> >> So what are the rules going to be

Re: [linux-sunxi] Re: [PATCH 3/4] simplefb: disable dt node upon remove

2014-08-14 Thread Maxime Ripard
On Thu, Aug 14, 2014 at 09:27:14PM -0400, jonsm...@gmail.com wrote: > On Thu, Aug 14, 2014 at 8:45 PM, Henrik Nordström > wrote: > > tor 2014-08-14 klockan 08:07 -0400 skrev jonsm...@gmail.com: > > > >> So what are the rules going to be? Once the OS is up and starts > >> changing things the state

Re: [linux-sunxi] Re: [PATCH 3/4] simplefb: disable dt node upon remove

2014-08-14 Thread jonsm...@gmail.com
On Thu, Aug 14, 2014 at 8:45 PM, Henrik Nordström wrote: > tor 2014-08-14 klockan 08:07 -0400 skrev jonsm...@gmail.com: > >> So what are the rules going to be? Once the OS is up and starts >> changing things the state in the DT and the OS are going to diverge. >> How does this get handled for a ke

Re: [linux-sunxi] Re: [PATCH 3/4] simplefb: disable dt node upon remove

2014-08-14 Thread Henrik Nordström
tor 2014-08-14 klockan 08:07 -0400 skrev jonsm...@gmail.com: > So what are the rules going to be? Once the OS is up and starts > changing things the state in the DT and the OS are going to diverge. > How does this get handled for a kernel driver that can load/unload? > Should the kernel remove tho

Re: [linux-sunxi] Re: [PATCH 3/4] simplefb: disable dt node upon remove

2014-08-14 Thread jonsm...@gmail.com
On Thu, Aug 14, 2014 at 6:15 AM, Grant Likely wrote: > On Wed, Aug 13, 2014 at 9:41 PM, jonsm...@gmail.com > wrote: >> On Wed, Aug 13, 2014 at 3:14 PM, Grant Likely >> wrote: >>> On Wed, Aug 13, 2014 at 1:54 PM, jonsm...@gmail.com >>> wrote: On Wed, Aug 13, 2014 at 6:19 AM, Luc Verhaege

Re: [linux-sunxi] Re: [PATCH 3/4] simplefb: disable dt node upon remove

2014-08-14 Thread Grant Likely
On Wed, Aug 13, 2014 at 9:41 PM, jonsm...@gmail.com wrote: > On Wed, Aug 13, 2014 at 3:14 PM, Grant Likely > wrote: >> On Wed, Aug 13, 2014 at 1:54 PM, jonsm...@gmail.com >> wrote: >>> On Wed, Aug 13, 2014 at 6:19 AM, Luc Verhaegen wrote: On Wed, Aug 13, 2014 at 11:45:24AM +0200, Luc Ver

Re: [linux-sunxi] Re: [PATCH 3/4] simplefb: disable dt node upon remove

2014-08-13 Thread jonsm...@gmail.com
On Wed, Aug 13, 2014 at 3:14 PM, Grant Likely wrote: > On Wed, Aug 13, 2014 at 1:54 PM, jonsm...@gmail.com > wrote: >> On Wed, Aug 13, 2014 at 6:19 AM, Luc Verhaegen wrote: >>> On Wed, Aug 13, 2014 at 11:45:24AM +0200, Luc Verhaegen wrote: On Wed, Aug 13, 2014 at 10:23:14AM +0100, Grant Li

[linux-sunxi] Re: [PATCH 3/4] simplefb: disable dt node upon remove

2014-08-13 Thread Luc Verhaegen
On Wed, Aug 13, 2014 at 09:00:07PM +0100, Grant Likely wrote: > > Both of which make sense and should be supported, so I agree we need > to find a solution. > > The problem I think comes down to the handoff mechanism. There are a > lot of different video controllers which could all be configured

[linux-sunxi] Re: [PATCH 3/4] simplefb: disable dt node upon remove

2014-08-13 Thread Luc Verhaegen
On Wed, Aug 13, 2014 at 01:58:36PM -0600, Stephen Warren wrote: > On 08/13/2014 01:25 PM, Luc Verhaegen wrote: >> >> The code that sets up simplefb for sunxi is primarily for providing a >> console in u-boot (using the ancient cfbconsole infrastructure). From >> what i can tell, the u-boot code for

[linux-sunxi] Re: [PATCH 3/4] simplefb: disable dt node upon remove

2014-08-13 Thread Grant Likely
On Wed, Aug 13, 2014 at 8:25 PM, Luc Verhaegen wrote: > On Wed, Aug 13, 2014 at 08:14:37PM +0100, Grant Likely wrote: >> >> BTW, Is anyone currently using the simple framebuffer for early >> console? For early console we would want to start using it well before >> setting up platform devices. > >

[linux-sunxi] Re: [PATCH 3/4] simplefb: disable dt node upon remove

2014-08-13 Thread Stephen Warren
On 08/13/2014 01:25 PM, Luc Verhaegen wrote: On Wed, Aug 13, 2014 at 08:14:37PM +0100, Grant Likely wrote: BTW, Is anyone currently using the simple framebuffer for early console? For early console we would want to start using it well before setting up platform devices. The code that sets up

[linux-sunxi] Re: [PATCH 3/4] simplefb: disable dt node upon remove

2014-08-13 Thread Luc Verhaegen
On Wed, Aug 13, 2014 at 08:14:37PM +0100, Grant Likely wrote: > > BTW, Is anyone currently using the simple framebuffer for early > console? For early console we would want to start using it well before > setting up platform devices. The code that sets up simplefb for sunxi is primarily for provi

Re: [linux-sunxi] Re: [PATCH 3/4] simplefb: disable dt node upon remove

2014-08-13 Thread Grant Likely
On Wed, Aug 13, 2014 at 1:54 PM, jonsm...@gmail.com wrote: > On Wed, Aug 13, 2014 at 6:19 AM, Luc Verhaegen wrote: >> On Wed, Aug 13, 2014 at 11:45:24AM +0200, Luc Verhaegen wrote: >>> On Wed, Aug 13, 2014 at 10:23:14AM +0100, Grant Likely wrote: >>> > >>> > The majority of the DT code is based o

Re: [linux-sunxi] Re: [PATCH 3/4] simplefb: disable dt node upon remove

2014-08-13 Thread jonsm...@gmail.com
On Wed, Aug 13, 2014 at 1:34 PM, Stephen Warren wrote: > On 08/13/2014 11:26 AM, jonsm...@gmail.com wrote: >> >> On Wed, Aug 13, 2014 at 12:44 PM, Stephen Warren >> wrote: >>> >>> On 08/13/2014 02:49 AM, David Herrmann wrote: Hi On Wed, Aug 13, 2014 at 10:40 AM, Grant Lik

Re: [linux-sunxi] Re: [PATCH 3/4] simplefb: disable dt node upon remove

2014-08-13 Thread Stephen Warren
On 08/13/2014 11:26 AM, jonsm...@gmail.com wrote: On Wed, Aug 13, 2014 at 12:44 PM, Stephen Warren wrote: On 08/13/2014 02:49 AM, David Herrmann wrote: Hi On Wed, Aug 13, 2014 at 10:40 AM, Grant Likely wrote: On Wed, Aug 13, 2014 at 8:17 AM, Luc Verhaegen wrote: The next commit will ha

Re: [linux-sunxi] Re: [PATCH 3/4] simplefb: disable dt node upon remove

2014-08-13 Thread jonsm...@gmail.com
On Wed, Aug 13, 2014 at 12:44 PM, Stephen Warren wrote: > On 08/13/2014 02:49 AM, David Herrmann wrote: >> >> Hi >> >> On Wed, Aug 13, 2014 at 10:40 AM, Grant Likely >> wrote: >>> >>> On Wed, Aug 13, 2014 at 8:17 AM, Luc Verhaegen wrote: The next commit will handle clocks correctly, so

[linux-sunxi] Re: [PATCH 3/4] simplefb: disable dt node upon remove

2014-08-13 Thread Stephen Warren
On 08/13/2014 02:49 AM, David Herrmann wrote: Hi On Wed, Aug 13, 2014 at 10:40 AM, Grant Likely wrote: On Wed, Aug 13, 2014 at 8:17 AM, Luc Verhaegen wrote: The next commit will handle clocks correctly, so that these do not get automatically disabled on certain SoC simplefb implementations.

Re: [linux-sunxi] Re: [PATCH 3/4] simplefb: disable dt node upon remove

2014-08-13 Thread jonsm...@gmail.com
On Wed, Aug 13, 2014 at 6:19 AM, Luc Verhaegen wrote: > On Wed, Aug 13, 2014 at 11:45:24AM +0200, Luc Verhaegen wrote: >> On Wed, Aug 13, 2014 at 10:23:14AM +0100, Grant Likely wrote: >> > >> > The majority of the DT code is based on the assumption of a static >> > tree. Pantelis has been working

Re: [linux-sunxi] Re: [PATCH 3/4] simplefb: disable dt node upon remove

2014-08-13 Thread Luc Verhaegen
On Wed, Aug 13, 2014 at 11:45:24AM +0200, Luc Verhaegen wrote: > On Wed, Aug 13, 2014 at 10:23:14AM +0100, Grant Likely wrote: > > > > The majority of the DT code is based on the assumption of a static > > tree. Pantelis has been working on being able to modify it at runtime > > with overlays, but

[linux-sunxi] Re: [PATCH 3/4] simplefb: disable dt node upon remove

2014-08-13 Thread Luc Verhaegen
On Wed, Aug 13, 2014 at 10:23:14AM +0100, Grant Likely wrote: > > The majority of the DT code is based on the assumption of a static > tree. Pantelis has been working on being able to modify it at runtime > with overlays, but he has had to go through a lot of rework because it > is not a trivial t

[linux-sunxi] Re: [PATCH 3/4] simplefb: disable dt node upon remove

2014-08-13 Thread David Herrmann
Hi On Wed, Aug 13, 2014 at 11:23 AM, Grant Likely wrote: > On Wed, Aug 13, 2014 at 9:49 AM, David Herrmann wrote: >> On Wed, Aug 13, 2014 at 10:40 AM, Grant Likely >> wrote: >>> * the exception is an overlay driver which add new devices to the >>> kernel. Definitely not the case here. >> >> Why

[linux-sunxi] Re: [PATCH 3/4] simplefb: disable dt node upon remove

2014-08-13 Thread Grant Likely
On Wed, Aug 13, 2014 at 9:49 AM, David Herrmann wrote: > Hi > > On Wed, Aug 13, 2014 at 10:40 AM, Grant Likely > wrote: >> On Wed, Aug 13, 2014 at 8:17 AM, Luc Verhaegen wrote: >>> The next commit will handle clocks correctly, so that these do not get >>> automatically disabled on certain SoC si

[linux-sunxi] Re: [PATCH 3/4] simplefb: disable dt node upon remove

2014-08-13 Thread David Herrmann
Hi On Wed, Aug 13, 2014 at 10:40 AM, Grant Likely wrote: > On Wed, Aug 13, 2014 at 8:17 AM, Luc Verhaegen wrote: >> The next commit will handle clocks correctly, so that these do not get >> automatically disabled on certain SoC simplefb implementations. As a >> result, the removal of this simple

[linux-sunxi] Re: [PATCH 3/4] simplefb: disable dt node upon remove

2014-08-13 Thread Grant Likely
On Wed, Aug 13, 2014 at 8:17 AM, Luc Verhaegen wrote: > The next commit will handle clocks correctly, so that these do not get > automatically disabled on certain SoC simplefb implementations. As a > result, the removal of this simplefb driver, and the release of the > clocks, is rather final, and