From: santosh.shilimkar@ti.com (Santosh Shilimkar)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/3] usb: dwc3: Add Keystone specific glue layer
Date: Wed, 27 Nov 2013 13:32:04 -0500 [thread overview]
Message-ID: <52963AA4.6030007@ti.com> (raw)
In-Reply-To: <20131127174140.GE8123@saruman.home>
On Wednesday 27 November 2013 12:41 PM, Felipe Balbi wrote:
> Hi,
>
> On Wed, Nov 27, 2013 at 02:49:54PM +0530, George Cherian wrote:
>>> + error = of_platform_populate(node, NULL, NULL, dev);
>>> + if (error) {
>>> + dev_err(&pdev->dev, "failed to create dwc3 core\n");
>>> + goto err_core;
>>> + }
>>> +
>>> + return 0;
>>> +
>>> +err_core:
>>> + kdwc3_disable_irqs(kdwc);
>>> +err_irq:
>>> + kdwc3_disable(kdwc);
>>> +
>>> + return error;
>>> +}
>>> +
>>> +static int kdwc3_remove(struct platform_device *pdev)
>>> +{
>>> + struct dwc3_keystone *kdwc = platform_get_drvdata(pdev);
>>> +
>>> + if (kdwc) {
>>> + kdwc3_disable_irqs(kdwc);
>>> + kdwc3_disable(kdwc);
>>> + platform_set_drvdata(pdev, NULL);
>>> + }
>>> + return 0;
>>> +}
>>> +
>>
>> You need to unregister the child nodes in remove.
>> Also why can't the dwc3-omap driver be reused, Felipe??
>> I believe the TI wrapper for Keystone is similar to that of AM437x or
>> OMAP5.
>
> it is very similar indeed, if it can be easily re-use that glue, I'd
> rather not add another.
>
Initial idea was actually to use same driver but the integration IP
is quite different on Keystone vs OMAP which lead to have a separate
glue layer. They look similar but there are differences in terms of phys,
interrupts, register space. And also non OTG support, runtime PM
vs clock etc for now.
After all the glue is really a very small code describes the integration
details thanks to nice abstracted dwc3 core layer. So as discussed
over irc, keeping the separate glue is preferred but do let us know
if you think otherwise.
Regards,
Santosh
next prev parent reply other threads:[~2013-11-27 18:32 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-25 20:16 [PATCH 0/3] Kesytone II USB support WingMan Kwok
2013-11-25 20:16 ` [PATCH 1/3] usb: dwc3: Add Keystone specific glue layer WingMan Kwok
2013-11-25 20:39 ` Felipe Balbi
2013-11-26 0:49 ` Santosh Shilimkar
2013-11-26 17:16 ` Felipe Balbi
2013-11-26 18:21 ` Santosh Shilimkar
2013-11-27 9:19 ` George Cherian
2013-11-27 17:41 ` Felipe Balbi
2013-11-27 18:32 ` Santosh Shilimkar [this message]
2013-11-27 19:39 ` Felipe Balbi
2013-11-25 20:16 ` [PATCH 2/3] ARM: dts: keystone: Add usb devicetree bindings WingMan Kwok
2013-11-25 20:42 ` Felipe Balbi
2013-11-25 21:04 ` Santosh Shilimkar
2013-11-25 21:06 ` Felipe Balbi
2013-11-27 9:59 ` George Cherian
2013-11-27 20:24 ` Santosh Shilimkar
2013-11-25 20:16 ` [PATCH 3/3] ARM: keystone: defconfig: enable USB host mode support WingMan Kwok
2013-11-25 20:43 ` 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=52963AA4.6030007@ti.com \
--to=santosh.shilimkar@ti.com \
--cc=linux-arm-kernel@lists.infradead.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 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.