All of lore.kernel.org
 help / color / mirror / Atom feed
* [GIT PULL] ARM: OMAP: I2C: prepare to use hwmod reset in driver
@ 2011-12-16  9:55 ` Paul Walmsley
  0 siblings, 0 replies; 18+ messages in thread
From: Paul Walmsley @ 2011-12-16  9:55 UTC (permalink / raw)
  To: tony; +Cc: linux-omap, linux-arm-kernel

Hi Tony

The following changes since commit dc47ce90c3a822cd7c9e9339fe4d5f61dcb26b50:

  Linux 3.2-rc5 (2011-12-09 15:09:32 -0800)

are available in the git repository at:
  git://git.pwsan.com/linux-2.6 i2c_reset_devel_3.3

Shubhrajyoti D (2):
      ARM: OMAP: omap_device: add omap_device_reset to reset all the hwmods in the device
      ARM: OMAP: I2C: Reset support

 arch/arm/plat-omap/i2c.c                      |    2 ++
 arch/arm/plat-omap/include/plat/omap_device.h |    1 +
 arch/arm/plat-omap/omap_device.c              |   22 ++++++++++++++++++++++
 include/linux/i2c-omap.h                      |    1 +
 4 files changed, 26 insertions(+), 0 deletions(-)

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [GIT PULL] ARM: OMAP: I2C: prepare to use hwmod reset in driver
@ 2011-12-16  9:55 ` Paul Walmsley
  0 siblings, 0 replies; 18+ messages in thread
From: Paul Walmsley @ 2011-12-16  9:55 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Tony

The following changes since commit dc47ce90c3a822cd7c9e9339fe4d5f61dcb26b50:

  Linux 3.2-rc5 (2011-12-09 15:09:32 -0800)

are available in the git repository at:
  git://git.pwsan.com/linux-2.6 i2c_reset_devel_3.3

Shubhrajyoti D (2):
      ARM: OMAP: omap_device: add omap_device_reset to reset all the hwmods in the device
      ARM: OMAP: I2C: Reset support

 arch/arm/plat-omap/i2c.c                      |    2 ++
 arch/arm/plat-omap/include/plat/omap_device.h |    1 +
 arch/arm/plat-omap/omap_device.c              |   22 ++++++++++++++++++++++
 include/linux/i2c-omap.h                      |    1 +
 4 files changed, 26 insertions(+), 0 deletions(-)

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [GIT PULL] ARM: OMAP: I2C: prepare to use hwmod reset in driver
  2011-12-16  9:55 ` Paul Walmsley
@ 2011-12-16 19:50   ` Tony Lindgren
  -1 siblings, 0 replies; 18+ messages in thread
From: Tony Lindgren @ 2011-12-16 19:50 UTC (permalink / raw)
  To: Paul Walmsley; +Cc: linux-omap, linux-arm-kernel

Hi,

* Paul Walmsley <paul@pwsan.com> [111216 01:24]:
> Hi Tony
> 
> The following changes since commit dc47ce90c3a822cd7c9e9339fe4d5f61dcb26b50:
> 
>   Linux 3.2-rc5 (2011-12-09 15:09:32 -0800)
> 
> are available in the git repository at:
>   git://git.pwsan.com/linux-2.6 i2c_reset_devel_3.3
> 
> Shubhrajyoti D (2):
>       ARM: OMAP: omap_device: add omap_device_reset to reset all the hwmods in the device
>       ARM: OMAP: I2C: Reset support
> 
>  arch/arm/plat-omap/i2c.c                      |    2 ++
>  arch/arm/plat-omap/include/plat/omap_device.h |    1 +
>  arch/arm/plat-omap/omap_device.c              |   22 ++++++++++++++++++++++
>  include/linux/i2c-omap.h                      |    1 +
>  4 files changed, 26 insertions(+), 0 deletions(-)

Can you please update shi to leave out the extra callback
function int (*device_reset) (struct device *dev) as I'd
rather see that happen with pm_runtime calls?

Regards,

