Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-21 Thread Peter De Schrijver
Also, IMHO reset should always be done during probe() so driver can be dead sure that we're starting from a known state. This is even more Depends on the IP block. Eg: you might want to keep the screen showing the contents drawn by the bootloader while booting the kernel and smoothly change

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-21 Thread Peter Korsgaard
Peter == Peter De Schrijver pdeschrij...@nvidia.com writes: Also, IMHO reset should always be done during probe() so driver can be dead sure that we're starting from a known state. This is even more Peter Depends on the IP block. Eg: you might want to keep the screen Peter showing the

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-20 Thread Paul Walmsley
Hi, I think Vaibhav has covered most of the ground here, but just a few comments: On Fri, 15 Feb 2013, Felipe Balbi wrote: On Thu, Feb 14, 2013 at 08:47:53PM +, Paul Walmsley wrote: Drivers shouldn't touch their IP block's SYSCONFIG registers. They don't why not ? It's part of the

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-20 Thread Felipe Balbi
Hi, On Wed, Feb 20, 2013 at 05:38:49PM +, Paul Walmsley wrote: Drivers shouldn't touch their IP block's SYSCONFIG registers. They don't just now I noticed this fun fact: driver's should touch *their* SYSCONFIG registers You're stating yourself that SYSCONFIG belongs to the IP and the

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-20 Thread Paul Walmsley
Hi, On Wed, 20 Feb 2013, Felipe Balbi wrote: On Wed, Feb 20, 2013 at 05:38:49PM +, Paul Walmsley wrote: Drivers shouldn't touch their IP block's SYSCONFIG registers. They don't just now I noticed this fun fact: driver's should touch *their* SYSCONFIG registers You're

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-20 Thread Russell King - ARM Linux
On Wed, Feb 20, 2013 at 09:16:38PM +0200, Felipe Balbi wrote: Also, IMHO reset should always be done during probe() so driver can be dead sure that we're starting from a known state. This is even more important for the complex IPs which are licensed from RTL vendors and are used in different

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-19 Thread Paul Walmsley
Hi, On Thu, 14 Feb 2013, Tony Lindgren wrote: * Paul Walmsley p...@pwsan.com [130214 12:51]: On Thu, 14 Feb 2013, Tony Lindgren wrote: I don't think so as hwmod should only touch the sysconfig space when no driver has claimed it. hwmod does need to touch the SYSCONFIG register

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-19 Thread Paul Walmsley
Hi, On Thu, 14 Feb 2013, Tony Lindgren wrote: The other option could be to allow custom ioremap function pointers based on address range in __arm_ioremap_pfn_caller() the same way as the SoC specific static mappings are allowed. That would require adding a function pointer to struct

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-19 Thread Russell King - ARM Linux
On Tue, Feb 19, 2013 at 03:30:01PM +, Paul Walmsley wrote: Hi, On Thu, 14 Feb 2013, Tony Lindgren wrote: The other option could be to allow custom ioremap function pointers based on address range in __arm_ioremap_pfn_caller() the same way as the SoC specific static mappings are

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-19 Thread Tony Lindgren
* Russell King - ARM Linux li...@arm.linux.org.uk [130219 07:49]: On Tue, Feb 19, 2013 at 03:30:01PM +, Paul Walmsley wrote: Hi, On Thu, 14 Feb 2013, Tony Lindgren wrote: The other option could be to allow custom ioremap function pointers based on address range in

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-19 Thread Tony Lindgren
* Paul Walmsley p...@pwsan.com [130219 07:30]: Hi, On Thu, 14 Feb 2013, Tony Lindgren wrote: * Paul Walmsley p...@pwsan.com [130214 12:51]: On Thu, 14 Feb 2013, Tony Lindgren wrote: I don't think so as hwmod should only touch the sysconfig space when no driver has claimed

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-19 Thread Felipe Balbi
Hi, On Tue, Feb 19, 2013 at 08:38:20AM -0800, Tony Lindgren wrote: * Paul Walmsley p...@pwsan.com [130214 12:51]: On Thu, 14 Feb 2013, Tony Lindgren wrote: I don't think so as hwmod should only touch the sysconfig space when no driver has claimed it. hwmod does need

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-19 Thread Tony Lindgren
* Felipe Balbi ba...@ti.com [130219 09:01]: Hi, On Tue, Feb 19, 2013 at 08:38:20AM -0800, Tony Lindgren wrote: * Paul Walmsley p...@pwsan.com [130214 12:51]: On Thu, 14 Feb 2013, Tony Lindgren wrote: I don't think so as hwmod should only touch the sysconfig space

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-19 Thread Russell King - ARM Linux
On Tue, Feb 19, 2013 at 08:30:53AM -0800, Tony Lindgren wrote: * Russell King - ARM Linux li...@arm.linux.org.uk [130219 07:49]: If you want such things as pci_enable_device(), then what you're actually asking for is omap_enable_device() for OMAP devices. OMAP devices are already specific

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-19 Thread Felipe Balbi
Hi, On Tue, Feb 19, 2013 at 09:43:36AM -0800, Tony Lindgren wrote: On Tue, Feb 19, 2013 at 08:38:20AM -0800, Tony Lindgren wrote: * Paul Walmsley p...@pwsan.com [130214 12:51]: On Thu, 14 Feb 2013, Tony Lindgren wrote: I don't think so as hwmod should only touch the

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-19 Thread Kevin Hilman
[...] Just to recap what we've discussed earlier, the reasons why we want reset and idle functions should be in the driver specific header are: 1. There's often driver specific logic needed in addition to the syconfig tinkering in the reset/idle functions. It's been a while since

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-19 Thread Tony Lindgren
* Russell King - ARM Linux li...@arm.linux.org.uk [130219 10:26]: On Tue, Feb 19, 2013 at 08:30:53AM -0800, Tony Lindgren wrote: * Russell King - ARM Linux li...@arm.linux.org.uk [130219 07:49]: If you want such things as pci_enable_device(), then what you're actually asking for is

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-19 Thread Felipe Balbi
Hi, On Tue, Feb 19, 2013 at 11:16:38AM -0800, Kevin Hilman wrote: [ ... ] The other problem is the where reset is need during runtime. Again, what are the specific examples here? The one I can think of off the top of my head is I2C, where it's needed in certain error recovery scenarios.

