Commit Graph
27 Commits
Author SHA1 Message Date
Mark M. Hoffman e035136982 Added utility function i2c_delay(1), to replace various "do_pause"
(mmh) functions in bus drivers.  Backported from the 2.6 work of Greg KH.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1936 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-08-03 05:11:58 +00:00
Mark D. Studebaker 79adb8ba49 check for invalid transaction type
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1778 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-10 01:07:54 +00:00
Kyosti Malkki 1cfe63804a (Kyösti) Cleanups
Copy sysctl enums to chip drivers from sensors.h for now,
   as seen in drivers included in 2.5 tree. File no longer included
   from kernel side.

   Apply i2c-proc change in CVS tagged -km2.

   Partial clean and sort of includes everywhere.

   Add i2c-dev.h, as a partial copy from i2c.
   Add to sensors.h from i2c-proc.h to compile things.
   Remove i2c-isa.h.

   Reflect header file changes to lib/ and prog/.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1705 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-01-21 20:01:27 +00:00
Kyosti Malkki 39391ba6ea (Kyösti) some cleanups for 2.4+
Module refcounting using .owner, removing of inc/dec_use.
   These require (yet unreleased) i2c 2.8.0+.

   Named initializers everywhere. Unified namespace.

   Cleanup for 2.5, remove EXPORT_NO_SYMBOLS, declare everything
   static. Apply initcalls.

   PCI device registration changes for busses started, replicating
   from i2c-amd*. While everything does compile, nothing really
   works. Well, maybe i2c-amd* ported back from 2.5 tree.

   After updating your work directory, run
    > cvs diff -u -r LAST-PRE-2-8-I2C > lm-2.8-patches-1

   BEWARE: I have not even insmoded any of these yet.

   To compile, you need i2c from cvs too.
   For 2.4 kernel :
    > cvs co -r lk2-4 i2c

   For 2.5 kernel :
    > cvs co i2c


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1698 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-01-17 01:19:52 +00:00
Mark D. Studebaker f6610c0394 backport from kernel 2.5.54 which contained changes from
Christoph Hellwig <hch@lst.de> and Pavel <pavel@ucw.cz>;
      Leave in 3 things: refcounts, version.h, and init printk.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1694 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-01-11 18:50:38 +00:00
Mark D. Studebaker 3929e57a5b amd8111 support, patch from
+* Vojtech Pavlik <vojtech@suse.cz>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1616 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-11-17 19:44:46 +00:00
Mark D. Studebaker 950186ae55 for nForce, change from static base address to reading base
from 0x14 (contributed by
        Michael Steil <mist@c64.org> from the xbox team and
        yrsh2scp@mbox.nc.kyushu-u.ac.jp (Yoshifumi R. Shimizu);
      also check for uninitialized base address.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1562 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-10-12 16:34:12 +00:00
Mark D. Studebaker 0a92ee5cf0 remove ref. in comment to smbus.h
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1388 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-06-08 19:49:06 +00:00
Merlin Hughes da76559ae6 mh: Fix i2c-amd756 support for non-nForce chips (probably a
patch error vs changed source). Change module so it registers
the detected device in i2c under its own name (e.g,
AMD756/AMD766/AMD768/nVidia nForce rather than AMD7X6).
Updated sensors-detect accordingly.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1367 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-05-02 14:44:31 +00:00
Mark D. Studebaker 9334e32e6c nForce cleanup and docs
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1366 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-05-01 23:33:53 +00:00
Mark D. Studebaker 7e4acca8c8 add support for nvidia nForce to i2c-amd756.
Patch from
        Csaba Halász <hcs@ics2.ics.tvnet.hu>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1365 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-05-01 23:28:09 +00:00
Mark D. Studebaker 88439d9566 Fix block read length bitmask bug;
limit read length to 32 bytes.
      Found by
        Csaba Halász <hcs@ics2.ics.tvnet.hu>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1364 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-05-01 23:17:25 +00:00
Merlin Hughes 80d025c79a mh: declare abort function static
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1363 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-04-30 16:13:57 +00:00
Merlin Hughes f1ee329ba8 mh: Increase AMD 7x6 timeout to 500ms from 100ms, add code to
abort/clear the bus on timeout. Appears? to improve reliability.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1362 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-04-30 15:55:29 +00:00
Mark D. Studebaker 61c2154280 add support for AMD768 to the i2c-amd756 bus driver
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1275 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-12-29 00:20:48 +00:00
Mark D. Studebaker 7bd97f4667 Add MODULE_LICENSE("GPL") to all modules
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1201 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-10-13 17:48:43 +00:00
Mark D. Studebaker e5018b6faf Loop waiting for un-busy at start of transaction.
Fail and printk if still busy.
      Fail and printk if completion timeout at end of transaction.
      Reduce timeout from 5 sec to 1 sec.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1190 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-09-19 17:57:11 +00:00
Mark D. Studebaker 4af5311969 add support for AMD 766 to i2c-amd756. Appears to be compatible w/ 756.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1154 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-08-03 01:25:11 +00:00
Mark D. Studebaker a8cf5cbfa2 (mds) add i2c- prefix to module name in version/date printk for those
that were missing it.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@949 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-12-15 00:50:18 +00:00
Mark D. Studebaker 4f8725ec23 (mds) fix request_region() call. Was requesting xx00 - xx07, now
correctly requesting xxE0 - xxEF. Should resolve conflict with
      ACPI.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@726 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-02-04 00:16:44 +00:00
Frodo Looijaard 6a2c82b491 `indent -kr -i8' on all kernel sources
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@707 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-24 20:37:01 +00:00
Frodo Looijaard 888d32f50b Removing kernel 2.0 and 2.1 compatibility pass 2
Eliminated compat.h


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@705 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-24 20:07:29 +00:00
Frodo Looijaard 9480bb5988 Removal of kernel 2.1 and 2.2 compatibility: pass one
Removed many #if statements


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@704 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-24 19:30:08 +00:00
Merlin Hughes 4343e90a9b (Merlin) removed some legacy piix constants and comments.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@658 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-02 21:16:29 +00:00
Frodo Looijaard c158f1b4a6 Moved AMD756 ID to the main i2c-id.h file
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@651 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-02 00:50:47 +00:00
Frodo Looijaard 5059c482fd Just to make sure, added `#include <linux/version.h>' at several
other places.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@645 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-01 00:48:34 +00:00
Frodo Looijaard 1238d9ab44 New i2c-amd756 driver by Merlin Hughes <merlin@merlin.org>
sensors-detect detection is now complete; I think nothing else needs
to be done in the tree?!? (except documentation of course)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@643 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-01 00:33:33 +00:00