i2c and sensors for 2.4/2.5

Kyösti Mälkki (kmalkki@cc.hut.fi)
Fri, 17 Jan 2003 19:12:43 +0200 (EET)


This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

--0-1273997454-1042823563=:22376
Content-Type: TEXT/PLAIN; charset=ISO-8859-1
Content-Transfer-Encoding: 8BIT

Finally, i2c CVS is synced with 2.5.58 tree.

I believe we are ready to submit patches to both 2.4 and 2.5 trees
in a week or so. In the mean time, please hold any non-critical i2c
patches. Most of the 2.4 cleanup done in CVS already applies these.
And some of the header file cleanups applied in 2.5.53+ evidently
break i2c-proc and userland compiles for /dev/i2c-x ...

You can checkout i2c with "-r lk2-4" to get i2c code for 2.4 tree.
Attached is non-CVS i2c code ported back from 2.5 to 2.4.21-pre3
for the impatient, to use .owner refcounting.

As for lm_sensors, CVS head will work for both 2.5 and 2.4 after i2c
patches. Currently CVS compiles but all of PCI probing takes time to
convert. Post to LKML with a list of i2c busses you volunteer to fix.

Also, assistance on how to fix module refcounting is welcome.
To my understanding, it does not handle client->adapter->owner
correctly now, and it is possible to rmmod adapter while one of its
clients is in use.

HTH.

-- 
  Kyvsti Mdlkki
  kmalkki@cc.hut.fi

--0-1273997454-1042823563=:22376 Content-Type: APPLICATION/octet-stream; name="patch-2.4.21-pre3-pre4-i2c-1.gz" Content-Transfer-Encoding: BASE64 Content-ID: <Pine.OSF.4.50.0301171912430.22376@kosh.hut.fi> Content-Description: Content-Disposition: attachment; filename="patch-2.4.21-pre3-pre4-i2c-1.gz"

H4sICDykJT4AA3BhdGNoLTIuNC4yMS1wcmUzLXByZTQtaTJjLTEA1Vttb9s4 Ev4s/wrCxRZJLCWSbMexc8k1jZPWe3k5NE527w4HQZZoW1tLMiQ52eLQ/vbj kJREvTmSG+BwbhPJw+GQHM48HJKTe2/1DTkeWjne5k9FP+wd6pqyDnBvhC6/ XI0n04fDAP/Rsp35HCmboMDXPbID5xkH4ZGjW/C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FYB7XzE7ly3iY9sVSd2zIV y/S8LWUxOwHgpQpRHb3uPKj8ZG8wmdGJqCPcQP8MmHME+1EtYYTWZmQtGUlV yLQ14f3R+i/2nn443TsAAA== --0-1273997454-1042823563=:22376-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/