hwmod data duplication (was: Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency)

2013-02-19 Thread Felipe Balbi
Hi, On Tue, Feb 19, 2013 at 11:31:22AM -0800, Tony Lindgren wrote: However... if you think you're going to get away with another total rewrite of OMAP device support away from hwmod to a new scheme with a new load of huge churn, think again. Remember, churn is evil. I've complained to

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-19 Thread Kevin Hilman
Felipe Balbi ba...@ti.com writes: Hi, On Tue, Feb 19, 2013 at 11:16:38AM -0800, Kevin Hilman wrote: [ ... ] The other problem is the where reset is need during runtime. Again, what are the specific examples here? The one I can think of off the top of my head is I2C, where it's needed

OMAP reset requirements (was: Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency) :x

2013-02-19 Thread Felipe Balbi
Hi, On Tue, Feb 19, 2013 at 11:50:37AM -0800, Kevin Hilman wrote: The other problem is the where reset is need during runtime. Again, what are the specific examples here? The one I can think of off the top of my head is I2C, where it's needed in certain error recovery scenarios.

Re: hwmod data duplication (was: Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency)

2013-02-19 Thread Tony Lindgren
* Felipe Balbi ba...@ti.com [130219 11:47]: Hi, On Tue, Feb 19, 2013 at 11:31:22AM -0800, Tony Lindgren wrote: However... if you think you're going to get away with another total rewrite of OMAP device support away from hwmod to a new scheme with a new load of huge churn, think again.

Re: hwmod data duplication (was: Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency)