Tony

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [GIT PULL] ARM: OMAP: I2C: prepare to use hwmod reset in driver
@ 2011-12-16 19:50   ` Tony Lindgren
  0 siblings, 0 replies; 18+ messages in thread
From: Tony Lindgren @ 2011-12-16 19:50 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

* Paul Walmsley <paul@pwsan.com> [111216 01:24]:
> Hi Tony
> 
> The following changes since commit dc47ce90c3a822cd7c9e9339fe4d5f61dcb26b50:
> 
>   Linux 3.2-rc5 (2011-12-09 15:09:32 -0800)
> 
> are available in the git repository at:
>   git://git.pwsan.com/linux-2.6 i2c_reset_devel_3.3
> 
> Shubhrajyoti D (2):
>       ARM: OMAP: omap_device: add omap_device_reset to reset all the hwmods in the device
>       ARM: OMAP: I2C: Reset support
> 
>  arch/arm/plat-omap/i2c.c                      |    2 ++
>  arch/arm/plat-omap/include/plat/omap_device.h |    1 +
>  arch/arm/plat-omap/omap_device.c              |   22 ++++++++++++++++++++++
>  include/linux/i2c-omap.h                      |    1 +
>  4 files changed, 26 insertions(+), 0 deletions(-)

Can you please update shi to leave out the extra callback
function int (*device_reset) (struct device *dev) as I'd
rather see that happen with pm_runtime calls?

Regards,

Tony

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [GIT PULL] ARM: OMAP: I2C: prepare to use hwmod reset in driver
  2011-12-16 19:50   ` Tony Lindgren
@ 2011-12-16 20:17     ` Paul Walmsley
  -1 siblings, 0 replies; 18+ messages in thread
From: Paul Walmsley @ 2011-12-16 20:17 UTC (permalink / raw)
  To: Tony Lindgren; +Cc: linux-omap, Shubhrajyoti, b-cousson, linux-arm-kernel

Hi

On Fri, 16 Dec 2011, Tony Lindgren wrote:

> * Paul Walmsley <paul@pwsan.com> [111216 01:24]:
> > The following changes since commit dc47ce90c3a822cd7c9e9339fe4d5f61dcb26b50:
> > 
> >   Linux 3.2-rc5 (2011-12-09 15:09:32 -0800)
> > 
> > are available in the git repository at:
> >   git://git.pwsan.com/linux-2.6 i2c_reset_devel_3.3
> > 
> > Shubhrajyoti D (2):
> >       ARM: OMAP: omap_device: add omap_device_reset to reset all the hwmods in the device
> >       ARM: OMAP: I2C: Reset support
> > 
> >  arch/arm/plat-omap/i2c.c                      |    2 ++
> >  arch/arm/plat-omap/include/plat/omap_device.h |    1 +
> >  arch/arm/plat-omap/omap_device.c              |   22 ++++++++++++++++++++++
> >  include/linux/i2c-omap.h                      |    1 +
> >  4 files changed, 26 insertions(+), 0 deletions(-)
> 
> Can you please update shi to leave out the extra callback
> function int (*device_reset) (struct device *dev) as I'd
> rather see that happen with pm_runtime calls?

What PM runtime call is used to reset a device?


- Paul

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [GIT PULL] ARM: OMAP: I2C: prepare to use hwmod reset in driver
@ 2011-12-16 20:17     ` Paul Walmsley
  0 siblings, 0 replies; 18+ messages in thread
From: Paul Walmsley @ 2011-12-16 20:17 UTC (permalink / raw)
  To: linux-arm-kernel

Hi

On Fri, 16 Dec 2011, Tony Lindgren wrote:

