From: Soeren Moch <smoch@web.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] dwc_ahsata.c: Add weak disable_sata_clock
Date: Tue, 25 Nov 2014 23:50:41 +0100 [thread overview]
Message-ID: <547507C1.9050909@web.de> (raw)
In-Reply-To: <1416952213-17623-1-git-send-email-trini@ti.com>
On 11/25/14 23:34, Soeren Moch wrote:
> > Signed-off-by: Tom Rini <trini@ti.com <http://lists.denx.de/mailman/listinfo/u-boot>>
> > ---
> > drivers/block/dwc_ahsata.c | 5 +++++
> > 1 file changed, 5 insertions(+)
> >
> > diff --git a/drivers/block/dwc_ahsata.c b/drivers/block/dwc_ahsata.c
> > index 9a2b547..e9d4283 100644
> > --- a/drivers/block/dwc_ahsata.c
> > +++ b/drivers/block/dwc_ahsata.c
> > @@ -16,6 +16,7 @@
> > #include <asm/errno.h>
> > #include <asm/io.h>
> > #include <linux/bitops.h>
> > +#include <linux/compiler.h>
> > #include <asm/arch/clock.h>
> > #include <asm/arch/sys_proto.h>
> > #include "dwc_ahsata.h"
> > @@ -592,6 +593,10 @@ int init_sata(int dev)
> > return 0;
> > }
> >
> > +__weak void disable_sata_clock(void)
> > +{
> > +}
> > +
> > int reset_sata(int dev)
> > {
> > struct ahci_probe_ent *probe_ent =
>
> Tom, Nikita,
>
> instead of adding a weak function for architectures without 'disable_sata_clock',
> should we remove this call from reset_sata entirely?
>
> 'reset_sata' is called repeatedly for several devices, but 'disable_sata_clock'
> has no such device parameter. Which clock should be disabled here? Makes not much
> sense for me.
>
> BTW, there is an additional problem with 'reset_sata'. If sata support is configured
> into u-boot, but nobody has called 'sata init' before booting the kernel, I see a
> data abort exception on bootm. Tested on TBS2910 board (i.MX6Q-based).
>
> Regards,
> Soeren
Forgot to add the u-boot list, sorry. Please ignore the previous email with wrong sender address.
next prev parent reply other threads:[~2014-11-25 22:50 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-25 21:50 [U-Boot] [PATCH] dwc_ahsata.c: Add weak disable_sata_clock Tom Rini
2014-11-25 22:50 ` Soeren Moch [this message]
2014-11-26 0:26 ` Tom Rini
2014-11-26 1:36 ` Soeren Moch
2014-11-26 11:40 ` [U-Boot] [PATCH] sata: fix reset_sata for dwc_ahsata Soeren Moch
2014-11-26 17:38 ` Nikita Kiryanov
2014-11-26 23:32 ` Soeren Moch
2014-11-27 1:12 ` Fabio Estevam
2014-11-27 6:53 ` Soeren Moch
2014-11-27 10:56 ` Nikita Kiryanov
2014-11-27 9:11 ` [U-Boot] [PATCH v2] " Soeren Moch
2014-11-27 10:58 ` Nikita Kiryanov
2014-12-01 9:37 ` Stefano Babic
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=547507C1.9050909@web.de \
--to=smoch@web.de \
--cc=u-boot@lists.denx.de \
/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