2013-02-19 Thread Felipe Balbi
Hi, On Tue, Feb 19, 2013 at 02:09:33PM -0800, Tony Lindgren wrote: On Tue, Feb 19, 2013 at 11:31:22AM -0800, Tony Lindgren wrote: However... if you think you're going to get away with another total rewrite of OMAP device support away from hwmod to a new scheme with a new load of

Re: hwmod data duplication (was: Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency)

2013-02-19 Thread Tony Lindgren
* Felipe Balbi ba...@ti.com [130219 14:26]: On Tue, Feb 19, 2013 at 02:09:33PM -0800, Tony Lindgren wrote: ..that means massive amount of churn in the board-*.c files to convert them to various init functions to be called from board-generic.c and removing the ones that are working with

Re: hwmod data duplication (was: Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency)

2013-02-19 Thread Felipe Balbi
Hi, On Tue, Feb 19, 2013 at 02:31:28PM -0800, Tony Lindgren wrote: * Felipe Balbi ba...@ti.com [130219 14:26]: On Tue, Feb 19, 2013 at 02:09:33PM -0800, Tony Lindgren wrote: ..that means massive amount of churn in the board-*.c files to convert them to various init functions to be

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-19 Thread Santosh Shilimkar
On Wednesday 20 February 2013 12:46 AM, Kevin Hilman wrote: [...] Just to recap what we've discussed earlier, the reasons why we want reset and idle functions should be in the driver specific header are: 1. There's often driver specific logic needed in addition to the syconfig tinkering

