Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173251
b: refs/heads/master
c: de1b043
h: refs/heads/master
i:
  173249: 39e9dbf
  173247: f7262f6
v: v3
  • Loading branch information
Peter Oberparleiter authored and Martin Schwidefsky committed Dec 7, 2009
1 parent 2245591 commit efc70b8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 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: 7a8ad1001c51bba0507ee08cb4323d8ddcb07c70
refs/heads/master: de1b04388f63cbddf91d9f6c50c29be7232881ca
7 changes: 4 additions & 3 deletions trunk/drivers/s390/cio/ccwreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ static void ccwreq_do(struct ccw_device *cdev)
/* Perform start function. */
sch->lpm = 0xff;
memset(&cdev->private->irb, 0, sizeof(struct irb));
rc = cio_start(sch, cp, req->mask);
rc = cio_start(sch, cp, (u8) req->mask);
if (rc == 0) {
/* I/O started successfully. */
ccw_device_set_timeout(cdev, req->timeout);
Expand Down Expand Up @@ -116,7 +116,8 @@ void ccw_request_start(struct ccw_device *cdev)
{
struct ccw_request *req = &cdev->private->req;

req->mask = 0x80;
/* Try all paths twice to counter link flapping. */
req->mask = 0x8080;
req->retries = req->maxretries;
req->mask = lpm_adjust(req->mask, req->lpm);
req->drc = 0;
Expand Down Expand Up @@ -212,7 +213,7 @@ static void ccwreq_log_status(struct ccw_device *cdev, enum io_status status)
} __attribute__ ((packed)) data;
data.dev_id = cdev->private->dev_id;
data.retries = req->retries;
data.lpm = req->mask;
data.lpm = (u8) req->mask;
data.status = (u8) status;
CIO_TRACE_EVENT(2, "reqstat");
CIO_HEX_EVENT(2, &data, sizeof(data));
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/s390/cio/device_id.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "device.h"
#include "io_sch.h"

#define SENSE_ID_RETRIES 5
#define SENSE_ID_RETRIES 256
#define SENSE_ID_TIMEOUT (10 * HZ)
#define SENSE_ID_MIN_LEN 4
#define SENSE_ID_BASIC_LEN 7
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/s390/cio/device_pgid.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "device.h"
#include "io_sch.h"

#define PGID_RETRIES 5
#define PGID_RETRIES 256
#define PGID_TIMEOUT (10 * HZ)

/*
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/s390/cio/io_sch.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ struct ccw_request {
void (*callback)(struct ccw_device *, void *, int);
void *data;
/* These fields are used internally. */
u8 mask;
u16 mask;
u16 retries;
int drc;
int cancel:1;
Expand Down

0 comments on commit efc70b8

Please sign in to comment.