An error occurred fetching the project authors.
  1. 19 Oct, 2004 1 commit
  2. 29 Sep, 2004 1 commit
  3. 08 Sep, 2004 1 commit
  4. 25 Aug, 2004 1 commit
    • Jean Delvare's avatar
      [PATCH] I2C: rename in0_ref to cpu0_vid · a1edc85c
      Jean Delvare authored
      This patch changes all the i2c chip drivers and documentation to use the
      name "cpu0_vid" instead of "in0_ref". The name "in0_ref" was an error in
      the first place as motherboard manufacturers may fail to follow the chip
      manufacturer's recommendation about which "in" channel to use for VCore
      monitoring.
      
      The new name leaves room for chips able to monitor more than 1 vid
      value, such as the LM93 and, to a lesser extent, the PC87360 family (all
      by National Semiconductor). These chips are typically designed for
      dual-CPU motherboards.
      
      This breaks the interface (obviously) so libsensors has been updated to
      support both names.
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
      a1edc85c
  5. 05 Aug, 2004 2 commits
  6. 14 Jun, 2004 1 commit
  7. 10 Jun, 2004 1 commit
  8. 08 Jun, 2004 1 commit
  9. 03 Jun, 2004 1 commit
  10. 14 May, 2004 1 commit
    • Bjørn Mork's avatar
      [PATCH] I2C: "probe" module param broken for it87 in Linux 2.6.6 · 4b36b0cf
      Bjørn Mork authored
      Jean Delvare <khali@linux-fr.org> writes:
      > So I'd suggest that you simply use the standard exit sequence in the
      > it87 driver (the second one in your current patch). A patch for the 2.4
      > driver would be appreciated as well.
      
      OK.  I've attached a new version of the patch against linux-2.6.6.
      I'll send a patch against current lm_sensors CVS removing the extra
      exit command in a separate mail.
      
      Greg KH <greg@kroah.com> writes:
      > On Wed, May 12, 2004 at 04:38:03PM +0200, Bj?rn Mork wrote:
      >> +	if (!it87_find(&addr)) {
      >> +		printk("it87.o: new ISA address: 0x%04x\n", addr);
      >
      > That printk is wrong (no KERN_ level, or dev_printk() style use).
      > Please fix it in your next revision of this patch.
      
      Errh, I just added it to document my sloppyness.  It was never meant
      to be in the patch I sent you.  Sorry.  Removed in the attached patch.
      The style of these drivers seem to be "just working, making no noise"
      so I assume informational printk's are unwanted.
      4b36b0cf
  11. 11 May, 2004 1 commit
    • Jean Delvare's avatar
      [PATCH] I2C: Rename hardware monitoring I2C class · 0c8a2f9d
      Jean Delvare authored
      Quoting myself:
      
      > Mmm, I once proposed that I2C_ADAP_CLASS_SMBUS would be better renamed
      > I2C_ADAP_CLASS_SENSORS (so I2C_CLASS_SENSORS now). What about that? I
      > think it would be great to embed that change into your patch, so that
      > the name changes only once.
      >
      > BTW, if HWMON is prefered to SENSORS, this is fine with me too, I
      > have no strong preference.
      
      Below is a patch that does that. I finally went for HWMON. Yes, it's
      big, but it's actually nothing more than
      s/I2C_CLASS_SMBUS/I2C_CLASS_HWMON/ (thanks perl -wip :)).
      0c8a2f9d
  12. 05 May, 2004 1 commit
    • Michael Hunold's avatar
      [PATCH] I2C: add .class to i2c drivers · 223f4b75
      Michael Hunold authored
      in the "[RFC|PATCH][2.6] Additional i2c adapter flags for i2c client
      isolation" thread, the i2c people have  agreed that an ".class" field
      should be added to struct i2c_driver.
      
      Currently only drivers do checks for plausibility ("Is this an adapter I
      can attach to?"), but adapters don't have a chance to keep drivers away
      from their bus.
      
      If both drivers and adapters provide a .class entry, the i2c-core can
      easily compare them and let devices only probe on busses where they can
      really exist.
      
      Real world example: DVB i2c adapters cannot ensure that only known DVB
      i2c chipsets probe their busses. Most client drivers probe every bus
      they get their hands on. This will confuse some DVB i2c busses.
      
      With the new I2C_CLASS_ALL flag it will be possible that an adapter can
      request that really all drivers are probed on the adapter. On the other
      hand, drivers can make sure that they get the chance to probe on every
      i2c adapter out there (this is not encouraged, though)
      
      The attached patch does the first step:
      - add .class member to struct i2c_device
      - remove unused .flags member from struct i2c_adapter
      - rename I2C_ADAP_CLASS_xxx to I2C_CLASS_xxx (to be used both for
        drivers and adapters)
      - add new I2C_CLASS_ALL and I2C_CLASS_SOUND classes
      - follow these changes in the existing drivers with copy & paste
      223f4b75
  13. 12 Apr, 2004 3 commits
  14. 15 Mar, 2004 2 commits
    • Jean Delvare's avatar
      [PATCH] I2C: Don't handle kind errors that cannot happen · bd0c4341
      Jean Delvare authored
      A number of chip drivers in 2.6.4-mm1 try to handle an error case that
      cannot happen when setting the chip name. The following patch changes
      that.
      
      Affected drivers: adm1021, it87, lm75, lm78, lm85, w83627hf, w83781d.
      
      Note that in any case, the worst that could happen (but then again, it
      cannot happen) is that the chip name would be set to an empty string,
      which doesn't hurt much.
      
      The patch also cleans up a few things in it87, w83627hf and w83781d,
      which are tightly related to the rest of the changes and necessary for
      them to be safe.
      
      it87: There is only really one "kind" in this driver, so I removed all
      references to other kinds.
      
      w83627hf: The driver did not handle unknown chips.
      
      w83781d: The user shouldn't be allowed to force a kind that doesn't
      match the chip's bus type (I2C or ISA). The code was not meant to handle
      that case, although no check was done so far.
      
      Tested on my AS99127F, works as intended.
      bd0c4341
    • Greg Kroah-Hartman's avatar
  15. 11 Mar, 2004 1 commit
    • Mark M. Hoffman's avatar
      [PATCH] I2C: sensor chip driver refactoring · cbc22621
      Mark M. Hoffman authored
      This patch is a refactoring of some common code among all sensors chip
      drivers (except asb100, which was written this way to begin with.)
      It saves a handful of lines and ~100-300 bytes per module.  It compiles
      ok.  I've only tested it against one of the drivers, but the changes are
      similar across the board and quite mechanical.  Please apply.
      cbc22621
  16. 01 Mar, 2004 1 commit
    • Takeru Komoriya's avatar
      [PATCH] I2C: it87 reset option · 30678638
      Takeru Komoriya authored
      I wrote a patch which adds reset option to the it87 driver talking
      with Jean Delvare.
      
      * Do not reset the registers unless users want to do because
        resetting registers makes all fans go to full power and we can
        usually rely on values set by BIOS
      * Remove all limit initializations as they should be done from
        user-space
      * Better register mask for start of monitoring
      30678638
  17. 23 Feb, 2004 4 commits
    • Jean Delvare's avatar
      [PATCH] I2C: rename sysfs files, part 2 of 2 · 1f53a25a
      Jean Delvare authored
      Here is the second step of my sysfs renaming plan.
      
      This one does the following renames (as I already announced on the
      LKML):
      temp<n>_hyst  -> temp<n>_max_hyst or temp<n>_crit_hyst
      sensor<n>     -> temp<n>_type
      pwm<n>        -> fan<n>_pwm
      pwm<n>_enable -> fan<n>_pwm_enable
      vid           -> in<n>_ref
      
      The associated libsensors patch is here:
      http://jdelvare.net1.nerim.net/sensors/libsensors-sysfs-names-2.diff
      (not applied yet, on purpose)
      
      
      Note that the w83781d part is a bit more complex, not only because it is
      the only driver to require the 5 changes, but also because at some point
      the macros assume that the internal variable names match the sysfs
      names, so I had to change them too (better than rewriting the macros,
      methinks).
      
      For reference, here is the list of changes, by driver:
      
      asb100:
          hyst -> max_hyst (4)
          pwm -> fan_pwm (1)
          pwm_enable -> fan_pwm_enable (1)
          vid -> in_ref (1)
      fscher:
           pwm -> fan_pwm (3)
      gl518sm:
          hyst -> max_hyst (1)
      it87:
          sensor -> temp_type (3)
      lm75:
          hyst -> max_hyst (1)
      lm78:
          hyst -> max_hyst (1)
          vid -> in_ref (1)
      lm85:
          pwm -> fan_pwm (3)
          pwm_enable -> fan_pwm_enable (3)
          vid -> in_ref (1)
      lm90:
          hyst -> crit_hyst (2)
      via686a:
          hyst -> max_hyst (3)
      w83781d:
          hyst -> max_hyst (2)
          sensor -> temp_type (3)
          pwm -> fan_pwm (4)
          pwm_enable -> fan_pwm_enable (1)
          vid -> in_ref (1)
      
      There's also a documentation update. There will be one more after that
      (to make it more readable, no contents change), and a patch to lm83.c to
      bring it to compliance with the (new) standard. (If you wonder why I did
      not change it with the other drivers: because it was *already* not in
      compliance with the old standard. There's some real work to do for this
      one.)
      1f53a25a
    • Jean Delvare's avatar
      [PATCH] I2C: rename sysfs files, part 1 of 2 · 3a0aa539
      Jean Delvare authored
      Here it is. The associated libsensors patch is here:
      http://jdelvare.net1.nerim.net/sensors/libsensors-sysfs-names-1.diff
      (not applied yet, on purpose)
      3a0aa539
    • Jean Delvare's avatar
      [PATCH] I2C: fix it87 sensor type · a78b8ba6
      Jean Delvare authored
      Here comes a patch by Takeru Komoriya which fixes the way the it87
      driver handles temperature sensor types selection.
      
      * Use the same values as the CVS driver and sensors program.
      * Better comments.
      * Get rid of the old setting method (already gone in CVS).
      * Handle invalid values correctly.
      a78b8ba6
    • Jean Delvare's avatar
      [PATCH] I2C: Lowercase chips name · 60a1cfac
      Jean Delvare authored
      This patch brings the name field of adm1021.c, it87.c and via686a.c in
      conformance with the defined standard ("all lowercase, as simple as the
      driver name itself").
      60a1cfac
  18. 04 Feb, 2004 1 commit
  19. 19 Jan, 2004 1 commit
  20. 04 Dec, 2003 2 commits
    • Jean Delvare's avatar
      [PATCH] I2C: it87 and via686a alarms · e1b2a080
      Jean Delvare authored
      > it87 and via686a violate the sysfs standard by having "alarm" instead
      > of "alarms", would you please fix in your next patch?
      
      I'm not the only one allowed to send patches to Greg, you know ;)
      Anyway, here we go. Greg, here is a patch that corrects the standard
      violation reported by Mark. Tested to compile.
      
      (It also removes a useless comment in it87.c.)
      e1b2a080
    • Jean Delvare's avatar
      [PATCH] I2C: make I2C chipset drivers use temp_hyst[1-3] · a6247629
      Jean Delvare authored
      Summary of the changes:
      adm1021.c: No changes, that chipset uses a real min/max model.
      eeeprom.c: No changes (obviously).
      it87.c:    Remove buggy comments (obviously taken from via686a) about
                 max and min temperature limits being over and hyst. This
                 isn't the case for this driver (min/max model).
      lm75.c:    Simple sysfs file name change (temp_min to temp_hyst).
      lm78.c:    Simple sysfs file name change (temp_min to temp_hyst).
      lm85.c:    No changes needed (min/max model).
      via686a.c: Rename functions and macros from min/max to hyst/over, what
                 it really is. Remove unnecessary comments. Rename sysfs
                 files from temp_min[1-3] to temp_hyst[1-3].
      w83781d.c: Rename variables from temp_min* to temp_hyst* (needed so
                 that the macros keep working). Update macro calls
                 accordingly. Fix writing temp to max and hyst being
                 swapped.
      
      Additional remarks:
      
      The lm75 and lm78 having a single temperature channel, there is no
      number appended to the file names. Shouldn't a "1" be appended in this
      case? I think it would make it easier for the future library to catch
      all the files.
      
      I made sure the drivers would still compile after the changes, but did
      not test them otherwise (no working 2.6.0 kernel here, and not all the
      hardware anyway).
      a6247629
  21. 09 Oct, 2003 1 commit
  22. 22 Sep, 2003 1 commit
    • Andrey Borzenkov's avatar
      [PATCH] I2C: sysfs sensor nameing inconsistency · 285dde44
      Andrey Borzenkov authored
      > That's what you are going to have to set the name file to in the
      > i2c_client structure, much like your patch did.  Then look at the
      > different name files in each device directory to see what kind of device
      > it is (chip, subclient, etc.)
      
      OK attached patch sets all names to just chip name for chips themselves and
      "chipname subclient" when subclient ios registered.
      285dde44
  23. 27 Aug, 2003 1 commit
  24. 08 Aug, 2003 1 commit
  25. 26 May, 2003 1 commit
    • Ben Collins's avatar
      [PATCH] drivers/* strlcpy conversions · 27690cd5
      Ben Collins authored
      Well, this is it for me and strlcpy. I'll leave the rest of the
      non-obvious usages of strncpy to the kernel janitors. Seems like quite a
      few uses really wanted memcpy instead, but I don't have time to
      investigate them all. It does appear that nearly all strncpy's will be
      removable. Obsoleting strncpy will probably atleast make the remaining
      few think about how they are using it.
      
      This is the patch for my trip through drivers/*.
      27690cd5
  26. 19 May, 2003 1 commit
    • Zephaniah E. Hull's avatar
      [PATCH] I2C: And yet another it87 patch. · 75e90c70
      Zephaniah E. Hull authored
      Trivial, but important.
      
      Somehow in the patching the bk tree somehow got two memset's to clear
      new_client in it87_detect, normally while this would be bad, it would
      not be critical.
      
      However one of the two happens BEFORE the variable is set, and thus
      things go badly.
      75e90c70
  27. 09 May, 2003 3 commits
    • Zephaniah E. Hull's avatar
      [PATCH] I2C: And another it87 patch. · 0d08e838
      Zephaniah E. Hull authored
      Don't provide min/max for in8, which allowed one to scribble on
      registers one should not be messing with. (My fault, oops.)
      
      The setting of the temp high/low registers was off by one, not mine this
      time.  While I was at it, I reordered a few other register accesses to
      be base 0 instead of base 1.
      
      The temp interface was slightly incorrect, degrees * 100 instead of
      degrees * 1000, also fixed.
      
      And lastly, when changing the fan count divisor, fix up the min setting
      to still be roughly the same. (Previously the meaning of the value in
      the register changed, but not the value itself, resulting in, undesired
      surprises.)
      0d08e838
    • Zephaniah E. Hull's avatar
      [PATCH] I2C: Yet another it87 patch. · 7ac0e2e9
      Zephaniah E. Hull authored
      Ok, after writing up something in the way of a perl script to make some
      sense of the data for voltages, and finding that there is no sense to
      make, I took a longer look at things.
      
      The it87 driver in 2.5.x is doing some, down right /odd/ math on the
      numbers for the in_input* readings, and the 2.4.x driver is doing
      something quite different.
      
      And while it might be possible to get sane numbers out of the 2.5.x
      driver, people /expect/ to get the numbers that they were getting from
      2.4.x.
      
      So this patch puts things back to the simpler calculations done by the
      2.4.x lm-sensors drivers, and my script confirms that the numbers come
      out right.
      7ac0e2e9
    • Zephaniah E. Hull's avatar
      [PATCH] I2C: Another it87 patch. · 2a792a45
      Zephaniah E. Hull authored
      This is against my last.
      
      While the old code most definitely did /something/ to the register for
      setting the fan div, the 'what' is a more interesting question.
      
      To be honest I could not figure out what it was trying to do, because
      the way it was inserting values disagreed with not only the data sheet,
      but how it parsed the very same register.
      
      This corrects the issue, and allows one to properly control the divisor
      on all 3 fans, including the (much more limited) 3rd fan.
      2a792a45
  28. 06 May, 2003 2 commits
    • Zephaniah E. Hull's avatar
      [PATCH] i2c: it87 patch. · b0f79d02
      Zephaniah E. Hull authored
      More or less straight forward patch.
      
      Fix a typo in the comments at the top.
      Show all 9 voltage inputs.
      Show all 3 fan inputs.
      Allow you to select the temp sensor type from the sysfs interface,
      instead of just with the temp_type module option.
      (1 = diode, 2 = thermistor, 0 = disabled).
      
      I'm still trying to figure out the registers for PWM fan controller
      support.
      b0f79d02
    • Gerd Knorr's avatar
      [PATCH] i2c #3/3: add class field to i2c_adapter · ea1b28a4
      Gerd Knorr authored
      This is the last of three patches for i2c.  It introduces a new field
      to i2c_adapter which classifies the kind of hardware a i2c adapter
      belongs to (analog tv card / dvb card / smbus / gfx card ...).  i2c chip
      drivers can use this infomation to decide whenever they want to look for
      hardware on that adapter or not.  It doesn't make sense to probe for a
      tv tuner on a smbus for example ...
      ea1b28a4
  29. 25 Apr, 2003 1 commit