linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Igor Grinberg <grinberg@compulab.co.il>
Cc: Ilya Yanok <yanok@emcraft.com>,
	linux-omap@vger.kernel.org, wd@denx.de, dzu@denx.de,
	sasha_d@emcraft.com, Paul Walmsley <paul@pwsan.com>
Subject: Re: [PATCH] am35xx-emac: move generic EMAC init to separate file
Date: Thu, 15 Dec 2011 10:43:43 -0800	[thread overview]
Message-ID: <20111215184342.GT32251@atomide.com> (raw)
In-Reply-To: <4EE9C057.6010204@compulab.co.il>

* Igor Grinberg <grinberg@compulab.co.il> [111215 01:07]:
> Hi Ilya
> 
> On 12/15/11 01:46, Ilya Yanok wrote:
> > Hi Tony,
> > 
> > On 08.12.2011 04:15, Tony Lindgren wrote:
> >>> AM35xx SoCs include DaVinci EMAC IP. Initialization code in
> >>> board-am3517evm.c is pretty board independent and will work for any
> >>> AM35xx based board so move this code to it's own file to be reused by
> >>> other boards.
> >>
> >> Should this be just called emac-common.c? Or is it so am35xx specific
> >> that it won't work with others?
> > 
> > Uh.. I'm not sure but I thought that EMAC is present only on am35xx SoCs...

OK, maybe just do a quick check on that so we don't end up
moving the platform init code around again in few months?
 
> >>> +	clk_add_alias(NULL, dev_name(&am35xx_emac_device.dev),
> >>> +		      "emac_clk", &am35xx_emac_device.dev);
> >>> +	clk_add_alias(NULL, dev_name(&am35xx_mdio_device.dev),
> >>> +		      "phy_clk", &am35xx_emac_device.dev);
> >>
> >> Hmm after moving the code and should be a separate patch, don't
> >> we already have these clock aliases in cloc3xxx_data.c?
> > 
> > No, we have
> > CLK("davinci_emac", "emac_clk"...) and
> > CLK("davinci_emac", "phy_clk"...)
> > while drivers want ("davinci_emac", NULL) and ("davinci_mdio", NULL).
> > 
> > Probably we have to fix the clock definitions instead of adding the aliases.
> > 
> > So, should I post this as a separate patch?
> 
> If it comes to that question, Cc Paul...

Yes please do that as a separate patch.

Thanks,

TOny

  reply	other threads:[~2011-12-15 18:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-17  0:36 [PATCH] am35xx-emac: move generic EMAC init to separate file Ilya Yanok
2011-12-08  0:15 ` Tony Lindgren
2011-12-14 23:46   ` Ilya Yanok
2011-12-15  9:39     ` Igor Grinberg
2011-12-15 18:43       ` Tony Lindgren [this message]
2011-12-15 21:42         ` Ilya Yanok
2011-12-16  6:13           ` Paul Walmsley
2011-12-20 22:31             ` Ilya Yanok
2011-12-21  1:38               ` Paul Walmsley

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=20111215184342.GT32251@atomide.com \
    --to=tony@atomide.com \
    --cc=dzu@denx.de \
    --cc=grinberg@compulab.co.il \
    --cc=linux-omap@vger.kernel.org \
    --cc=paul@pwsan.com \
    --cc=sasha_d@emcraft.com \
    --cc=wd@denx.de \
    --cc=yanok@emcraft.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).