From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: Sergei Shtylyov <sshtylyov@mvista.com>
Cc: linux-arm-kernel@lists.infradead.org,
Nicolas Ferre <nicolas.ferre@atmel.com>,
linux-ide@vger.kernel.org
Subject: Re: [PATCH 2/3] pata/at91: use new introduce smc accessor
Date: Fri, 9 Dec 2011 19:42:39 +0100 [thread overview]
Message-ID: <20111209184239.GR23884@game.jcrosoft.org> (raw)
In-Reply-To: <4EE1EA25.3010002@mvista.com>
On 14:59 Fri 09 Dec , Sergei Shtylyov wrote:
> Hello.
>
> On 08-12-2011 19:23, Jean-Christophe PLAGNIOL-VILLARD wrote:
>
> Your subject doesn't parse. Maybe you meant "use newly introduced
> smc accessor"?
yeap
>
> >this will allow to use the pata_at91 on a single zImage
>
> >Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD<plagnioj@jcrosoft.com>
> >Cc: Nicolas Ferre<nicolas.ferre@atmel.com>
> >Cc: linux-ide@vger.kernel.org
> >---
> >Hi,
>
> > it's depends on other patch for AT91 can we apply via at91
>
> >Best Regards,
> >J.
> > drivers/ata/pata_at91.c | 43 +++++++++++++++++++++----------------------
> > 1 files changed, 21 insertions(+), 22 deletions(-)
>
> >diff --git a/drivers/ata/pata_at91.c b/drivers/ata/pata_at91.c
> >index 5249e6d..c8d1154 100644
> >--- a/drivers/ata/pata_at91.c
> >+++ b/drivers/ata/pata_at91.c
> >@@ -207,11 +207,11 @@ static void set_smc_timing(struct device *dev, struct ata_device *adev,
> > {
> > int ret = 0;
> > int use_iordy;
> >+ struct sam9_smc_config smc;
> > unsigned int t6z; /* data tristate time in ns */
> > unsigned int cycle; /* SMC Cycle width in MCK ticks */
> > unsigned int setup; /* SMC Setup width in MCK ticks */
> > unsigned int pulse; /* CFIOR and CFIOW pulse width in MCK ticks */
> >- unsigned int cs_setup = 0;/* CS4 or CS5 setup width in MCK ticks */
> > unsigned int cs_pulse; /* CS4 or CS5 pulse width in MCK ticks*/
> > unsigned int tdf_cycles; /* SMC TDF MCK ticks */
> > unsigned long mck_hz; /* MCK frequency in Hz */
> >@@ -244,26 +244,25 @@ static void set_smc_timing(struct device *dev, struct ata_device *adev,
> > }
> >
> > dev_dbg(dev, "Use IORDY=%u, TDF Cycles=%u\n", use_iordy, tdf_cycles);
> >- info->mode |= AT91_SMC_TDF_(tdf_cycles);
> >
> > /* write SMC Setup Register */
> >- at91_sys_write(AT91_SMC_SETUP(info->cs),
> >- AT91_SMC_NWESETUP_(setup) |
> >- AT91_SMC_NRDSETUP_(setup) |
> >- AT91_SMC_NCS_WRSETUP_(cs_setup) |
> >- AT91_SMC_NCS_RDSETUP_(cs_setup));
> >+ smc.nrd_setup = setup;
> >+ smc.nwe_setup = smc.nrd_setup;
> >+ smc.ncs_read_setup = 0;
> >+ smc.ncs_write_setup = smc.ncs_read_setup;
>
> Why not:
>
> smc.nrd_setup = smc.nwe_setup = setup;
> smc.ncs_read_setup = smc.ncs_write_setup = 0;
why not
Best Regards,
J.
next prev parent reply other threads:[~2011-12-09 18:46 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20111208150348.GD23884@game.jcrosoft.org>
2011-12-08 15:23 ` [PATCH 2/3] pata/at91: use new introduce smc accessor Jean-Christophe PLAGNIOL-VILLARD
2011-12-08 22:34 ` Ryan Mallon
2011-12-09 6:24 ` Jean-Christophe PLAGNIOL-VILLARD
2011-12-09 10:59 ` Sergei Shtylyov
2011-12-09 18:42 ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2011-12-08 15:23 ` [PATCH 3/3] ide/at91: " Jean-Christophe PLAGNIOL-VILLARD
2011-12-08 22:38 ` Ryan Mallon
2011-12-09 6:19 ` Jean-Christophe PLAGNIOL-VILLARD
2011-12-09 11:06 ` Sergei Shtylyov
2011-12-09 18:40 ` Jean-Christophe PLAGNIOL-VILLARD
2011-12-09 13:59 ` Arnd Bergmann
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=20111209184239.GR23884@game.jcrosoft.org \
--to=plagnioj@jcrosoft.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-ide@vger.kernel.org \
--cc=nicolas.ferre@atmel.com \
--cc=sshtylyov@mvista.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).