All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sshtylyov@mvista.com>
To: "Gupta, Ajay Kumar" <ajay.gupta@ti.com>
Cc: Sergei Shtylyov <sshtylyov@mvista.com>,
	"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	"Balbi, Felipe" <balbi@ti.com>, Tony Lindgren <tony@atomide.com>
Subject: Re: [PATCH v2] musb: am35x: fix compile error due to control apis
Date: Mon, 06 Dec 2010 20:13:11 +0300	[thread overview]
Message-ID: <4CFD19A7.5020902@ru.mvista.com> (raw)
In-Reply-To: <19F8576C6E063C45BE387C64729E739404BCE3A1EC@dbde02.ent.ti.com>

Hello.

Gupta, Ajay Kumar wrote:

>>> As the control.h have been moved to new location and it's
>>> uses are not allowed to drivers directly so moving the phy
>>> control, interrupt clear and reset functionality to board
>>> files.

>>     I'm not fond of the whole approach. I'm not sure why accesses to the
>> control registers are such a no-no, taking into account that one needs to
>> access such regisyter to clear the interrupt...

> I think Tony is the right person to answer this :)

    Yeah, I thought he must be reading linux-omap...

>>> Signed-off-by: Ajay Kumar Gupta<ajay.gupta@ti.com>
>> [...]

>>> diff --git a/arch/arm/mach-omap2/usb-musb.c b/arch/arm/mach-omap2/usb-musb.c

> [...]

>>> +	regval&= ~AM35XX_USBOTGSS_SW_RST;
>>> +	omap_ctrl_writel(regval, AM35XX_CONTROL_IP_SW_RESET);
>>> +
>>> +	regval = omap_ctrl_readl(AM35XX_CONTROL_IP_SW_RESET);
>>     Why read it and ignore the result?

> This is due to recommendation for OMAPs as discussed at below
> Link,
> http://markmail.org/message/s3lp7xlyq7zxnjtc#query:+page:1+mid:kfia4ld4xgzek6kq+state:results

    There is recommendation to read back the interrupt status register, which 
this register isn't. Anyway, a comment wouldn't hurt...

> Thanks,
> Ajay

WBR, Sergei

  reply	other threads:[~2010-12-06 17:14 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-06  8:13 [PATCH v2] musb: am35x: fix compile error due to control apis Ajay Kumar Gupta
     [not found] ` <1291623211-959-1-git-send-email-ajay.gupta-l0cyMroinI0@public.gmane.org>
2010-12-06 10:37   ` Sergei Shtylyov
     [not found]     ` <4CFCBCF1.9010902-hkdhdckH98+B+jHODAdFcQ@public.gmane.org>
2010-12-06 12:31       ` Gupta, Ajay Kumar
2010-12-06 17:13         ` Sergei Shtylyov [this message]
2010-12-06 17:54           ` Tony Lindgren
     [not found]             ` <20101206175445.GF8345-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2010-12-07 13:20               ` Sergei Shtylyov
     [not found]                 ` <4CFE3495.5090204-hkdhdckH98+B+jHODAdFcQ@public.gmane.org>
2010-12-15  3:01                   ` Paul Walmsley
2011-01-18 19:15   ` Ben Gamari
2011-01-24 15:45     ` Ben Gamari
     [not found]       ` <87k4hu8fvx.fsf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-01-27  4:48         ` Felipe Balbi
     [not found]           ` <20110127044810.GJ2429-UiBtZHVXSwEVvW8u9ZQWYwjfymiNCTlR@public.gmane.org>
2011-01-27 12:31             ` Ben Gamari
2011-02-01  7:26               ` Felipe Balbi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CFD19A7.5020902@ru.mvista.com \
    --to=sshtylyov@mvista.com \
    --cc=ajay.gupta@ti.com \
    --cc=balbi@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=tony@atomide.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.