> * Paul Walmsley <paul@pwsan.com> [111216 01:24]:
> > The following changes since commit dc47ce90c3a822cd7c9e9339fe4d5f61dcb26b50:
> > 
> >   Linux 3.2-rc5 (2011-12-09 15:09:32 -0800)
> > 
> > are available in the git repository at:
> >   git://git.pwsan.com/linux-2.6 i2c_reset_devel_3.3
> > 
> > Shubhrajyoti D (2):
> >       ARM: OMAP: omap_device: add omap_device_reset to reset all the hwmods in the device
> >       ARM: OMAP: I2C: Reset support
> > 
> >  arch/arm/plat-omap/i2c.c                      |    2 ++
> >  arch/arm/plat-omap/include/plat/omap_device.h |    1 +
> >  arch/arm/plat-omap/omap_device.c              |   22 ++++++++++++++++++++++
> >  include/linux/i2c-omap.h                      |    1 +
> >  4 files changed, 26 insertions(+), 0 deletions(-)
> 
> Can you please update shi to leave out the extra callback
> function int (*device_reset) (struct device *dev) as I'd
> rather see that happen with pm_runtime calls?

What PM runtime call is used to reset a device?


- Paul

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [GIT PULL] ARM: OMAP: I2C: prepare to use hwmod reset in driver
  2011-12-16 20:17     ` Paul Walmsley
@ 2011-12-16 20:41       ` Tony Lindgren
  -1 siblings, 0 replies; 18+ messages in thread
From: Tony Lindgren @ 2011-12-16 20:41 UTC (permalink / raw)
  To: Paul Walmsley; +Cc: linux-omap, Shubhrajyoti, b-cousson, linux-arm-kernel

* Paul Walmsley <paul@pwsan.com> [111216 11:45]:
> Hi
> 
> On Fri, 16 Dec 2011, Tony Lindgren wrote:
> 
> > * Paul Walmsley <paul@pwsan.com> [111216 01:24]:
> > > The following changes since commit dc47ce90c3a822cd7c9e9339fe4d5f61dcb26b50:
> > > 
> > >   Linux 3.2-rc5 (2011-12-09 15:09:32 -0800)
> > > 
> > > are available in the git repository at:
> > >   git://git.pwsan.com/linux-2.6 i2c_reset_devel_3.3
> > > 
> > > Shubhrajyoti D (2):
> > >       ARM: OMAP: omap_device: add omap_device_reset to reset all the hwmods in the device
> > >       ARM: OMAP: I2C: Reset support
> > > 
> > >  arch/arm/plat-omap/i2c.c                      |    2 ++
> > >  arch/arm/plat-omap/include/plat/omap_device.h |    1 +
> > >  arch/arm/plat-omap/omap_device.c              |   22 ++++++++++++++++++++++
> > >  include/linux/i2c-omap.h                      |    1 +
> > >  4 files changed, 26 insertions(+), 0 deletions(-)
> > 
> > Can you please update shi to leave out the extra callback
> > function int (*device_reset) (struct device *dev) as I'd
> > rather see that happen with pm_runtime calls?
> 
> What PM runtime call is used to reset a device?

Hmm how about pm_runtime_disable? Or do we need a new
call for reset?

Tony

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [GIT PULL] ARM: OMAP: I2C: prepare to use hwmod reset in driver
@ 2011-12-16 20:41       ` Tony Lindgren
  0 siblings, 0 replies; 18+ messages in thread
From: Tony Lindgren @ 2011-12-16 20:41 UTC (permalink / raw)
  To: linux-arm-kernel

* Paul Walmsley <paul@pwsan.com> [111216 11:45]:
> Hi
> 
> On Fri, 16 Dec 2011, Tony Lindgren wrote:
> 
> > * Paul Walmsley <paul@pwsan.com> [111216 01:24]:
> > > The following changes since commit dc47ce90c3a822cd7c9e9339fe4d5f61dcb26b50:
> > > 
> > >   Linux 3.2-rc5 (2011-12-09 15:09:32 -0800)
> > > 
> > > are available in the git repository at:
> > >   git://git.pwsan.com/linux-2.6 i2c_reset_devel_3.3
> > > 
> > > Shubhrajyoti D (2):
> > >       ARM: OMAP: omap_device: add omap_device_reset to reset all the hwmods in the device
> > >       ARM: OMAP: I2C: Reset support
> > > 
> > >  arch/arm/plat-omap/i2c.c                      |    2 ++
> > >  arch/arm/plat-omap/include/plat/omap_device.h |    1 +
> > >  arch/arm/plat-omap/omap_device.c              |   22 ++++++++++++++++++++++
> > >  include/linux/i2c-omap.h                      |    1 +
> > >  4 files changed, 26 insertions(+), 0 deletions(-)
> > 
> > Can you please update shi to leave out the extra callback
> > function int (*device_reset) (struct device *dev) as I'd
> > rather see that happen with pm_runtime calls?
> 
> What PM runtime call is used to reset a device?

Hmm how about pm_runtime_disable? Or do we need a new
call for reset?

Tony

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [GIT PULL] ARM: OMAP: I2C: prepare to use hwmod reset in driver
  2011-12-16 20:41       ` Tony Lindgren
