Jean Delvare
86b9b4a477
Cleanups (mostly from Daniel Nilsson).
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2191 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-28 15:19:21 +00:00
Mark D. Studebaker
64aeb747a4
remove -o and -g args to install
...
Date: Thu, 18 Dec 2003 22:42:36 +0100
From: Haakon Riiser <haakon.riiser@fys.uio.no >
To: sensors@Stimpy.netroedge.com
Subject: lm_sensors 2.8.2 / DESTDIR / root
The reason for this email is that I always try to avoid running
Makefiles as root, even during 'make install'. Therefore, I
always use the DESTDIR feature, when it's available. Until today,
I always built i2c and lm_sensors by doing
$ make
$ make -i install DESTDIR=/foo
$ cd /foo && su root && fix permissions/ownership && install
The -i flag to make install is a kludge to avoid having to be root
while installing to the DESTDIR, and it's only required because
the files are installed with "-o root -g root". Using the -i
flag is of course not a good idea, since more fatal errors can
easily fly by undetected.
Today, I upgraded to Linux 2.6.0, and tried a similar install
procedure for lm_sensors, except that the make target is now "user"
and the install target is "user_install". I now noticed that the
DESTDIR variable is not used everywhere in "user_install", so I
couldn't use the -i kludge anymore. Instead, I wrote a patch that
removes the "-o root -g root" arguments to install everywhere, and
I also tried to add DESTDIR to all files/directories installed.
(The patch only applies to lm_sensors, not i2c, since only
lm_sensors is required in Linux 2.6.0.)
There's really no reason to say -o root -g root anyway, since if you
do install directly with make install, you have to be logged in as
root, and then the files will get the right ownership by default.
Much of the point of installing to a temporary DESTDIR is that you
don't have to be root, and that you can prepare the installation
by hand. Fixing the ownership is trivial:
chown -R root.root $DESTDIR
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2189 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-23 23:13:38 +00:00
Jean Delvare
d1d3418754
amd7xx -> amd756 (suggested by Philip Pokorny).
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2175 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-14 17:19:30 +00:00
Mark D. Studebaker
7e2d5f5fef
fix byte writes
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2166 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-13 23:39:23 +00:00
Jean Delvare
fb12997188
Change the "Unusual config register" message. Patch more or
...
less by Tom Rini.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2158 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-12 22:50:33 +00:00
Jean Delvare
5bdbb3744f
Display a message if a Force-CPCI735-like config register is
...
found. Should help debugging the problem.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2140 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-06 21:48:32 +00:00
Jean Delvare
0247cfa944
Fix byte writes used by eeprom.c. Similar to a recent fix made
...
to i2c-nforce2.c. Patch by Hans-Frieder Vogt <hfvogt@arcor.de >.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2127 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-01 19:39:00 +00:00
Jean Delvare
e5483ca3b6
Cleanups (again).
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2122 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-30 11:01:48 +00:00
Jean Delvare
0f00db6a1f
Cleanups.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2121 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-30 09:47:56 +00:00
Jean Delvare
d835fc770d
Support AMD8111 again. Patch by from Philip Pokorny
...
<ppokorny@penguincomputing.com >.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2120 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-30 09:17:33 +00:00
Jean Delvare
72f129f3c2
Add support for KT600. Requested by Lou
...
<lm-sensors@fixit.nospammail.net >.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2109 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-29 16:51:04 +00:00
Jean Delvare
f2fe6cbd68
Rehabilitate Alexander Wold as the driver's author.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2102 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-28 20:12:02 +00:00
Mark D. Studebaker
7d16642a33
hopefully fix byte writes used by eeprom.c
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2096 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-27 02:37:43 +00:00
Jean Delvare
9f8ececd48
Disable Tom Tini's workaround by default. It can be re-enabled
...
by using the (new) fix_hstcfg parameter.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2083 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-21 22:57:38 +00:00
Mark D. Studebaker
39faf50b41
add support for CSB6 based on confirmation in ticket #1424
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2027 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-10-27 03:03:47 +00:00
Alexander Malysh
b1986134c3
(amalysh)
...
* i2c-sis630.c: sync with 2.6.0-X driver version
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2014 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-10-11 11:45:04 +00:00
Mark M. Hoffman
76c05536bf
Use readl/writel for portable access to PCI memory
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1996 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-09-22 04:55:10 +00:00
Jean Delvare
bb89ea05e3
Force CPCI735 bug workaround (patch by Tom Rini).
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1961 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-08-14 22:28:42 +00:00
Mark M. Hoffman
69ef356b2c
Prevent buffer overrun during SMBus Block Read when client responds
...
(mmh) with illegal read size. Patch by Sergey Vlasov <vsu@altlinux.ru >.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1940 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-08-06 03:11:40 +00:00
Mark M. Hoffman
9791b06ae5
Fixes backported from 2.6 work by Greg KH:
...
(mmh) o remove devinitdata marking from i2c-nforce2.c as it's wrong
(mmh) o minor cleanups to the i2c-nforce2 driver
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1938 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-08-03 05:32:01 +00:00
Mark M. Hoffman
5b720a247d
Fixed resource leak - patch by Daniele Bellucci <bellucda@tiscali.it>
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1937 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-08-03 05:19:49 +00:00
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
Jean Delvare
e4f94587c8
Remove 2.2 kernel compatibility macro.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1931 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-31 12:56:35 +00:00
Alexander Malysh
bb6298c2f2
added block data read/write support. Minor cleanup.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1926 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-30 22:35:17 +00:00
Alexander Malysh
1843d33fb7
Fixed sis630 detection. We need ISA brigde and not the pci device
...
supplied by pci-core. Tickets #1350 and #1351 should be closed.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1925 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-30 20:40:27 +00:00
Jean Delvare
f7b40f84b3
Fix includes for compilation on Alpha.
...
Patch by Kelledin.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1912 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-28 09:57:11 +00:00
Mark M. Hoffman
8598dba3b6
Revise detection strategy (again) so that the driver claims the
...
SMBus pci device only - instead of also claiming the south bridge.
Although no problems had been reported with the previous detection
strategy, this change avoids the class of problems mentioned here:
http://archives.andrew.net.au/lm-sensors/msg03193.html
As a side benefit, it now looks much more like its sibling in 2.5.7x.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1893 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-21 23:13:08 +00:00
Mark D. Studebaker
e372b78cc5
don't use pci_module_init() for video i2c drivers so we don't
...
conflict with video drivers
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1833 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-03 01:30:13 +00:00
Jean Delvare
abec4c64eb
Fixed a compiler warning, plus some code clean-ups.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1818 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-27 16:15:24 +00:00
Jean Delvare
2db3917eac
Fixed a compiler warning.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1817 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-27 16:11:45 +00:00
Mark D. Studebaker
06ea29ef6c
-Wall cleanup (returns in probe functions)
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1814 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-23 01:21:04 +00:00
Mark D. Studebaker
e9f1938938
restore functionality call that shouldn't have been removed
...
in cleanup. Dummy adapters must return 0, otherwise they
will get assigned every functionality!
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1812 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-23 00:56:25 +00:00
Mark M. Hoffman
35c08c894e
Added missing PCI ID for 746. Also added comments noting in
...
(mmh) which release (> 2.4.9) the IDs were defined, if any.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1804 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-21 17:01:59 +00:00
Mark D. Studebaker
7e8d8dc3c7
-Wall cleanups
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1803 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-21 16:17:02 +00:00
Mark M. Hoffman
f016bf233d
Added a handful of blacklist PCI IDs.
...
(mmh) Fixed a trivial compiler warning.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1795 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-18 05:26:38 +00:00
Mark M. Hoffman
d78cd69dd7
Added recognition of SiS746 host bridge.
...
(mmh) Addressed some trivial compiler warnings.
(mmh) Updated documentation.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1793 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-17 05:17:02 +00:00
Mark D. Studebaker
b24442eed8
remove old gzipped modules;
...
remove old misc directory if empty
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1787 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-14 19:25:19 +00:00
Mark M. Hoffman
f525a97656
added missing #include <linux/mm.h>
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1786 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-12 03:29:38 +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
Mark D. Studebaker
8234f8c58a
add support for 82801EB (ICH5) 0x24d3
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1775 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-08 21:05:58 +00:00
Jean Delvare
c4666742ca
Added missing device IDs, required for compiling with Linux kernel
...
2.4.18 and previous (VIA_8233A and INTEL_82801DB_3).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1773 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-08 17:21:54 +00:00
Mark D. Studebaker
01ea959a80
populate pci_device_id table. untested.
...
Took out the force code which may need to be put back in somehow.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1769 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-07 20:05:10 +00:00
Mark D. Studebaker
182261f671
populate pci_device_id tables so the module will load. untested.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1768 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-07 19:53:21 +00:00
Mark D. Studebaker
fcc2041d20
populate pci_device_id table. untested.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1765 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-06 02:11:21 +00:00
Mark D. Studebaker
84718f8ff2
partial backport from 2.5.69. Populated the pci_device_id table;
...
left the dmi_scan stuff in there. untested.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1764 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-06 01:51:06 +00:00
Mark D. Studebaker
4302318201
backport from kernel 2.5.69. untested.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1763 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-06 01:49:49 +00:00
Mark D. Studebaker
c858140e89
version printk cleanup
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1762 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-06 01:45:51 +00:00
Mark M. Hoffman
142689feb3
Fix trivial compile errors when using DEBUG := 1
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1757 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-04 04:56:51 +00:00
Mark D. Studebaker
b5e2fb9803
backport from kernel 2.5.69. tested OK.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1756 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-04 02:41:15 +00:00
Mark D. Studebaker
7bce574327
get i2c-viapro working again by backporting from
...
kernel 2.5.69 and adding new sensors_compat.h for the
drv_dbg(), etc. calls
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1754 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-03 02:05:18 +00:00