From: Lin Ming <ming.m.lin@intel.com>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: linux-ide@vger.kernel.org, lkml <linux-kernel@vger.kernel.org>,
jslaby@suse.cz, cwillu@cwillu.com, jackdachef@gmail.com,
Sergei Shtylyov <sshtylyov@mvista.com>
Subject: Re: [RESEND PATCH v2] libata: disable runtime pm for hotpluggable port
Date: Fri, 13 Apr 2012 09:24:07 +0800 [thread overview]
Message-ID: <1334280247.11188.115.camel@minggr> (raw)
In-Reply-To: <4F871916.9080705@pobox.com>
On Thu, 2012-04-12 at 14:04 -0400, Jeff Garzik wrote:
> On 04/12/2012 01:56 AM, Lin Ming wrote:
> > Currently, hotplug doesn't work if port is already runtime suspended.
> > For now, we simply disable runtime pm for hotpluggable port.
> > Later, we should add runtime pm support for hotpluggable port too.
> >
> > Bug report:
> > https://lkml.org/lkml/2012/2/19/70
> >
> > v2:
> > - Use bit 2 and 3 for flags ATA_FLAG_EXTERNAL and ATA_FLAG_PLUGGABLE.
> >
> > TODO: add similar hotpluggable port check for controllers other than
> > AHCI.
> >
> > Reported-and-tested-by: Jiri Slaby<jslaby@suse.cz>
> > Reported-and-tested-by: cwillu@cwillu.com
> > Reported-and-tested-by: jackdachef@gmail.com
> > Signed-off-by: Lin Ming<ming.m.lin@intel.com>
> > ---
> > drivers/ata/ahci.c | 3 +++
> > drivers/ata/ahci.h | 3 +++
> > drivers/ata/libahci.c | 20 ++++++++++++++++++++
> > drivers/ata/libata-transport.c | 6 ++++--
> > include/linux/libata.h | 2 ++
> > 5 files changed, 32 insertions(+), 2 deletions(-)
>
> The fundamental problem with this patch is that all SATA ports are
> hotpluggable... even the ones the firmware/silicon failed to mark as
> hotpluggable via AHCI's PORT_CMD_MPSP | PORT_CMD_HPCP
So the acceptable solution is to add runtime pm support for hotpluggable
port.
I'll send new patches.
Thanks,
Lin Ming
prev parent reply other threads:[~2012-04-13 1:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-12 5:56 [RESEND PATCH v2] libata: disable runtime pm for hotpluggable port Lin Ming
2012-04-12 18:04 ` Jeff Garzik
2012-04-13 1:24 ` Lin Ming [this message]
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=1334280247.11188.115.camel@minggr \
--to=ming.m.lin@intel.com \
--cc=cwillu@cwillu.com \
--cc=jackdachef@gmail.com \
--cc=jgarzik@pobox.com \
--cc=jslaby@suse.cz \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--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