From: Reinhard Nissl <rnissl@gmx.de>
To: kewei@marvell.com
Cc: linux-scsi@vger.kernel.org, jeff@garzik.org,
james.bottomley@hansenpartnership.com, qzhao@marvell.com,
qswang@marvell.com, jfeng@marvell.com, jasonchu@marvell.com
Subject: Re: [PATCH 5/5] mvsas : redesign the mvsas driver architecture.
Date: Tue, 03 Mar 2009 22:34:34 +0100 [thread overview]
Message-ID: <49ADA26A.6020402@gmx.de> (raw)
In-Reply-To: <49A3C11B.3020107@marvell.com>
Hi,
Ke Wei schrieb:
> + mvs_64xx_detect_porttype(mvi, i);
> + }
> + if (mvi->flags & MVF_FLAG_SOC) {
> + /* set select registers */
> + writel(0x0E008000, regs + 0x000);
> + writel(0x59000008, regs + 0x004);
> + writel(0x20, regs + 0x008);
> + writel(0x20, regs + 0x00c);
> + writel(0x20, regs + 0x010);
> + writel(0x20, regs + 0x014);
> + writel(0x20, regs + 0x018);
> + writel(0x20, regs + 0x01c);
> + }
> + for (i = 0; i < mvi->chip->n_phy; i++) {
> + /* clear phy int status */
> + tmp = mvs_read_port_irq_stat(mvi, i);
> + tmp &= ~PHYEV_SIG_FIS;
> + mvs_write_port_irq_stat(mvi, i, tmp);
> +
> + /* set phy int mask */
> + tmp = PHYEV_RDY_CH | PHYEV_BROAD_CH | PHYEV_UNASSOC_FIS |
> + PHYEV_ID_DONE | PHYEV_DCDR_ERR | PHYEV_CRC_ERR |
> + PHYEV_DEC_ERR;
> + mvs_write_port_irq_mask(mvi, i, tmp);
> +
> + msleep(100);
> + mvs_update_phyinfo(mvi, i, 1);
I assume that this code doesn't work with my Seagate 10k6 drive
ST3450856SS 0003. Looks like it still just waits for 100 ms which
seems to be not sufficient for this drive (see the thread on this
list regarding this drive).
Is there no way to determine that port detection has finished?
Bye.
--
Dipl.-Inform. (FH) Reinhard Nissl
mailto:rnissl@gmx.de
prev parent reply other threads:[~2009-03-03 21:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-24 9:42 [PATCH 5/5] mvsas : redesign the mvsas driver architecture Ke Wei
2009-03-03 21:34 ` Reinhard Nissl [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=49ADA26A.6020402@gmx.de \
--to=rnissl@gmx.de \
--cc=james.bottomley@hansenpartnership.com \
--cc=jasonchu@marvell.com \
--cc=jeff@garzik.org \
--cc=jfeng@marvell.com \
--cc=kewei@marvell.com \
--cc=linux-scsi@vger.kernel.org \
--cc=qswang@marvell.com \
--cc=qzhao@marvell.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