@ 2011-12-16 20:59         ` Paul Walmsley
  -1 siblings, 0 replies; 18+ messages in thread
From: Paul Walmsley @ 2011-12-16 20:59 UTC (permalink / raw)
  To: Tony Lindgren; +Cc: linux-omap, Shubhrajyoti, b-cousson, linux-arm-kernel

Hi

On Fri, 16 Dec 2011, Tony Lindgren wrote:

> * Paul Walmsley <paul@pwsan.com> [111216 11:45]:
> > On Fri, 16 Dec 2011, Tony Lindgren wrote:
> > 
> > > * Paul Walmsley <paul@pwsan.com> [111216 01:24]:
> > >
> > > > Shubhrajyoti D (2):
> > > >       ARM: OMAP: omap_device: add omap_device_reset to reset all the hwmods in the device
> > > >       ARM: OMAP: I2C: Reset support
> > > > 
> > > Can you please update shi to leave out the extra callback
> > > function int (*device_reset) (struct device *dev) as I'd
> > > rather see that happen with pm_runtime calls?
> > 
> > What PM runtime call is used to reset a device?
> 
> Hmm how about pm_runtime_disable? Or do we need a new
> call for reset?

Looking at the last few hunks of:

http://marc.info/?l=linux-omap&m=132377389204328&w=2

it appears to me that the driver needs to reset the device while it's 
still active & powered on, etc.

Shubhrajyoti, care to comment further?


- Paul

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [GIT PULL] ARM: OMAP: I2C: prepare to use hwmod reset in driver
@ 2011-12-16 20:59         ` Paul Walmsley
  0 siblings, 0 replies; 18+ messages in thread
From: Paul Walmsley @ 2011-12-16 20:59 UTC (permalink / raw)
  To: linux-arm-kernel

Hi

On Fri, 16 Dec 2011, Tony Lindgren wrote:

> * Paul Walmsley <paul@pwsan.com> [111216 11:45]:
> > On Fri, 16 Dec 2011, Tony Lindgren wrote:
> > 
> > > * Paul Walmsley <paul@pwsan.com> [111216 01:24]:
> > >
> > > > Shubhrajyoti D (2):
> > > >       ARM: OMAP: omap_device: add omap_device_reset to reset all the hwmods in the device
> > > >       ARM: OMAP: I2C: Reset support
> > > > 
> > > Can you please update shi to leave out the extra callback
> > > function int (*device_reset) (struct device *dev) as I'd
> > > rather see that happen with pm_runtime calls?
> > 
> > What PM runtime call is used to reset a device?
> 
> Hmm how about pm_runtime_disable? Or do we need a new
> call for reset?

Looking at the last few hunks of:

http://marc.info/?l=linux-omap&m=132377389204328&w=2

it appears to me that the driver needs to reset the device while it's 
still active & powered on, etc.

Shubhrajyoti, care to comment further?


- Paul

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [GIT PULL] ARM: OMAP: I2C: prepare to use hwmod reset in driver
  2011-12-16 20:59         ` Paul Walmsley
@ 2011-12-17  0:24           ` Tony Lindgren
  -1 siblings, 0 replies; 18+ messages in thread
