diff options
Diffstat (limited to 'drivers/ieee1394')
-rw-r--r-- | drivers/ieee1394/nodemgr.c | 8 | ||||
-rw-r--r-- | drivers/ieee1394/pcilynx.c | 20 |
2 files changed, 8 insertions, 20 deletions
diff --git a/drivers/ieee1394/nodemgr.c b/drivers/ieee1394/nodemgr.c index bebcc47ab06c..b23322523ef5 100644 --- a/drivers/ieee1394/nodemgr.c +++ b/drivers/ieee1394/nodemgr.c | |||
@@ -1068,6 +1068,8 @@ static int nodemgr_hotplug(struct class_device *cdev, char **envp, int num_envp, | |||
1068 | struct unit_directory *ud; | 1068 | struct unit_directory *ud; |
1069 | int i = 0; | 1069 | int i = 0; |
1070 | int length = 0; | 1070 | int length = 0; |
1071 | /* ieee1394:venNmoNspNverN */ | ||
1072 | char buf[8 + 1 + 3 + 8 + 2 + 8 + 2 + 8 + 3 + 8 + 1]; | ||
1071 | 1073 | ||
1072 | if (!cdev) | 1074 | if (!cdev) |
1073 | return -ENODEV; | 1075 | return -ENODEV; |
@@ -1094,6 +1096,12 @@ do { \ | |||
1094 | PUT_ENVP("GUID=%016Lx", (unsigned long long)ud->ne->guid); | 1096 | PUT_ENVP("GUID=%016Lx", (unsigned long long)ud->ne->guid); |
1095 | PUT_ENVP("SPECIFIER_ID=%06x", ud->specifier_id); | 1097 | PUT_ENVP("SPECIFIER_ID=%06x", ud->specifier_id); |
1096 | PUT_ENVP("VERSION=%06x", ud->version); | 1098 | PUT_ENVP("VERSION=%06x", ud->version); |
1099 | snprintf(buf, sizeof(buf), "ieee1394:ven%08Xmo%08Xsp%08Xver%08X", | ||
1100 | ud->vendor_id, | ||
1101 | ud->model_id, | ||
1102 | ud->specifier_id, | ||
1103 | ud->version); | ||
1104 | PUT_ENVP("MODALIAS=%s", buf); | ||
1097 | 1105 | ||
1098 | #undef PUT_ENVP | 1106 | #undef PUT_ENVP |
1099 | 1107 | ||
diff --git a/drivers/ieee1394/pcilynx.c b/drivers/ieee1394/pcilynx.c index 36074e6eeebb..6b1ab875333b 100644 --- a/drivers/ieee1394/pcilynx.c +++ b/drivers/ieee1394/pcilynx.c | |||
@@ -1464,26 +1464,6 @@ static int __devinit add_card(struct pci_dev *dev, | |||
1464 | { 0x50, I2C_M_RD, 20, (unsigned char*) lynx->bus_info_block } | 1464 | { 0x50, I2C_M_RD, 20, (unsigned char*) lynx->bus_info_block } |
1465 | }; | 1465 | }; |
1466 | 1466 | ||
1467 | |||
1468 | #ifdef CONFIG_IEEE1394_VERBOSEDEBUG | ||
1469 | union i2c_smbus_data data; | ||
1470 | |||
1471 | if (i2c_smbus_xfer(i2c_ad, 80, 0, I2C_SMBUS_WRITE, 0, I2C_SMBUS_BYTE,NULL)) | ||
1472 | PRINT(KERN_ERR, lynx->id,"eeprom read start has failed"); | ||
1473 | else | ||
1474 | { | ||
1475 | u16 addr; | ||
1476 | for (addr=0x00; addr < 0x100; addr++) { | ||
1477 | if (i2c_smbus_xfer(i2c_ad, 80, 0, I2C_SMBUS_READ, 0, I2C_SMBUS_BYTE,& data)) { | ||
1478 | PRINT(KERN_ERR, lynx->id, "unable to read i2c %x", addr); | ||
1479 | break; | ||
1480 | } | ||
1481 | else | ||
1482 | PRINT(KERN_DEBUG, lynx->id,"got serial eeprom data at %x: %x",addr, data.byte); | ||
1483 | } | ||
1484 | } | ||
1485 | #endif | ||
1486 | |||
1487 | /* we use i2c_transfer, because i2c_smbus_read_block_data does not work properly and we | 1467 | /* we use i2c_transfer, because i2c_smbus_read_block_data does not work properly and we |
1488 | do it more efficiently in one transaction rather then using several reads */ | 1468 | do it more efficiently in one transaction rather then using several reads */ |
1489 | if (i2c_transfer(i2c_ad, msg, 2) < 0) { | 1469 | if (i2c_transfer(i2c_ad, msg, 2) < 0) { |