Re: [RFC,PATCH 1/2] Add a common struct clk

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ben Dooks
Date: Sunday, June 13, 2010 - 3:23 pm

On Fri, Jun 11, 2010 at 03:57:10PM +0800, Jeremy Kerr wrote:
~
Ok, agreed on that.
 

You also need a warning that even if it protects the clock, it may not
protect any access to the hardware implementing it.
 

Well, mutexes give us that, whilst enabling we hold the mutex.
 

More to the point, we need it to _work_ fast. It isn't just boot time.
 

Pfft.


Ok, I was going to suggest that anyway.


the above is in my view better.
 

Not really, and it is in use with extant drivers, so not easily
removable either.


nope, and I really like this method.
 

Possibly, still screwed on timezone.
 

yes, pointing that out.
 

erm, sorry, yes, you can check for them before mutex. any chages
should be done with mutex held.
 

ok, how about people have to mark these as a default non op in their
clock structure, and then error if they try and register a clock with
null ops. anyone changing these to NULL later deserves all the pain and agony
they get.
 

Ok, let's find out what other people think too. I'm not the only user.

BTW, we do need to do some cleanups to the samsung code, we've a few
places where we explicitly name clocks. Discussion for seperate
thread.

-- 
Ben (ben@fluff.org, http://www.fluff.org/)

  'a smiley only costs 4 bytes'
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC,PATCH 1/2] Add a common struct clk, Jeremy Kerr, (Fri Jun 4, 12:30 am)
Re: [RFC,PATCH 1/2] Add a common struct clk, Ben Dooks, (Thu Jun 10, 9:20 pm)
Re: [RFC,PATCH 1/2] Add a common struct clk, Benjamin Herrenschmidt, (Thu Jun 10, 11:50 pm)
Re: [RFC,PATCH 1/2] Add a common struct clk, Jeremy Kerr, (Fri Jun 11, 12:57 am)
Re: [RFC,PATCH 1/2] Add a common struct clk, Lothar Waßmann, (Fri Jun 11, 1:14 am)
Re: [RFC,PATCH 1/2] Add a common struct clk, Jeremy Kerr, (Fri Jun 11, 2:18 am)
Re: [RFC,PATCH 1/2] Add a common struct clk, Lothar Waßmann, (Fri Jun 11, 2:23 am)
Re: [RFC,PATCH 1/2] Add a common struct clk, Uwe Kleine-König, (Fri Jun 11, 2:58 am)
Re: [RFC,PATCH 1/2] Add a common struct clk, Lothar Waßmann, (Fri Jun 11, 3:08 am)
Re: [RFC,PATCH 1/2] Add a common struct clk, Jeremy Kerr, (Fri Jun 11, 3:50 am)
Re: [RFC,PATCH 1/2] Add a common struct clk, Uwe Kleine-König, (Fri Jun 11, 7:11 am)
Re: [RFC,PATCH 1/2] Add a common struct clk, Benjamin Herrenschmidt, (Fri Jun 11, 10:10 pm)
Re: [RFC,PATCH 1/2] Add a common struct clk, Benjamin Herrenschmidt, (Fri Jun 11, 10:12 pm)
Re: [RFC,PATCH 1/2] Add a common struct clk, Benjamin Herrenschmidt, (Fri Jun 11, 10:14 pm)
Re: [RFC,PATCH 1/2] Add a common struct clk, Ben Dooks, (Sun Jun 13, 3:23 pm)
Re: [RFC,PATCH 1/2] Add a common struct clk, Ben Dooks, (Sun Jun 13, 3:25 pm)
Re: [RFC,PATCH 1/2] Add a common struct clk, Ben Dooks, (Sun Jun 13, 3:27 pm)
Re: [RFC,PATCH 1/2] Add a common struct clk, Jeremy Kerr, (Sun Jun 13, 8:10 pm)
Re: [RFC,PATCH 1/2] Add a common struct clk, Lothar Waßmann, (Sun Jun 13, 11:39 pm)
Re: [RFC,PATCH 1/2] Add a common struct clk, Uwe Kleine-König, (Sun Jun 13, 11:40 pm)
Re: [RFC,PATCH 1/2] Add a common struct clk, Lothar Waßmann, (Sun Jun 13, 11:52 pm)
Re: [RFC,PATCH 1/2] Add a common struct clk, Benjamin Herrenschmidt, (Mon Jun 14, 2:22 am)
Re: [RFC,PATCH 1/2] Add a common struct clk, Lothar Waßmann, (Mon Jun 14, 2:30 am)
Re: [RFC,PATCH 1/2] Add a common struct clk, Uwe Kleine-König, (Mon Jun 14, 2:34 am)
Re: [RFC,PATCH 1/2] Add a common struct clk, Uwe Kleine-König, (Mon Jun 14, 2:43 am)
Re: [RFC,PATCH 1/2] Add a common struct clk, Jeremy Kerr, (Mon Jun 14, 3:18 am)
Re: [RFC,PATCH 1/2] Add a common struct clk, Ben Dooks, (Wed Jun 16, 2:13 pm)
Re: [RFC,PATCH 1/2] Add a common struct clk, Ben Dooks, (Wed Jun 16, 2:14 pm)
Re: [RFC,PATCH 1/2] Add a common struct clk, Ben Dooks, (Wed Jun 16, 2:16 pm)
Re: [RFC,PATCH 1/2] Add a common struct clk, Benjamin Herrenschmidt, (Wed Jun 16, 4:33 pm)
Re: [RFC,PATCH 1/2] Add a common struct clk, Jeremy Kerr, (Thu Sep 9, 7:10 pm)