From: Tony Lindgren @ 2011-12-17  0:24 UTC (permalink / raw)
  To: Paul Walmsley; +Cc: linux-omap, Shubhrajyoti, b-cousson, linux-arm-kernel

* Paul Walmsley <paul@pwsan.com> [111216 12:27]:
> Hi
> 
> On Fri, 16 Dec 2011, Tony Lindgren wrote:
> 
> > * Paul Walmsley <paul@pwsan.com> [111216 11:45]:
> > > On Fri, 16 Dec 2011, Tony Lindgren wrote:
> > > 
> > > > * Paul Walmsley <paul@pwsan.com> [111216 01:24]:
> > > >
> > > > > Shubhrajyoti D (2):
> > > > >       ARM: OMAP: omap_device: add omap_device_reset to reset all the hwmods in the device
> > > > >       ARM: OMAP: I2C: Reset support
> > > > > 
> > > > Can you please update shi to leave out the extra callback
> > > > function int (*device_reset) (struct device *dev) as I'd
> > > > rather see that happen with pm_runtime calls?
> > > 
> > > What PM runtime call is used to reset a device?
> > 
> > Hmm how about pm_runtime_disable? Or do we need a new
> > call for reset?

Meanwhile as Paul pointed out, we still need the device_reset
pointer, so pulling in this series into i2c branch.
 
> Looking at the last few hunks of:
> 
> http://marc.info/?l=linux-omap&m=132377389204328&w=2
> 
> it appears to me that the driver needs to reset the device while it's 
> still active & powered on, etc.
> 
> Shubhrajyoti, care to comment further?
> 
> 
> - Paul

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [GIT PULL] ARM: OMAP: I2C: prepare to use hwmod reset in driver
@ 2011-12-17  0:24           ` Tony Lindgren
  0 siblings, 0 replies; 18+ messages in thread
From: Tony Lindgren @ 2011-12-17  0:24 UTC (permalink / raw)
  To: linux-arm-kernel

* Paul Walmsley <paul@pwsan.com> [111216 12:27]:
> Hi
> 
> On Fri, 16 Dec 2011, Tony Lindgren wrote:
> 
> > * Paul Walmsley <paul@pwsan.com> [111216 11:45]:
> > > On Fri, 16 Dec 2011, Tony Lindgren wrote:
> > > 
> > > > * Paul Walmsley <paul@pwsan.com> [111216 01:24]:
> > > >
> > > > > Shubhrajyoti D (2):
> > > > >       ARM: OMAP: omap_device: add omap_device_reset to reset all the hwmods in the device
> > > > >       ARM: OMAP: I2C: Reset support
> > > > > 
> > > > Can you please update shi to leave out the extra callback
> > > > function int (*device_reset) (struct device *dev) as I'd
> > > > rather see that happen with pm_runtime calls?
> > > 
> > > What PM runtime call is used to reset a device?
> > 
> > Hmm how about pm_runtime_disable? Or do we need a new
> > call for reset?

Meanwhile as Paul pointed out, we still need the device_reset
pointer, so pulling in this series into i2c branch.
 
> Looking at the last few hunks of:
> 
> http://marc.info/?l=linux-omap&m=132377389204328&w=2
> 
> it appears to me that the driver needs to reset the device while it's 
> still active & powered on, etc.
> 
> Shubhrajyoti, care to comment further?
> 
> 
> - Paul

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [GIT PULL] ARM: OMAP: I2C: prepare to use hwmod reset in driver
  2011-12-17  0:24           ` Tony Lindgren
