From: Tejun Heo <tj@kernel.org>
To: Gwendal Grignou <gwendal@google.com>
Cc: IDE/ATA development list <linux-ide@vger.kernel.org>,
linux-scsi@vger.kernel.org
Subject: Re: [PATCH #upstream-fixes] libata: Add transport class for libata
Date: Wed, 20 Aug 2008 17:17:01 +0900 [thread overview]
Message-ID: <48ABD2FD.8010802@kernel.org> (raw)
In-Reply-To: <e7510f760808182131q1bd3aa4bp694ebff75b612995@mail.gmail.com>
Gwendal Grignou wrote:
>>From df84b33306569f8247f331fd67b0a7e7dfb47936 Mon Sep 17 00:00:00 2001
> From: Gwendal Grignou <gwendal@google.com>
> Date: Mon, 18 Aug 2008 14:02:09 -0700
> Subject: Add transport class for libata.
>
> This patch adds objects for accessing libata objects from user space:
> - ata_port class: one per ATA port
> - ata_link class: one per ATA port or 15 for SATA Port Multiplier
> - ata_device class: up to 2 for PATA link, usually one for SATA.
>
> Each object exports information from the corresponding data strucure.
> For instance, ata_device exports id, the cached identify output if
> the device is a disk, gscr register output if it is a PM.
>
> More fields can be added later, like error counters and ATA specific
> statistics.
Ah... I'm not so sure about the class transport approach although I do
agree that sysfs hierarchy for libata is way overdue. Hmmm... Can you
please explain the planned hierarchy and how you're gonna match lifetime
rules? Because libata uses very different object lifetime rules from
the generic driver layer, it can get ugly at times and from a quick
glance I don't really think the problem has been addressed but I could
have just missed it.
Thanks.
--
tejun
next prev parent reply other threads:[~2008-08-20 8:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-19 4:31 [PATCH #upstream-fixes] libata: Add transport class for libata Gwendal Grignou
2008-08-19 11:34 ` Stefan Richter
2008-08-19 12:27 ` Matthew Wilcox
2008-08-19 13:04 ` Stefan Richter
2008-08-19 13:16 ` Stefan Richter
2008-08-19 13:41 ` Stefan Richter
2008-08-19 18:14 ` Gwendal Grignou
2008-08-20 8:17 ` Tejun Heo [this message]
2008-08-20 18:55 ` Gwendal Grignou
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=48ABD2FD.8010802@kernel.org \
--to=tj@kernel.org \
--cc=gwendal@google.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
/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).