diff options
Diffstat (limited to 'drivers/ieee1394')
-rw-r--r-- | drivers/ieee1394/dv1394.c | 14 | ||||
-rw-r--r-- | drivers/ieee1394/eth1394.c | 3 | ||||
-rw-r--r-- | drivers/ieee1394/raw1394.c | 3 | ||||
-rw-r--r-- | drivers/ieee1394/sbp2.c | 11 |
4 files changed, 7 insertions, 24 deletions
diff --git a/drivers/ieee1394/dv1394.c b/drivers/ieee1394/dv1394.c index adaefabc40e9..f8fcbd048447 100644 --- a/drivers/ieee1394/dv1394.c +++ b/drivers/ieee1394/dv1394.c | |||
@@ -610,7 +610,7 @@ static void frame_prepare(struct video_card *video, unsigned int this_frame) | |||
610 | } else { | 610 | } else { |
611 | 611 | ||
612 | u32 transmit_sec, transmit_cyc; | 612 | u32 transmit_sec, transmit_cyc; |
613 | u32 ts_cyc, ts_off; | 613 | u32 ts_cyc; |
614 | 614 | ||
615 | /* DMA is stopped, so this is the very first frame */ | 615 | /* DMA is stopped, so this is the very first frame */ |
616 | video->active_frame = this_frame; | 616 | video->active_frame = this_frame; |
@@ -636,7 +636,6 @@ static void frame_prepare(struct video_card *video, unsigned int this_frame) | |||
636 | transmit_sec += transmit_cyc/8000; | 636 | transmit_sec += transmit_cyc/8000; |
637 | transmit_cyc %= 8000; | 637 | transmit_cyc %= 8000; |
638 | 638 | ||
639 | ts_off = ct_off; | ||
640 | ts_cyc = transmit_cyc + 3; | 639 | ts_cyc = transmit_cyc + 3; |
641 | ts_cyc %= 8000; | 640 | ts_cyc %= 8000; |
642 | 641 | ||
@@ -2004,7 +2003,7 @@ static void ir_tasklet_func(unsigned long data) | |||
2004 | 2003 | ||
2005 | int sof=0; /* start-of-frame flag */ | 2004 | int sof=0; /* start-of-frame flag */ |
2006 | struct frame *f; | 2005 | struct frame *f; |
2007 | u16 packet_length, packet_time; | 2006 | u16 packet_length; |
2008 | int i, dbc=0; | 2007 | int i, dbc=0; |
2009 | struct DMA_descriptor_block *block = NULL; | 2008 | struct DMA_descriptor_block *block = NULL; |
2010 | u16 xferstatus; | 2009 | u16 xferstatus; |
@@ -2024,11 +2023,6 @@ static void ir_tasklet_func(unsigned long data) | |||
2024 | sizeof(struct packet)); | 2023 | sizeof(struct packet)); |
2025 | 2024 | ||
2026 | packet_length = le16_to_cpu(p->data_length); | 2025 | packet_length = le16_to_cpu(p->data_length); |
2027 | packet_time = le16_to_cpu(p->timestamp); | ||
2028 | |||
2029 | irq_printk("received packet %02d, timestamp=%04x, length=%04x, sof=%02x%02x\n", video->current_packet, | ||
2030 | packet_time, packet_length, | ||
2031 | p->data[0], p->data[1]); | ||
2032 | 2026 | ||
2033 | /* get the descriptor based on packet_buffer cursor */ | 2027 | /* get the descriptor based on packet_buffer cursor */ |
2034 | f = video->frames[video->current_packet / MAX_PACKETS]; | 2028 | f = video->frames[video->current_packet / MAX_PACKETS]; |
@@ -2320,7 +2314,6 @@ static void dv1394_add_host(struct hpsb_host *host) | |||
2320 | 2314 | ||
2321 | static void dv1394_host_reset(struct hpsb_host *host) | 2315 | static void dv1394_host_reset(struct hpsb_host *host) |
2322 | { | 2316 | { |
2323 | struct ti_ohci *ohci; | ||
2324 | struct video_card *video = NULL, *tmp_vid; | 2317 | struct video_card *video = NULL, *tmp_vid; |
2325 | unsigned long flags; | 2318 | unsigned long flags; |
2326 | 2319 | ||
@@ -2328,9 +2321,6 @@ static void dv1394_host_reset(struct hpsb_host *host) | |||
2328 | if (strcmp(host->driver->name, OHCI1394_DRIVER_NAME)) | 2321 | if (strcmp(host->driver->name, OHCI1394_DRIVER_NAME)) |
2329 | return; | 2322 | return; |
2330 | 2323 | ||
2331 | ohci = (struct ti_ohci *)host->hostdata; | ||
2332 | |||
2333 | |||
2334 | /* find the corresponding video_cards */ | 2324 | /* find the corresponding video_cards */ |
2335 | spin_lock_irqsave(&dv1394_cards_lock, flags); | 2325 | spin_lock_irqsave(&dv1394_cards_lock, flags); |
2336 | list_for_each_entry(tmp_vid, &dv1394_cards, list) { | 2326 | list_for_each_entry(tmp_vid, &dv1394_cards, list) { |
diff --git a/drivers/ieee1394/eth1394.c b/drivers/ieee1394/eth1394.c index a4e9dcb6d4a9..bc289e367e30 100644 --- a/drivers/ieee1394/eth1394.c +++ b/drivers/ieee1394/eth1394.c | |||
@@ -1258,7 +1258,6 @@ static void ether1394_iso(struct hpsb_iso *iso) | |||
1258 | char *buf; | 1258 | char *buf; |
1259 | struct eth1394_host_info *hi; | 1259 | struct eth1394_host_info *hi; |
1260 | struct net_device *dev; | 1260 | struct net_device *dev; |
1261 | struct eth1394_priv *priv; | ||
1262 | unsigned int len; | 1261 | unsigned int len; |
1263 | u32 specifier_id; | 1262 | u32 specifier_id; |
1264 | u16 source_id; | 1263 | u16 source_id; |
@@ -1288,8 +1287,6 @@ static void ether1394_iso(struct hpsb_iso *iso) | |||
1288 | (be32_to_cpu(data[1]) & 0xff000000) >> 24; | 1287 | (be32_to_cpu(data[1]) & 0xff000000) >> 24; |
1289 | source_id = be32_to_cpu(data[0]) >> 16; | 1288 | source_id = be32_to_cpu(data[0]) >> 16; |
1290 | 1289 | ||
1291 | priv = netdev_priv(dev); | ||
1292 | |||
1293 | if (info->channel != (iso->host->csr.broadcast_channel & 0x3f) | 1290 | if (info->channel != (iso->host->csr.broadcast_channel & 0x3f) |
1294 | || specifier_id != ETHER1394_GASP_SPECIFIER_ID) { | 1291 | || specifier_id != ETHER1394_GASP_SPECIFIER_ID) { |
1295 | /* This packet is not for us */ | 1292 | /* This packet is not for us */ |
diff --git a/drivers/ieee1394/raw1394.c b/drivers/ieee1394/raw1394.c index b563d5e9fa2e..2c417ae7622b 100644 --- a/drivers/ieee1394/raw1394.c +++ b/drivers/ieee1394/raw1394.c | |||
@@ -1015,7 +1015,7 @@ static int arm_write(struct hpsb_host *host, int nodeid, int destid, | |||
1015 | struct arm_addr *arm_addr = NULL; | 1015 | struct arm_addr *arm_addr = NULL; |
1016 | struct arm_request *arm_req = NULL; | 1016 | struct arm_request *arm_req = NULL; |
1017 | struct arm_response *arm_resp = NULL; | 1017 | struct arm_response *arm_resp = NULL; |
1018 | int found = 0, size = 0, rcode = -1, length_conflict = 0; | 1018 | int found = 0, size = 0, rcode = -1; |
1019 | struct arm_request_response *arm_req_resp = NULL; | 1019 | struct arm_request_response *arm_req_resp = NULL; |
1020 | 1020 | ||
1021 | DBGMSG("arm_write called by node: %X " | 1021 | DBGMSG("arm_write called by node: %X " |
@@ -1054,7 +1054,6 @@ static int arm_write(struct hpsb_host *host, int nodeid, int destid, | |||
1054 | } | 1054 | } |
1055 | if (arm_addr->rec_length < length) { | 1055 | if (arm_addr->rec_length < length) { |
1056 | DBGMSG("arm_write blocklength too big -> rcode_data_error"); | 1056 | DBGMSG("arm_write blocklength too big -> rcode_data_error"); |
1057 | length_conflict = 1; | ||
1058 | rcode = RCODE_DATA_ERROR; /* hardware error, data is unavailable */ | 1057 | rcode = RCODE_DATA_ERROR; /* hardware error, data is unavailable */ |
1059 | } | 1058 | } |
1060 | if (rcode == -1) { | 1059 | if (rcode == -1) { |
diff --git a/drivers/ieee1394/sbp2.c b/drivers/ieee1394/sbp2.c index f199896c4113..d3a136c70c48 100644 --- a/drivers/ieee1394/sbp2.c +++ b/drivers/ieee1394/sbp2.c | |||
@@ -1351,12 +1351,11 @@ static void sbp2_parse_unit_directory(struct sbp2_lu *lu, | |||
1351 | struct csr1212_keyval *kv; | 1351 | struct csr1212_keyval *kv; |
1352 | struct csr1212_dentry *dentry; | 1352 | struct csr1212_dentry *dentry; |
1353 | u64 management_agent_addr; | 1353 | u64 management_agent_addr; |
1354 | u32 unit_characteristics, firmware_revision, model; | 1354 | u32 firmware_revision, model; |
1355 | unsigned workarounds; | 1355 | unsigned workarounds; |
1356 | int i; | 1356 | int i; |
1357 | 1357 | ||
1358 | management_agent_addr = 0; | 1358 | management_agent_addr = 0; |
1359 | unit_characteristics = 0; | ||
1360 | firmware_revision = SBP2_ROM_VALUE_MISSING; | 1359 | firmware_revision = SBP2_ROM_VALUE_MISSING; |
1361 | model = ud->flags & UNIT_DIRECTORY_MODEL_ID ? | 1360 | model = ud->flags & UNIT_DIRECTORY_MODEL_ID ? |
1362 | ud->model_id : SBP2_ROM_VALUE_MISSING; | 1361 | ud->model_id : SBP2_ROM_VALUE_MISSING; |
@@ -1373,17 +1372,15 @@ static void sbp2_parse_unit_directory(struct sbp2_lu *lu, | |||
1373 | lu->lun = ORB_SET_LUN(kv->value.immediate); | 1372 | lu->lun = ORB_SET_LUN(kv->value.immediate); |
1374 | break; | 1373 | break; |
1375 | 1374 | ||
1376 | case SBP2_UNIT_CHARACTERISTICS_KEY: | ||
1377 | /* FIXME: This is ignored so far. | ||
1378 | * See SBP-2 clause 7.4.8. */ | ||
1379 | unit_characteristics = kv->value.immediate; | ||
1380 | break; | ||
1381 | 1375 | ||
1382 | case SBP2_FIRMWARE_REVISION_KEY: | 1376 | case SBP2_FIRMWARE_REVISION_KEY: |
1383 | firmware_revision = kv->value.immediate; | 1377 | firmware_revision = kv->value.immediate; |
1384 | break; | 1378 | break; |
1385 | 1379 | ||
1386 | default: | 1380 | default: |
1381 | /* FIXME: Check for SBP2_UNIT_CHARACTERISTICS_KEY | ||
1382 | * mgt_ORB_timeout and ORB_size, SBP-2 clause 7.4.8. */ | ||
1383 | |||
1387 | /* FIXME: Check for SBP2_DEVICE_TYPE_AND_LUN_KEY. | 1384 | /* FIXME: Check for SBP2_DEVICE_TYPE_AND_LUN_KEY. |
1388 | * Its "ordered" bit has consequences for command ORB | 1385 | * Its "ordered" bit has consequences for command ORB |
1389 | * list handling. See SBP-2 clauses 4.6, 7.4.11, 10.2 */ | 1386 | * list handling. See SBP-2 clauses 4.6, 7.4.11, 10.2 */ |