RE: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-18 Thread Bedia, Vaibhav
On Sat, Feb 16, 2013 at 11:18:36, Shilimkar, Santosh wrote: [...] For the duplicate ioremapping, I don't think there's any need to do it if we get things right. Note that if the ioremap matches a static map area there is no cost to ioremap it multiple times. Thats true though now

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-18 Thread Santosh Shilimkar
On Monday 18 February 2013 01:38 PM, Bedia, Vaibhav wrote: On Sat, Feb 16, 2013 at 11:18:36, Shilimkar, Santosh wrote: [...] For the duplicate ioremapping, I don't think there's any need to do it if we get things right. Note that if the ioremap matches a static map area there is no cost to

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-18 Thread Kevin Hilman
Santosh Shilimkar santosh.shilim...@ti.com writes: On Friday 15 February 2013 09:10 PM, Kevin Hilman wrote: Felipe Balbi ba...@ti.com writes: Currently the omap-serial driver will not work properly if booted via DT with CPUIDLE enabled because it depends on function pointers provided by

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-18 Thread Kevin Hilman
Felipe Balbi ba...@ti.com writes: Hi, On Sat, Feb 16, 2013 at 11:31:21AM +0530, Santosh Shilimkar wrote: The main goal is to avoid duplicating data both in hwmod and DT. That's pretty much solved as we can have the driver probe populate the common data for hwmod from DT as Santosh has

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-16 Thread Felipe Balbi
Hi, On Sat, Feb 16, 2013 at 11:31:21AM +0530, Santosh Shilimkar wrote: The main goal is to avoid duplicating data both in hwmod and DT. That's pretty much solved as we can have the driver probe populate the common data for hwmod from DT as Santosh has already demonstrated. Then we also want

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-16 Thread Santosh Shilimkar
+ Rafael, On Saturday 16 February 2013 02:25 PM, Felipe Balbi wrote: Hi, On Sat, Feb 16, 2013 at 11:31:21AM +0530, Santosh Shilimkar wrote: The main goal is to avoid duplicating data both in hwmod and DT. That's pretty much solved as we can have the driver probe populate the common data for

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-16 Thread Felipe Balbi
Hi, On Sat, Feb 16, 2013 at 02:47:45PM +0530, Santosh Shilimkar wrote: On Sat, Feb 16, 2013 at 11:31:21AM +0530, Santosh Shilimkar wrote: The main goal is to avoid duplicating data both in hwmod and DT. That's pretty much solved as we can have the driver probe populate the common data for

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-16 Thread Santosh Shilimkar
On Saturday 16 February 2013 02:52 PM, Felipe Balbi wrote: Hi, On Sat, Feb 16, 2013 at 02:47:45PM +0530, Santosh Shilimkar wrote: On Sat, Feb 16, 2013 at 11:31:21AM +0530, Santosh Shilimkar wrote: The main goal is to avoid duplicating data both in hwmod and DT. That's pretty much solved as we

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-15 Thread Russell King - ARM Linux
On Thu, Feb 14, 2013 at 08:47:53PM +, Paul Walmsley wrote: Regarding ioremap(), it seems reasonable for drivers to call ioremap(), as long as the implementation of ioremap() can be overridden by the device's bus. PCI device drivers already do this -- albeit in a PCI-specific way --

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-15 Thread Russell King - ARM Linux
On Thu, Feb 14, 2013 at 09:40:29PM +, Paul Walmsley wrote: Hi, On Thu, 14 Feb 2013, Paul Walmsley wrote: So instead of something bus-specific like that, a better way would be to use something like: va = dev-bus-ioremap( ... ); va = dev-bus-iounmap( ... ); Something like

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-15 Thread Santosh Shilimkar
Russell, On Friday 15 February 2013 03:46 PM, Russell King - ARM Linux wrote: On Thu, Feb 14, 2013 at 08:47:53PM +, Paul Walmsley wrote: [..] So instead of something bus-specific like that, a better way would be to use something like: va = dev-bus-ioremap( ... ); va =

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-15 Thread Russell King - ARM Linux
On Fri, Feb 15, 2013 at 06:56:47PM +0530, Santosh Shilimkar wrote: Whats your view on use of arch_ioremap_caller() hook ? This can allow us to avoid the dual ioremap() issue discussed here if the hook maintains the list of mapped ios. I was even thinking of having such intelligence within the

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-15 Thread Santosh Shilimkar
On Friday 15 February 2013 06:57 PM, Russell King - ARM Linux wrote: On Fri, Feb 15, 2013 at 06:56:47PM +0530, Santosh Shilimkar wrote: Whats your view on use of arch_ioremap_caller() hook ? This can allow us to avoid the dual ioremap() issue discussed here if the hook maintains the list of

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-15 Thread Kevin Hilman
Felipe Balbi ba...@ti.com writes: Currently the omap-serial driver will not work properly if booted via DT with CPUIDLE enabled because it depends on function pointers provided by hwmod to change its own SYSCONFIG register. Remove that relyance on hwmod by moving SYSCONFIG handling to

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-15 Thread Felipe Balbi
Hi, On Fri, Feb 15, 2013 at 07:40:04AM -0800, Kevin Hilman wrote: Felipe Balbi ba...@ti.com writes: Currently the omap-serial driver will not work properly if booted via DT with CPUIDLE enabled because it depends on function pointers provided by hwmod to change its own SYSCONFIG

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-15 Thread Tony Lindgren
* Santosh Shilimkar santosh.shilim...@ti.com [130215 05:34]: On Friday 15 February 2013 06:57 PM, Russell King - ARM Linux wrote: On Fri, Feb 15, 2013 at 06:56:47PM +0530, Santosh Shilimkar wrote: Whats your view on use of arch_ioremap_caller() hook ? This can allow us to avoid the dual

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-15 Thread Felipe Balbi
Hi, On Fri, Feb 15, 2013 at 08:30:32AM -0800, Tony Lindgren wrote: * Santosh Shilimkar santosh.shilim...@ti.com [130215 05:34]: On Friday 15 February 2013 06:57 PM, Russell King - ARM Linux wrote: On Fri, Feb 15, 2013 at 06:56:47PM +0530, Santosh Shilimkar wrote: Whats your view on use of

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-15 Thread Santosh Shilimkar
On Friday 15 February 2013 09:10 PM, Kevin Hilman wrote: Felipe Balbi ba...@ti.com writes: Currently the omap-serial driver will not work properly if booted via DT with CPUIDLE enabled because it depends on function pointers provided by hwmod to change its own SYSCONFIG register. Remove that

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-15 Thread Santosh Shilimkar
On Friday 15 February 2013 10:00 PM, Tony Lindgren wrote: * Santosh Shilimkar santosh.shilim...@ti.com [130215 05:34]: On Friday 15 February 2013 06:57 PM, Russell King - ARM Linux wrote: On Fri, Feb 15, 2013 at 06:56:47PM +0530, Santosh Shilimkar wrote: Whats your view on use of

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-15 Thread Nicolas Pitre
On Fri, 15 Feb 2013, Tony Lindgren wrote: * Santosh Shilimkar santosh.shilim...@ti.com [130215 05:34]: On Friday 15 February 2013 06:57 PM, Russell King - ARM Linux wrote: On Fri, Feb 15, 2013 at 06:56:47PM +0530, Santosh Shilimkar wrote: Whats your view on use of arch_ioremap_caller()

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-15 Thread Santosh Shilimkar
On Saturday 16 February 2013 11:06 AM, Nicolas Pitre wrote: On Fri, 15 Feb 2013, Tony Lindgren wrote: * Santosh Shilimkar santosh.shilim...@ti.com [130215 05:34]: On Friday 15 February 2013 06:57 PM, Russell King - ARM Linux wrote: On Fri, Feb 15, 2013 at 06:56:47PM +0530, Santosh Shilimkar

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-15 Thread Santosh Shilimkar
On Friday 15 February 2013 10:12 PM, Felipe Balbi wrote: Hi, On Fri, Feb 15, 2013 at 08:30:32AM -0800, Tony Lindgren wrote: * Santosh Shilimkar santosh.shilim...@ti.com [130215 05:34]: On Friday 15 February 2013 06:57 PM, Russell King - ARM Linux wrote: On Fri, Feb 15, 2013 at 06:56:47PM

[RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-14 Thread Felipe Balbi
Currently the omap-serial driver will not work properly if booted via DT with CPUIDLE enabled because it depends on function pointers provided by hwmod to change its own SYSCONFIG register. Remove that relyance on hwmod by moving SYSCONFIG handling to driver itself. Note that this also fixes a

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-14 Thread Tony Lindgren
* Felipe Balbi ba...@ti.com [130214 03:19]: Currently the omap-serial driver will not work properly if booted via DT with CPUIDLE enabled because it depends on function pointers provided by hwmod to change its own SYSCONFIG register. Remove that relyance on hwmod by moving SYSCONFIG

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-14 Thread Felipe Balbi
Hi, On Thu, Feb 14, 2013 at 09:12:53AM -0800, Tony Lindgren wrote: * Felipe Balbi ba...@ti.com [130214 03:19]: Currently the omap-serial driver will not work properly if booted via DT with CPUIDLE enabled because it depends on function pointers provided by hwmod to change its own

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-14 Thread Tony Lindgren
* Felipe Balbi ba...@ti.com [130214 10:00]: Hi, On Thu, Feb 14, 2013 at 09:12:53AM -0800, Tony Lindgren wrote: * Felipe Balbi ba...@ti.com [130214 03:19]: Currently the omap-serial driver will not work properly if booted via DT with CPUIDLE enabled because it depends on function

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-14 Thread Felipe Balbi
Hi, On Thu, Feb 14, 2013 at 10:12:17AM -0800, Tony Lindgren wrote: * Felipe Balbi ba...@ti.com [130214 10:00]: Hi, On Thu, Feb 14, 2013 at 09:12:53AM -0800, Tony Lindgren wrote: * Felipe Balbi ba...@ti.com [130214 03:19]: Currently the omap-serial driver will not work properly

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-14 Thread Tony Lindgren
* Felipe Balbi ba...@ti.com [130214 11:31]: On Thu, Feb 14, 2013 at 10:12:17AM -0800, Tony Lindgren wrote: And only in the case there is no driver, hwmod can parse the address space from DT for the unclaimed hardware in the late_initcall. sounds good. But then it means our DTS files

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-14 Thread Paul Walmsley
Hi, On Thu, 14 Feb 2013, Tony Lindgren wrote: I don't think so as hwmod should only touch the sysconfig space when no driver has claimed it. hwmod does need to touch the SYSCONFIG register during pm_runtime suspend and resume operations, and during device enable and disable operations.

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-14 Thread Paul Walmsley
Hi, On Thu, 14 Feb 2013, Paul Walmsley wrote: So instead of something bus-specific like that, a better way would be to use something like: va = dev-bus-ioremap( ... ); va = dev-bus-iounmap( ... ); Something like this is what I was thinking. Obviously there would be more patches needed,

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-14 Thread Paul Walmsley
On Thu, 14 Feb 2013, Paul Walmsley wrote: va = dev-bus-iounmap( ... ); And this should simply be dev-bus-iounmap( ... ); I regret the error... - Paul -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org More majordomo

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-14 Thread Tony Lindgren
* Paul Walmsley p...@pwsan.com [130214 12:51]: Hi, On Thu, 14 Feb 2013, Tony Lindgren wrote: I don't think so as hwmod should only touch the sysconfig space when no driver has claimed it. hwmod does need to touch the SYSCONFIG register during pm_runtime suspend and resume

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-14 Thread Tony Lindgren
* Paul Walmsley p...@pwsan.com [130214 13:44]: Hi, On Thu, 14 Feb 2013, Paul Walmsley wrote: So instead of something bus-specific like that, a better way would be to use something like: va = dev-bus-ioremap( ... ); va = dev-bus-iounmap( ... ); Something like this is what I was

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-14 Thread Felipe Balbi
Hi, On Thu, Feb 14, 2013 at 08:47:53PM +, Paul Walmsley wrote: Hi, On Thu, 14 Feb 2013, Tony Lindgren wrote: I don't think so as hwmod should only touch the sysconfig space when no driver has claimed it. hwmod does need to touch the SYSCONFIG register during pm_runtime suspend

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-14 Thread Felipe Balbi
On Thu, Feb 14, 2013 at 02:47:10PM -0800, Tony Lindgren wrote: * Paul Walmsley p...@pwsan.com [130214 13:44]: Hi, On Thu, 14 Feb 2013, Paul Walmsley wrote: So instead of something bus-specific like that, a better way would be to use something like: va = dev-bus-ioremap(

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-14 Thread Felipe Balbi
On Thu, Feb 14, 2013 at 02:22:47PM -0800, Tony Lindgren wrote: * Paul Walmsley p...@pwsan.com [130214 12:51]: Hi, On Thu, 14 Feb 2013, Tony Lindgren wrote: I don't think so as hwmod should only touch the sysconfig space when no driver has claimed it. hwmod does need to touch

RE: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-14 Thread Bedia, Vaibhav
On Fri, Feb 15, 2013 at 12:23:08, Balbi, Felipe wrote: On Thu, Feb 14, 2013 at 02:22:47PM -0800, Tony Lindgren wrote: * Paul Walmsley p...@pwsan.com [130214 12:51]: Hi, On Thu, 14 Feb 2013, Tony Lindgren wrote: I don't think so as hwmod should only touch the sysconfig space

RE: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-14 Thread Bedia, Vaibhav
Hi, On Fri, Feb 15, 2013 at 12:14:29, Balbi, Felipe wrote: Hi, On Thu, Feb 14, 2013 at 08:47:53PM +, Paul Walmsley wrote: Hi, On Thu, 14 Feb 2013, Tony Lindgren wrote: I don't think so as hwmod should only touch the sysconfig space when no driver has claimed it. hwmod

Re: [RFC/NOT FOR MERGING 2/3] serial: omap: remove hwmod dependency

2013-02-14 Thread Santosh Shilimkar
+ Tero, Rajendra, Kevin On Friday 15 February 2013 12:16 PM, Felipe Balbi wrote: On Thu, Feb 14, 2013 at 02:47:10PM -0800, Tony Lindgren wrote: * Paul Walmsley p...@pwsan.com [130214 13:44]: Hi, On Thu, 14 Feb 2013, Paul Walmsley wrote: So instead of something bus-specific like that, a