From: Tony Lindgren <tony@atomide.com>
To: Felipe Balbi <balbi@ti.com>
Cc: Ajay Kumar Gupta <ajay.gupta@ti.com>,
linux-usb@vger.kernel.org, linux-omap@vger.kernel.org
Subject: Re: [PATCH 1/2] AM35x: musb: fix compilation error
Date: Tue, 30 Nov 2010 10:30:10 -0800 [thread overview]
Message-ID: <20101130183010.GS17222@atomide.com> (raw)
In-Reply-To: <20101122102230.GP2446@legolas.emea.dhcp.ti.com>
* Felipe Balbi <balbi@ti.com> [101122 02:12]:
> Hi,
>
> On Mon, Nov 22, 2010 at 02:22:40PM +0530, Ajay Kumar Gupta wrote:
> >Fixes compilation error as control.h APIs are not available to
> >drivers/usb/musb/am35x.c file. Earlier it was getting included
> >from <plat/control.h> but now moved to new location by another
> >pacth.
> >
> >Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
>
> Tony ? Do you ack the usage of that header ?
NAK. Drivers should not mess with the control registers directly.
Instead, the following should be done in the platform init code:
$ grep -r omap_ctrl_read drivers/usb
drivers/usb/musb/am35x.c: devconf2 = omap_ctrl_readl(AM35XX_CONTROL_DEVCONF2);
drivers/usb/musb/am35x.c: while (!(omap_ctrl_readl(AM35XX_CONTROL_DEVCONF2)
drivers/usb/musb/am35x.c: devconf2 = omap_ctrl_readl(AM35XX_CONTROL_DEVCONF2);
drivers/usb/musb/am35x.c: lvl_intr = omap_ctrl_readl(AM35XX_CONTROL_LVL_INTR_CLEAR);
drivers/usb/musb/am35x.c: u32 devconf2 = omap_ctrl_readl(AM35XX_CONTROL_DEVCONF2);
drivers/usb/musb/am35x.c: sw_reset = omap_ctrl_readl(AM35XX_CONTROL_IP_SW_RESET);
drivers/usb/musb/am35x.c: lvl_intr = omap_ctrl_readl(AM35XX_CONTROL_LVL_INTR_CLEAR);
You can pass a function pointer like board_set_power or simila
in platform_data.
Regards,
Tony
next prev parent reply other threads:[~2010-11-30 18:30 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-22 8:52 [PATCH 1/2] AM35x: musb: fix compilation error Ajay Kumar Gupta
2010-11-22 8:52 ` [PATCH 2/2] musb_gadget: fix compilation warning Ajay Kumar Gupta
[not found] ` <1290415961-21177-2-git-send-email-ajay.gupta-l0cyMroinI0@public.gmane.org>
2010-11-22 10:41 ` Felipe Balbi
[not found] ` <1290415961-21177-1-git-send-email-ajay.gupta-l0cyMroinI0@public.gmane.org>
2010-11-22 10:22 ` [PATCH 1/2] AM35x: musb: fix compilation error Felipe Balbi
2010-11-30 18:30 ` Tony Lindgren [this message]
[not found] ` <20101130183010.GS17222-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2010-12-01 8:41 ` Felipe Balbi
[not found] ` <20101201084100.GC2796-UiBtZHVXSwEVvW8u9ZQWYwjfymiNCTlR@public.gmane.org>
2010-12-01 12:08 ` Gupta, Ajay Kumar
[not found] ` <19F8576C6E063C45BE387C64729E739404BCE39717-/tLxBxkBPtCIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2010-12-01 19:32 ` Felipe Balbi
2010-12-02 4:52 ` Gupta, Ajay Kumar
[not found] ` <19F8576C6E063C45BE387C64729E739404BCE398D7-/tLxBxkBPtCIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2010-12-02 8:29 ` Felipe Balbi
[not found] ` <20101202082904.GH5429-UiBtZHVXSwEVvW8u9ZQWYwjfymiNCTlR@public.gmane.org>
2010-12-02 10:43 ` Gupta, Ajay Kumar
[not found] ` <19F8576C6E063C45BE387C64729E739404BCE39A7E-/tLxBxkBPtCIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2010-12-03 12:43 ` Felipe Balbi
[not found] ` <20101203124317.GB2633-UiBtZHVXSwEVvW8u9ZQWYwjfymiNCTlR@public.gmane.org>
2010-12-03 13:38 ` Gupta, Ajay Kumar
2010-12-06 11:20 ` Felipe Balbi
2010-12-06 11:54 ` Gupta, Ajay Kumar
[not found] ` <19F8576C6E063C45BE387C64729E739404BCE3A1B4-/tLxBxkBPtCIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2010-12-06 12:18 ` Felipe Balbi
[not found] ` <20101206121812.GC3693-UiBtZHVXSwEVvW8u9ZQWYwjfymiNCTlR@public.gmane.org>
2010-12-07 13:55 ` Gupta, Ajay Kumar
[not found] ` <19F8576C6E063C45BE387C64729E739404BCF8771E-/tLxBxkBPtCIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2010-12-07 16: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=20101130183010.GS17222@atomide.com \
--to=tony@atomide.com \
--cc=ajay.gupta@ti.com \
--cc=balbi@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox