All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Garzik <jgarzik@pobox.com>
To: Mark Langsdorf <mark.langsdorf@calxeda.com>
Cc: linux-ide@vger.kernel.org, probinson@gmail.com,
	jonathon@jonmasters.org, dmarlin@redhat.com,
	Rob Herring <rob.herring@calxeda.com>
Subject: Re: [PATCH 2/2] ahci_platform: add custom hard reset for Calxeda ahci ctrlr
Date: Fri, 17 Aug 2012 13:25:18 -0400	[thread overview]
Message-ID: <502E7E7E.80101@pobox.com> (raw)
In-Reply-To: <1345215111-11051-3-git-send-email-mark.langsdorf@calxeda.com>

On 08/17/2012 10:51 AM, Mark Langsdorf wrote:
> Calxeda highbank SATA phy has intermittent problems bringing up a link
> with Gen3 drives. Retrying the phy hard reset can work-around this issue,
> but each reset also disables spread spectrum support. The reset function
> also needs to reprogram the phy to enable spread spectrum support.
>
> Signed-off-by: Mark Langsdorf <mark.langsdorf@calxeda.com>
> Signed-off-by: Rob Herring <rob.herring@calxeda.com>
> ---
>   .../devicetree/bindings/arm/calxeda/combophy.txt   |   17 ++
>   .../devicetree/bindings/ata/ahci-platform.txt      |    8 +
>   arch/arm/boot/dts/highbank.dts                     |   17 ++
>   drivers/ata/Makefile                               |    1 +
>   drivers/ata/ahci.h                                 |   17 ++
>   drivers/ata/ahci_platform.c                        |   88 ++++++++-
>   drivers/ata/sata_highbank.c                        |  199 ++++++++++++++++++++
>   7 files changed, 339 insertions(+), 8 deletions(-)
>   create mode 100644 Documentation/devicetree/bindings/arm/calxeda/combophy.txt
>   create mode 100644 drivers/ata/sata_highbank.c

This is an odd arrangement:

1) creates a sata_foo.c, which is not a driver but a library.

2) unconditionally burdens all ahci_platform users with Calxeda-specific 
code.

3) #ifndef CONFIG_ARCH_HIGHBANK code wrappers should be 'static inline'

And the biggest issue...

4) if you need all this code for workarounds, just create your own 
libahci driver at that point.  make sata_highbank a real driver.



  parent reply	other threads:[~2012-08-17 17:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-17 14:51 [PATCH 0/2] ahci: custom reset for Calxeda ahci Mark Langsdorf
2012-08-17 14:51 ` [PATCH 1/2] ahci: un-staticize ahci_dev_classify Mark Langsdorf
2012-08-17 17:27   ` Jeff Garzik
2012-08-17 14:51 ` [PATCH 2/2] ahci_platform: add custom hard reset for Calxeda ahci ctrlr Mark Langsdorf
2012-08-17 15:33   ` Rob Herring
2012-08-17 17:25   ` Jeff Garzik [this message]
2012-08-17 22:25     ` Mark Langsdorf
2012-09-06 21:03   ` [PATCH v2] ata: add platform driver for Calxeda AHCI controller Mark Langsdorf

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=502E7E7E.80101@pobox.com \
    --to=jgarzik@pobox.com \
    --cc=dmarlin@redhat.com \
    --cc=jonathon@jonmasters.org \
    --cc=linux-ide@vger.kernel.org \
    --cc=mark.langsdorf@calxeda.com \
    --cc=probinson@gmail.com \
    --cc=rob.herring@calxeda.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 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.