@ 2011-12-18  8:01             ` Shubhrajyoti
  -1 siblings, 0 replies; 18+ messages in thread
From: Shubhrajyoti @ 2011-12-18  8:01 UTC (permalink / raw)
  To: Tony Lindgren; +Cc: Paul Walmsley, linux-omap, b-cousson, linux-arm-kernel

On Saturday 17 December 2011 05:54 AM, Tony Lindgren wrote:
> * Paul Walmsley <paul@pwsan.com> [111216 12:27]:
>> Hi
>>
>> On Fri, 16 Dec 2011, Tony Lindgren wrote:
>>
>>> * Paul Walmsley <paul@pwsan.com> [111216 11:45]:
>>>> On Fri, 16 Dec 2011, Tony Lindgren wrote:
>>>>
>>>>> * Paul Walmsley <paul@pwsan.com> [111216 01:24]:
>>>>>
>>>>>> Shubhrajyoti D (2):
>>>>>>       ARM: OMAP: omap_device: add omap_device_reset to reset all the hwmods in the device
>>>>>>       ARM: OMAP: I2C: Reset support
>>>>>>
>>>>> Can you please update shi to leave out the extra callback
>>>>> function int (*device_reset) (struct device *dev) as I'd
>>>>> rather see that happen with pm_runtime calls?
>>>> What PM runtime call is used to reset a device?
>>> Hmm how about pm_runtime_disable? Or do we need a new
>>> call for reset?
> Meanwhile as Paul pointed out, we still need the device_reset
> pointer, so pulling in this series into i2c branch.
>  
>> Looking at the last few hunks of:
>>
>> http://marc.info/?l=linux-omap&m=132377389204328&w=2
>>
>> it appears to me that the driver needs to reset the device while it's 
>> still active & powered on, etc.
>>
>> Shubhrajyoti, care to comment further?
The driver does a reset in the error path.
Since we are not supposed to access the sysc reg the function is needed.
>>
>> - Paul


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [GIT PULL] ARM: OMAP: I2C: prepare to use hwmod reset in driver
@ 2011-12-18  8:01             ` Shubhrajyoti
  0 siblings, 0 replies; 18+ messages in thread
From: Shubhrajyoti @ 2011-12-18  8:01 UTC (permalink / raw)
  To: linux-arm-kernel

On Saturday 17 December 2011 05:54 AM, Tony Lindgren wrote:
> * Paul Walmsley <paul@pwsan.com> [111216 12:27]:
>> Hi
>>
>> On Fri, 16 Dec 2011, Tony Lindgren wrote:
>>
>>> * Paul Walmsley <paul@pwsan.com> [111216 11:45]:
>>>> On Fri, 16 Dec 2011, Tony Lindgren wrote:
>>>>
>>>>> * Paul Walmsley <paul@pwsan.com> [111216 01:24]:
>>>>>
>>>>>> Shubhrajyoti D (2):
>>>>>>       ARM: OMAP: omap_device: add omap_device_reset to reset all the hwmods in the device
>>>>>>       ARM: OMAP: I2C: Reset support
>>>>>>
>>>>> Can you please update shi to leave out the extra callback
>>>>> function int (*device_reset) (struct device *dev) as I'd
>>>>> rather see that happen with pm_runtime calls?
>>>> What PM runtime call is used to reset a device?
>>> Hmm how about pm_runtime_disable? Or do we need a new
>>> call for reset?
> Meanwhile as Paul pointed out, we still need the device_reset
> pointer, so pulling in this series into i2c branch.
>  
>> Looking at the last few hunks of:
>>
>> http://marc.info/?l=linux-omap&m=132377389204328&w=2
>>
>> it appears to me that the driver needs to reset the device while it's 
>> still active & powered on, etc.
>>
>> Shubhrajyoti, care to comment further?
The driver does a reset in the error path.
Since we are not supposed to access the sysc reg the function is needed.
>>
>> - Paul

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [GIT PULL] ARM: OMAP: I2C: prepare to use hwmod reset in driver
  2011-12-18  8:01             ` Shubhrajyoti
@ 2011-12-19 16:32               ` Cousson, Benoit
  -1 siblings, 0 replies; 18+ messages in thread
From: Cousson, Benoit @ 2011-12-19 16:32 UTC (permalink / raw)
  To: Shubhrajyoti; +Cc: Tony Lindgren, Paul Walmsley, linux-omap, linux-arm-kernel

Hi Shubhro,

On 12/18/2011 9:01 AM, Shubhrajyoti wrote:

[...]

> The driver does a reset in the error path.
> Since we are not supposed to access the sysc reg the function is needed.

