From: Mike Anderson <andmike@us.ibm.com>
To: Matt Domsch <Matt_Domsch@Dell.com>
Cc: linux-kernel@vger.kernel.org, mochel@osdl.org,
linux-scsi@vger.kernel.org
Subject: Re: [PATCH] EDD: fix raw_data file and edd_has_edd30(), misc cleanups
Date: Tue, 7 Jan 2003 16:18:06 -0800 [thread overview]
Message-ID: <20030108001806.GA3669@beaverton.ibm.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0301071728280.3361-100000@humbolt.us.dell.com>
Matt Domsch [Matt_Domsch@Dell.com] wrote:
> * use new find_bus() and bus_for_each_dev() to match SCSI devices
.. snip ..
> + struct edd_match_data * data = (struct edd_match_data *)d;
> + struct edd_info *info = edd_dev_get_info(data->edev);
> + struct scsi_device * sd = to_scsi_device(dev);
> +
> + if (info) {
> + if ((sd->channel == info->params.interface_path.pci.channel) &&
> + (sd->id == info->params.device_path.scsi.id) &&
> + (sd->lun == info->params.device_path.scsi.lun)) {
> + data->sd = sd;
> + return 1;
> + }
This change assumes that the scsi sysfs bus only contains struct
scsi_device's. According to sysfs policy we are suppose to have only one
type of struct on this list, but this is not the case currently.
I will work on a patch tonight to remove these extra nodes so that the
st, sg, and osst maintainers can review it.
-andmike
--
Michael Anderson
andmike@us.ibm.com
next prev parent reply other threads:[~2003-01-08 0:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20BF5713E14D5B48AA289F72BD372D6801E05CB9@AUSXMPC122.aus.amer.dell.com>
2003-01-07 23:29 ` [PATCH] EDD: fix raw_data file and edd_has_edd30(), misc cleanups Matt Domsch
2003-01-08 0:18 ` Mike Anderson [this message]
2003-01-07 23:24 Matt Domsch
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=20030108001806.GA3669@beaverton.ibm.com \
--to=andmike@us.ibm.com \
--cc=Matt_Domsch@Dell.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=mochel@osdl.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