Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42485
b: refs/heads/master
c: 529e7a6
h: refs/heads/master
i:
  42483: e6870e0
v: v3
  • Loading branch information
Ed Lin authored and James Bottomley committed Dec 5, 2006
1 parent e9f16d1 commit a817c1c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 47c4f997c7bd9ab142c65950317232728b921aa0
refs/heads/master: 529e7a62c8016ab7d3ef4ef6d39de23c0569781f
11 changes: 10 additions & 1 deletion trunk/drivers/scsi/stex.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ enum {

MU_MAX_DELAY_TIME = 240000,
MU_HANDSHAKE_SIGNATURE = 0x55aaaa55,
MU_HANDSHAKE_SIGNATURE_HALF = 0x5a5a0000,
HMU_PARTNER_TYPE = 2,

/* firmware returned values */
Expand Down Expand Up @@ -902,6 +903,7 @@ static int stex_handshake(struct st_hba *hba)
void __iomem *base = hba->mmio_base;
struct handshake_frame *h;
dma_addr_t status_phys;
u32 data;
int i;

if (readl(base + OMR0) != MU_HANDSHAKE_SIGNATURE) {
Expand All @@ -923,6 +925,13 @@ static int stex_handshake(struct st_hba *hba)

udelay(10);

data = readl(base + OMR1);
if ((data & 0xffff0000) == MU_HANDSHAKE_SIGNATURE_HALF) {
data &= 0x0000ffff;
if (hba->host->can_queue > data)
hba->host->can_queue = data;
}

h = (struct handshake_frame *)(hba->dma_mem + MU_REQ_BUFFER_SIZE);
h->rb_phy = cpu_to_le32(hba->dma_handle);
h->rb_phy_hi = cpu_to_le32((hba->dma_handle >> 16) >> 16);
Expand Down Expand Up @@ -1234,7 +1243,7 @@ stex_probe(struct pci_dev *pdev, const struct pci_device_id *id)
if (err)
goto out_free_irq;

err = scsi_init_shared_tag_map(host, ST_CAN_QUEUE);
err = scsi_init_shared_tag_map(host, host->can_queue);
if (err) {
printk(KERN_ERR DRV_NAME "(%s): init shared queue failed\n",
pci_name(pdev));
Expand Down

0 comments on commit a817c1c

Please sign in to comment.