I'm just wondering what will happen to the driver if this callback is 
not provided during the device creation? This is what will happen during 
DT boot for example?

Is it a mandatory function?

Thanks,
Benoit

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [GIT PULL] ARM: OMAP: I2C: prepare to use hwmod reset in driver
@ 2011-12-19 16:32               ` Cousson, Benoit
  0 siblings, 0 replies; 18+ messages in thread
From: Cousson, Benoit @ 2011-12-19 16:32 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Shubhro,

On 12/18/2011 9:01 AM, Shubhrajyoti wrote:

[...]

> The driver does a reset in the error path.
> Since we are not supposed to access the sysc reg the function is needed.

I'm just wondering what will happen to the driver if this callback is 
not provided during the device creation? This is what will happen during 
DT boot for example?

Is it a mandatory function?

Thanks,
Benoit

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [GIT PULL] ARM: OMAP: I2C: prepare to use hwmod reset in driver
  2011-12-19 16:32               ` Cousson, Benoit
@ 2011-12-19 17:37                 ` Shubhrajyoti
  -1 siblings, 0 replies; 18+ messages in thread
From: Shubhrajyoti @ 2011-12-19 17:37 UTC (permalink / raw)
  To: Cousson, Benoit
  Cc: Tony Lindgren, Paul Walmsley, linux-omap, linux-arm-kernel

On Monday 19 December 2011 10:02 PM, Cousson, Benoit wrote:
> Hi Shubhro,
>
> On 12/18/2011 9:01 AM, Shubhrajyoti wrote:
>
> [...]
>
>> The driver does a reset in the error path.
>> Since we are not supposed to access the sysc reg the function is needed.
>
> I'm just wondering what will happen to the driver if this callback is
> not provided during the device creation? This is what will happen
> during DT boot for example?
>
> Is it a mandatory function?
This is used in the recovery mechanism in case of errors like some one
holding the bus and not releasing it etc.

>
> Thanks,
> Benoit


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [GIT PULL] ARM: OMAP: I2C: prepare to use hwmod reset in driver
@ 2011-12-19 17:37                 ` Shubhrajyoti
  0 siblings, 0 replies; 18+ messages in thread
From: Shubhrajyoti @ 2011-12-19 17:37 UTC (permalink / raw)
  To: linux-arm-kernel

On Monday 19 December 2011 10:02 PM, Cousson, Benoit wrote:
> Hi Shubhro,
>
> On 12/18/2011 9:01 AM, Shubhrajyoti wrote:
>
> [...]
>
>> The driver does a reset in the error path.
>> Since we are not supposed to access the sysc reg the function is needed.
>
> I'm just wondering what will happen to the driver if this callback is
> not provided during the device creation? This is what will happen
> during DT boot for example?
>
> Is it a mandatory function?
This is used in the recovery mechanism in case of errors like some one
holding the bus and not releasing it etc.

>
> Thanks,
> Benoit

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2011-12-19 17:37 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-16  9:55 [GIT PULL] ARM: OMAP: I2C: prepare to use hwmod reset in driver Paul Walmsley
2011-12-16  9:55 ` Paul Walmsley
2011-12-16 19:50 ` Tony Lindgren
2011-12-16 19:50   ` Tony Lindgren
2011-12-16 20:17   ` Paul Walmsley
2011-12-16 20:17     ` Paul Walmsley
2011-12-16 20:41     ` Tony Lindgren
2011-12-16 20:41       ` Tony Lindgren
2011-12-16 20:59       ` Paul Walmsley
2011-12-16 20:59         ` Paul Walmsley
2011-12-17  0:24         ` Tony Lindgren
2011-12-17  0:24           ` Tony Lindgren
2011-12-18  8:01           ` Shubhrajyoti
2011-12-18  8:01             ` Shubhrajyoti
2011-12-19 16:32             ` Cousson, Benoit
2011-12-19 16:32               ` Cousson, Benoit
2011-12-19 17:37               ` Shubhrajyoti
2011-12-19 17:37                 ` Shubhrajyoti

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.