From: Felipe Balbi <balbi-l0cyMroinI0@public.gmane.org>
To: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
Cc: Felipe Balbi <balbi-l0cyMroinI0@public.gmane.org>,
Ajay Kumar Gupta <ajay.gupta-l0cyMroinI0@public.gmane.org>,
linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 1/2] AM35x: musb: fix compilation error
Date: Wed, 1 Dec 2010 10:41:00 +0200 [thread overview]
Message-ID: <20101201084100.GC2796@legolas.emea.dhcp.ti.com> (raw)
In-Reply-To: <20101130183010.GS17222-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
On Tue, Nov 30, 2010 at 10:30:10AM -0800, Tony Lindgren wrote:
>* Felipe Balbi <balbi-l0cyMroinI0@public.gmane.org> [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-l0cyMroinI0@public.gmane.org>
>>
>> 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.
That was my feeling too. Anand, care to update ?!?
--
balbi
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2010-12-01 8:41 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
[not found] ` <20101130183010.GS17222-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2010-12-01 8:41 ` Felipe Balbi [this message]
[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=20101201084100.GC2796@legolas.emea.dhcp.ti.com \
--to=balbi-l0cymroini0@public.gmane.org \
--cc=ajay.gupta-l0cyMroinI0@public.gmane.org \
--cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.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