Changeset 300

Show
Ignore:
Timestamp:
03/10/99 01:10:42 (10 years ago)
Author:
mds
Message:

added 'i2c-' prefix to module names in all printk's to match new module names.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/kernel/busses/i2c-ali15x3.c

    r247 r300  
    184184  /* First check whether we can access PCI at all */ 
    185185  if (pci_present() == 0) { 
    186     printk("ali15x3.o: Error: No PCI-bus found!\n"); 
     186    printk("i2c-ali15x3.o: Error: No PCI-bus found!\n"); 
    187187    error_return=-ENODEV; 
    188188    goto END; 
     
    202202  if (res) { 
    203203#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,54) */ 
    204     printk("ali15x3.o: Error: Can't detect ali15x3!\n"); 
     204    printk("i2c-ali15x3.o: Error: Can't detect ali15x3!\n"); 
    205205    error_return=-ENODEV; 
    206206    goto END; 
     
    233233  ali15x3_acpia &= (0xffff & ~ (ALI15X3_ACPI_IOSIZE - 1)); 
    234234  if(ali15x3_acpia == 0) { 
    235     printk("ali15x3.o: ALI15X3_acpi region uninitialized - upgrade BIOS?\n"); 
     235    printk("i2c-ali15x3.o: ALI15X3_acpi region uninitialized - upgrade BIOS?\n"); 
    236236    error_return=-ENODEV; 
    237237  } 
     
    242242  ali15x3_smba &= (0xffff & ~ (ALI15X3_SMB_IOSIZE - 1)); 
    243243  if(ali15x3_smba == 0) { 
    244     printk("ali15x3.o: ALI15X3_smb region uninitialized - upgrade BIOS?\n"); 
     244    printk("i2c-ali15x3.o: ALI15X3_smb region uninitialized - upgrade BIOS?\n"); 
    245245    error_return=-ENODEV; 
    246246  } 
     
    251251#ifdef MAP_ACPI 
    252252  if (check_region(ali15x3_acpia, ALI15X3_ACPI_IOSIZE)) { 
    253     printk("ali15x3.o: ALI15X3_acpi region 0x%x already in use!\n", ali15x3_acpia); 
    254     printk("ali15x3.o: If conflicting ACPI software is installed, undefine MAP_ACPI and recompile!\n"); 
     253    printk("i2c-ali15x3.o: ALI15X3_acpi region 0x%x already in use!\n", ali15x3_acpia); 
     254    printk("i2c-ali15x3.o: If conflicting ACPI software is installed, undefine MAP_ACPI and recompile!\n"); 
    255255    error_return=-ENODEV; 
    256256  } 
     
    258258 
    259259  if (check_region(ali15x3_smba, ALI15X3_SMB_IOSIZE)) { 
    260     printk("ali15x3.o: ALI15X3_smb region 0x%x already in use!\n", ali15x3_smba); 
     260    printk("i2c-ali15x3.o: ALI15X3_smb region 0x%x already in use!\n", ali15x3_smba); 
    261261    error_return=-ENODEV; 
    262262  } 
     
    286286    pci_write_config_byte_united(ALI15X3_dev, ALI15X3_bus, ALI15X3_devfn, 
    287287                                     SMBHSTCFG, temp | 1); 
    288     printk("ali15x3.0: WARNING: ALI15X3 SMBus interface has been FORCEFULLY " 
     288    printk("i2c-ali15x3.o: WARNING: ALI15X3 SMBus interface has been FORCEFULLY " 
    289289           "ENABLED!!\n"); 
    290290  } 
     
    313313  Don't bother with finding the 1533 device and reading the register. 
    314314  if ((....... & 0x0F) == 1) 
    315      printk("ali15x3.o: ALI15X3 using Interrupt 9 for SMBus.\n"); 
     315     printk("i2c-ali15x3.o: ALI15X3 using Interrupt 9 for SMBus.\n"); 
    316316*/ 
    317317  pci_read_config_byte_united(ALI15X3_dev, ALI15X3_bus, ALI15X3_devfn, SMBREV,  
    318318                              &temp); 
    319   printk("ali15x3.o: SMBREV = 0x%X\n",temp); 
    320   printk("ali15x3.o: ALI15X3_smba = 0x%X\n",ali15x3_smba); 
     319  printk("i2c-ali15x3.o: SMBREV = 0x%X\n",temp); 
     320  printk("i2c-ali15x3.o: ALI15X3_smba = 0x%X\n",ali15x3_smba); 
    321321#endif /* DEBUG */ 
    322322 
     
    341341 
    342342#ifdef DEBUG 
    343   printk("ali15x3.o: Transaction (pre): STS=%02x, CNT=%02x, CMD=%02x, ADD=%02x, DAT0=%02x, " 
     343  printk("i2c-ali15x3.o: Transaction (pre): STS=%02x, CNT=%02x, CMD=%02x, ADD=%02x, DAT0=%02x, " 
    344344         "DAT1=%02x\n", 
    345345         inb_p(SMBHSTSTS), inb_p(SMBHSTCNT),inb_p(SMBHSTCMD),inb_p(SMBHSTADD),inb_p(SMBHSTDAT0), 
     
    368368/* 
    369369#ifdef DEBUG 
    370     printk("ali15x3.o: Resetting host controller to clear busy condition\n",temp); 
     370    printk("i2c-ali15x3.o: Resetting host controller to clear busy condition\n",temp); 
    371371#endif 
    372372    outb_p(ALI15X3_ABORT, SMBHSTCNT); 
     
    381381   If that's the case you are stuck. 
    382382*/ 
    383        printk("ali15x3.o: Resetting entire SMB Bus to clear busy condition (%02x)\n",temp); 
     383       printk("i2c-ali15x3.o: Resetting entire SMB Bus to clear busy condition (%02x)\n",temp); 
    384384       outb_p(ALI15X3_T_OUT, SMBHSTCNT); 
    385385       temp = inb_p(SMBHSTSTS); 
     
    397397         as one of the bits now appears to be stuck */ 
    398398      /* This may be a bus or device with electrical problems. */ 
    399       printk("ali15x3.o: SMBus reset failed! (0x%02x) - controller or device on bus is probably hung\n",temp); 
     399      printk("i2c-ali15x3.o: SMBus reset failed! (0x%02x) - controller or device on bus is probably hung\n",temp); 
    400400      return -1; 
    401401    } 
     
    420420  if (timeout >= MAX_TIMEOUT) { 
    421421    result = -1; 
    422     printk("ali15x3.o: SMBus Timeout!\n");  
     422    printk("i2c-ali15x3.o: SMBus Timeout!\n");  
    423423  } 
    424424 
     
    426426    result = -1; 
    427427#ifdef DEBUG 
    428     printk("ali15x3.o: Error: Failed bus transaction\n"); 
     428    printk("i2c-ali15x3.o: Error: Failed bus transaction\n"); 
    429429#endif 
    430430  } 
     
    439439    result = -1; 
    440440#ifdef DEBUG 
    441     printk("ali15x3.o: Error: no response or bus collision ADD=%02x\n", inb_p(SMBHSTADD)); 
     441    printk("i2c-ali15x3.o: Error: no response or bus collision ADD=%02x\n", inb_p(SMBHSTADD)); 
    442442#endif 
    443443  } 
     
    446446  if (temp & ALI15X3_STS_DEV) { 
    447447    result = -1; 
    448     printk("ali15x3.o: Error: device error\n"); 
     448    printk("i2c-ali15x3.o: Error: device error\n"); 
    449449  } 
    450450 
    451451#ifdef DEBUG 
    452   printk("ali15x3.o: Transaction (post): STS=%02x, CNT=%02x, CMD=%02x, ADD=%02x, " 
     452  printk("i2c-ali15x3.o: Transaction (post): STS=%02x, CNT=%02x, CMD=%02x, ADD=%02x, " 
    453453         "DAT0=%02x, DAT1=%02x\n", 
    454454         inb_p(SMBHSTSTS), inb_p(SMBHSTCNT),inb_p(SMBHSTCMD),inb_p(SMBHSTADD),inb_p(SMBHSTDAT0), 
     
    476476  } 
    477477  if (timeout >= MAX_TIMEOUT) { 
    478     printk("ali15x3.o: Idle wait Timeout! STS=0x%02x\n", temp);  
     478    printk("i2c-ali15x3.o: Idle wait Timeout! STS=0x%02x\n", temp);  
    479479  } 
    480480 
    481481  switch(size) { 
    482482    case SMBUS_PROC_CALL: 
    483       printk("ali15x3.o: SMBUS_PROC_CALL not supported!\n"); 
     483      printk("i2c-ali15x3.o: SMBUS_PROC_CALL not supported!\n"); 
    484484      return -1; 
    485485    case SMBUS_QUICK: 
     
    564564/* PE- It might be good to make this a permanent part of the code! */ 
    565565  if (ali15x3_initialized) { 
    566     printk("ali15x3.o: Oops, ali15x3_init called a second time!\n"); 
     566    printk("i2c-ali15x3.o: Oops, ali15x3_init called a second time!\n"); 
    567567    return -EBUSY; 
    568568  } 
     
    570570  ali15x3_initialized = 0; 
    571571  if ((res = ali15x3_setup())) { 
    572     printk("ali15x3.o: ALI15X3 not detected, module not inserted.\n"); 
     572    printk("i2c-ali15x3.o: ALI15X3 not detected, module not inserted.\n"); 
    573573    ali15x3_cleanup(); 
    574574    return res; 
     
    583583  ali15x3_adapter.smbus_access = &ali15x3_access; 
    584584  if ((res = smbus_add_adapter(&ali15x3_adapter))) { 
    585     printk("ali15x3.o: Adapter registration failed, module not inserted.\n"); 
     585    printk("i2c-ali15x3.o: Adapter registration failed, module not inserted.\n"); 
    586586    ali15x3_cleanup(); 
    587587    return res; 
    588588  } 
    589589  ali15x3_initialized++; 
    590   printk("ali15x3.o: ALI15X3 SMBus Controller detected and initialized\n"); 
     590  printk("i2c-ali15x3.o: ALI15X3 SMBus Controller detected and initialized\n"); 
    591591  return 0; 
    592592} 
     
    598598  { 
    599599    if ((res = smbus_del_adapter(&ali15x3_adapter))) { 
    600       printk("ali15x3.o: smbus_del_adapter failed, module not removed\n"); 
     600      printk("i2c-ali15x3.o: smbus_del_adapter failed, module not removed\n"); 
    601601      return res; 
    602602    } else 
  • lm-sensors/trunk/kernel/busses/i2c-isa.c

    r207 r300  
    7878{ 
    7979#ifdef DEBUG 
    80   printk("isa.o: isa_master_xfer called for adapter `%s' " 
     80  printk("i2c-isa.o: isa_master_xfer called for adapter `%s' " 
    8181         "(no i2c level access possible!)\n", 
    8282         adap->name); 
     
    8989{ 
    9090#ifdef DEBUG 
    91   printk("isa.o: isa_slave_send called for adapter `%s' " 
     91  printk("i2c-isa.o: isa_slave_send called for adapter `%s' " 
    9292         "(no i2c level access possible!)\n", 
    9393         adap->name); 
     
    100100{ 
    101101#ifdef DEBUG 
    102   printk("isa.o: isa_slave_recv called for adapter `%s' " 
     102  printk("i2c-isa.o: isa_slave_recv called for adapter `%s' " 
    103103         "(no i2c level access possible!)\n", 
    104104         adap->name); 
     
    133133#ifdef DEBUG 
    134134  if (isa_initialized) { 
    135     printk("isa.o: Oops, isa_init called a second time!\n"); 
     135    printk("i2c-isa.o: Oops, isa_init called a second time!\n"); 
    136136    return -EBUSY; 
    137137  } 
     
    139139  isa_initialized = 0; 
    140140  if ((res = isa_add_algorithm(&isa_algorithm))) { 
    141     printk("isa.o: Algorithm registration failed, module not inserted.\n"); 
     141    printk("i2c-isa.o: Algorithm registration failed, module not inserted.\n"); 
    142142    isa_cleanup(); 
    143143    return res; 
     
    148148  isa_adapter.algo = &isa_algorithm; 
    149149  if ((res = isa_add_adapter(&isa_adapter))) { 
    150     printk("isa.o: Adapter registration failed, " 
     150    printk("i2c-isa.o: Adapter registration failed, " 
    151151           "module isa.o is not inserted\n."); 
    152152    isa_cleanup(); 
     
    154154  } 
    155155  isa_initialized++; 
    156   printk("isa.o: ISA bus access for i2c modules initialized.\n"); 
     156  printk("i2c-isa.o: ISA bus access for i2c modules initialized.\n"); 
    157157  return 0; 
    158158} 
     
    164164  { 
    165165    if ((res = isa_del_adapter(&isa_adapter))) { 
    166       printk("isa.o: Adapter deregistration failed, module not removed.\n"); 
     166      printk("i2c-isa.o: Adapter deregistration failed, module not removed.\n"); 
    167167      return res; 
    168168    } else 
     
    172172  { 
    173173    if ((res = isa_del_algorithm(&isa_algorithm))) { 
    174       printk("isa.o: Algorithm deregistration failed, module not removed.\n"); 
     174      printk("i2c-isa.o: Algorithm deregistration failed, module not removed.\n"); 
    175175      return res; 
    176176    } else 
  • lm-sensors/trunk/kernel/busses/i2c-piix4.c

    r207 r300  
    108108  /* First check whether we can access PCI at all */ 
    109109  if (pci_present() == 0) { 
    110     printk("piix4.o: Error: No PCI-bus found!\n"); 
     110    printk("i2c-piix4.o: Error: No PCI-bus found!\n"); 
    111111    error_return=-ENODEV; 
    112112    goto END; 
     
    132132  if (res) { 
    133133#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,54) */ 
    134     printk("piix4.o: Error: Can't detect PIIX4, function 3!\n"); 
     134    printk("i2c-piix4.o: Error: Can't detect PIIX4, function 3!\n"); 
    135135    error_return=-ENODEV; 
    136136    goto END; 
     
    143143 
    144144  if (check_region(piix4_smba, 8)) { 
    145     printk("piix4.o: PIIX4_smb region 0x%x already in use!\n", piix4_smba); 
     145    printk("i2c-piix4.o: PIIX4_smb region 0x%x already in use!\n", piix4_smba); 
    146146    error_return=-ENODEV; 
    147147    goto END; 
     
    162162    pci_write_config_byte_united(PIIX4_dev, PIIX4_bus, PIIX4_devfn, 
    163163                                     SMBHSTCFG, temp | 1); 
    164     printk("piix4.0: WARNING: PIIX4 SMBus interface has been FORCEFULLY " 
     164    printk("i2c-piix4.o: WARNING: PIIX4 SMBus interface has been FORCEFULLY " 
    165165           "ENABLED!!\n"); 
    166166    /* Update configuration value */ 
     
    182182#ifdef DEBUG 
    183183  if ((temp & 0x0E) == 8) 
    184      printk("piix4.o: PIIX4 using Interrupt 9 for SMBus.\n"); 
     184     printk("i2c-piix4.o: PIIX4 using Interrupt 9 for SMBus.\n"); 
    185185  else if ((temp & 0x0E) == 0) 
    186      printk("piix4.o: PIIX4 using Interrupt SMI# for SMBus.\n"); 
     186     printk("i2c-piix4.o: PIIX4 using Interrupt SMI# for SMBus.\n"); 
    187187  else  
    188      printk("piix4.o: PIIX4: Illegal Interrupt configuration (or code out " 
     188     printk("i2c-piix4.o: PIIX4: Illegal Interrupt configuration (or code out " 
    189189            "of date)!\n"); 
    190190 
    191191  pci_read_config_byte_united(PIIX4_dev, PIIX4_bus, PIIX4_devfn, SMBREV,  
    192192                              &temp); 
    193   printk("piix4.o: SMBREV = 0x%X\n",temp); 
    194   printk("piix4.o: PIIX4_smba = 0x%X\n",piix4_smba); 
     193  printk("i2c-piix4.o: SMBREV = 0x%X\n",temp); 
     194  printk("i2c-piix4.o: PIIX4_smba = 0x%X\n",piix4_smba); 
    195195#endif /* DEBUG */ 
    196196 
     
    215215 
    216216#ifdef DEBUG 
    217   printk("piix4.o: Transaction (pre): CNT=%02x, CMD=%02x, ADD=%02x, DAT0=%02x, " 
     217  printk("i2c-piix4.o: Transaction (pre): CNT=%02x, CMD=%02x, ADD=%02x, DAT0=%02x, " 
    218218         "DAT1=%02x\n", 
    219219         inb_p(SMBHSTCNT),inb_p(SMBHSTCMD),inb_p(SMBHSTADD),inb_p(SMBHSTDAT0), 
     
    224224  if ((temp = inb_p(SMBHSTSTS)) != 0x00) { 
    225225#ifdef DEBUG 
    226     printk("piix4.o: SMBus busy (%02x). Resetting... \n",temp); 
     226    printk("i2c-piix4.o: SMBus busy (%02x). Resetting... \n",temp); 
    227227#endif 
    228228    outb_p(temp, SMBHSTSTS); 
    229229    if ((temp = inb_p(SMBHSTSTS)) != 0x00) { 
    230230#ifdef DEBUG 
    231       printk("piix4.o: Failed! (%02x)\n",temp); 
     231      printk("i2c-piix4.o: Failed! (%02x)\n",temp); 
    232232#endif 
    233233      return -1; 
    234234    } else { 
    235235#ifdef DEBUG 
    236       printk("piix4.o: Successfull!\n"); 
     236      printk("i2c-piix4.o: Successfull!\n"); 
    237237#endif 
    238238    } 
     
    251251  if (timeout >= MAX_TIMEOUT) { 
    252252#ifdef DEBUG 
    253     printk("piix4.o: SMBus Timeout!\n");  
     253    printk("i2c-piix4.o: SMBus Timeout!\n");  
    254254    result = -1; 
    255255#endif 
     
    259259    result = -1; 
    260260#ifdef DEBUG 
    261     printk("piix4.o: Error: Failed bus transaction\n"); 
     261    printk("i2c-piix4.o: Error: Failed bus transaction\n"); 
    262262#endif 
    263263  } 
     
    265265  if (temp & 0x08) { 
    266266    result = -1; 
    267     printk("piix4.o: Bus collision! SMBus may be locked until next hard 
     267    printk("i2c-piix4.o: Bus collision! SMBus may be locked until next hard 
    268268           reset. (sorry!)\n"); 
    269269    /* Clock stops and slave is stuck in mid-transmission */ 
     
    273273    result = -1; 
    274274#ifdef DEBUG 
    275     printk("piix4.o: Error: no response!\n"); 
     275    printk("i2c-piix4.o: Error: no response!\n"); 
    276276#endif 
    277277  } 
     
    282282  if ((temp = inb_p(SMBHSTSTS)) != 0x00) { 
    283283#ifdef DEBUG 
    284     printk("piix4.o: Failed reset at end of transaction (%02x)\n",temp); 
    285 #endif 
    286   } 
    287 #ifdef DEBUG 
    288   printk("piix4.o: Transaction (post): CNT=%02x, CMD=%02x, ADD=%02x, " 
     284    printk("i2c-piix4.o: Failed reset at end of transaction (%02x)\n",temp); 
     285#endif 
     286  } 
     287#ifdef DEBUG 
     288  printk("i2c-piix4.o: Transaction (post): CNT=%02x, CMD=%02x, ADD=%02x, " 
    289289         "DAT0=%02x, DAT1=%02x\n", 
    290290         inb_p(SMBHSTCNT),inb_p(SMBHSTCMD),inb_p(SMBHSTADD),inb_p(SMBHSTDAT0), 
     
    302302  switch(size) { 
    303303    case SMBUS_PROC_CALL: 
    304       printk("piix4.o: SMBUS_PROC_CALL not supported!\n"); 
     304      printk("i2c-piix4.o: SMBUS_PROC_CALL not supported!\n"); 
    305305      return -1; 
    306306    case SMBUS_QUICK: 
     
    388388/* PE- It might be good to make this a permanent part of the code! */ 
    389389  if (piix4_initialized) { 
    390     printk("piix4.o: Oops, piix4_init called a second time!\n"); 
     390    printk("i2c-piix4.o: Oops, piix4_init called a second time!\n"); 
    391391    return -EBUSY; 
    392392  } 
     
    394394  piix4_initialized = 0; 
    395395  if ((res = piix4_setup())) { 
    396     printk("piix4.o: PIIX4 not detected, module not inserted.\n"); 
     396    printk("i2c-piix4.o: PIIX4 not detected, module not inserted.\n"); 
    397397    piix4_cleanup(); 
    398398    return res; 
     
    404404  piix4_adapter.smbus_access = &piix4_access; 
    405405  if ((res = smbus_add_adapter(&piix4_adapter))) { 
    406     printk("piix4.o: Adapter registration failed, module not inserted.\n"); 
     406    printk("i2c-piix4.o: Adapter registration failed, module not inserted.\n"); 
    407407    piix4_cleanup(); 
    408408    return res; 
    409409  } 
    410410  piix4_initialized++; 
    411   printk("piix4.o: PIIX4 bus detected and initialized\n"); 
     411  printk("i2c-piix4.o: PIIX4 bus detected and initialized\n"); 
    412412  return 0; 
    413413} 
     
    419419  { 
    420420    if ((res = smbus_del_adapter(&piix4_adapter))) { 
    421       printk("piix4.o: smbus_del_adapter failed, module not removed\n"); 
     421      printk("i2c-piix4.o: smbus_del_adapter failed, module not removed\n"); 
    422422      return res; 
    423423    } else