Linux ATA/IDE development
 help / color / mirror / Atom feed
From: Tejun Heo <tj@kernel.org>
To: Manuel Lauss <manuel.lauss@gmail.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: [PATCH v2] ata: ahci: find eSATA ports and flag them as removable
Date: Wed, 30 Sep 2015 17:39:10 -0400	[thread overview]
Message-ID: <20150930213910.GG2627@mtj.duckdns.org> (raw)
In-Reply-To: <1443640225-11860-1-git-send-email-manuel.lauss@gmail.com>

On Wed, Sep 30, 2015 at 09:10:25PM +0200, Manuel Lauss wrote:
> If the AHCI ports' HPCP or ESP bits are set, the port
> should be considered external (e.g. eSATA) and is marked
> as removable.  Userspace tools like udisks then treat it
> like an usb drive.
> 
> With this patch applied, when I plug a drive into the esata port,
> KDE pops up a window asking what to do with the drives(s), just
> like it does for any random USB stick.
> 
> Removability is indicated to the upper layers by way of the
> SCSI RMB bit, as I haven't found another way to signal
> userspace to treat a sata disk like any usb stick.
> 
> Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com>

Applied to libata/for-4.4.  Let's see what happens.

Thanks.

-- 
tejun

  reply	other threads:[~2015-09-30 21:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-30 19:10 [PATCH v2] ata: ahci: find eSATA ports and flag them as removable Manuel Lauss
2015-09-30 21:39 ` Tejun Heo [this message]
2015-10-16 12:42   ` Mark Lord
2015-10-16 12:54     ` Tejun Heo
2015-10-19  2:32       ` Mark Lord

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=20150930213910.GG2627@mtj.duckdns.org \
    --to=tj@kernel.org \
    --cc=linux-ide@vger.kernel.org \
    --cc=manuel.lauss@gmail.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