SIS 645 (was: Re: SIS 630 (ID))
Hello sensors list:
I'm also ready for an ID for SiS645 SMbus. You can put my name down for 635, 645, and 735; although this first attempt only supports 645.
According to SiS, it should also work for the others. But this is the *only* information I got from them - still no datasheets. Thanks to Alexander for finding the 630 datasheet though... it's close enough to put this over the top.
It tests OK on my Asus P4S333. You can find the driver here...
http://home.pacbell.net/mh0ffman/sensors/i2c-sis645.c
I'll follow this up w/ docs, sensors-detect patch, etc. as soon as I can.
I'm interested in any comments or suggestions; especially would someone with more PCI experience care to comment on the junk starting at line 168?
Thanks and regards,
Signature · 2 lines
Mark M. Hoffman [email protected]
Quoted 21 lines · Mark Studebaker
OK,
I'll give you an ID tonight.
If you haven't please review doc/developers/new-drivers. Do you know if the 630 driver will work for any of the other SiS devices listed on our new drivers page?Quoted 14 lines · Alexander Malysh
Hello,
as i already wrote , i have implemented smbus support for sis630. Since my first posting i have found and fixed several bugs (please do not use old one). New version can be found at : http://amalysh.bei.t-online.de/linux/
Now i need ID for sis630 SMBUS ini2c-id.hThank you for you help ...
--
Regargs,Dipl.-Ing. Alexander Malysh
Hi Mark, list:
I did look at hotplug also, but gave up for lack of a clear example. It wasn't obvious to me that you could "hot add" individual functions of an otherwise enabled unit. Well now I have two examples. :) Thanks for the hint.
I've seen lspci from a couple different SIS645 based boards, and none show the device enabled; so I think I'll break tradition and put the hotplug code right in the i2c driver as you mentioned. Downside is that it won't compile vs. 2.2 right?
Regards,
Signature · 2 lines
Mark M. Hoffman [email protected]
Quoted 52 lines · Mark Studebaker
With respect to the PCI "junk",
the "right" way to do it is to use the kernel's PCI hotplug facility. Two examples are the m7101 andp4b_smbusmodules in prog/hotlug in our package.
I think it's the only acceptable way.
We have many people using these modules, they work well.These are "fixup" modules that enable a PCI device. They must be run before the corresponding i2c driver.
We've always treated boards that failed to enable a PCI device as the exception - and haven't put the hotplug code into any i2c driver itself. You could certainly do that for yours, it would have to be wrapped with #ifdef
CONFIG_HOTPLUG. You're most of the way there already.How many people run kernels with
CONFIG_HOTPLUG, I have no idea - but you can always put out a printk telling them to enable it if they want to get their SMBus device.I also checked in your ID.
mds
Quoted 24 lines · Mark M. Hoffman
Hello sensors list:
I'm also ready for an ID for SiS645 SMbus. You can put my name down for 635, 645, and 735; although this first attempt only supports 645.
According to SiS, it should also work for the others. But this is the *only* information I got from them - still no datasheets. Thanks to Alexander for finding the 630 datasheet though... it's close enough to put this over the top.
It tests OK on my Asus P4S333. You can find the driver here...
http://home.pacbell.net/mh0ffman/sensors/i2c-sis645.cI'll follow this up w/ docs, sensors-detect patch, etc. as soon as I can.
I'm interested in any comments or suggestions; especially would someone with more PCI experience care to comment on the junk starting at line 168?
Thanks and regards,
--
Mark M. Hoffman
[email protected]
Hi there:
A revised SiS645 SMBus driver is now here:
http://home.pacbell.net/mh0ffman/sensors/i2c-sis645.c
It uses PCI hotplug; the SMBus device shows up in lspci now. I couldn't see any reason to remove the device on module unload though. I am still interested in your comments and suggestions.
Regards,
Signature · 2 lines
Mark M. Hoffman [email protected]
Quoted 52 lines · Mark Studebaker
With respect to the PCI "junk",
the "right" way to do it is to use the kernel's PCI hotplug facility. Two examples are the m7101 andp4b_smbusmodules in prog/hotlug in our package.
I think it's the only acceptable way.
We have many people using these modules, they work well.These are "fixup" modules that enable a PCI device. They must be run before the corresponding i2c driver.
We've always treated boards that failed to enable a PCI device as the exception - and haven't put the hotplug code into any i2c driver itself. You could certainly do that for yours, it would have to be wrapped with #ifdef
CONFIG_HOTPLUG. You're most of the way there already.How many people run kernels with
CONFIG_HOTPLUG, I have no idea - but you can always put out a printk telling them to enable it if they want to get their SMBus device.I also checked in your ID.
mds
Quoted 24 lines · Mark M. Hoffman
Hello sensors list:
I'm also ready for an ID for SiS645 SMbus. You can put my name down for 635, 645, and 735; although this first attempt only supports 645.
According to SiS, it should also work for the others. But this is the *only* information I got from them - still no datasheets. Thanks to Alexander for finding the 630 datasheet though... it's close enough to put this over the top.
It tests OK on my Asus P4S333. You can find the driver here...
http://home.pacbell.net/mh0ffman/sensors/i2c-sis645.cI'll follow this up w/ docs, sensors-detect patch, etc. as soon as I can.
I'm interested in any comments or suggestions; especially would someone with more PCI experience care to comment on the junk starting at line 168?
Thanks and regards,
--
Mark M. Hoffman
[email protected]
Hi Mark,
i have only one comment to our code ...
at line 292 you do not need to check_region ... you can call request_region and check return value ... if it's failed then return value is NULL ...
Regards,
Alexander
Am Sonntag, 25. August 2002 23:34 schrieben Sie:
Quoted 11 lines
Hi there:
A revised SiS645 SMBus driver is now here:
http://home.pacbell.net/mh0ffman/sensors/i2c-sis645.c
It uses PCI hotplug; the SMBus device shows up in lspci now. I couldn't see any reason to remove the device on module unload though. I am still interested in your comments and suggestions.
With respect to the PCI "junk",
the "right" way to do it is to use the kernel's PCI hotplug facility. Two examples are the m7101 and p4b_smbus modules in prog/hotlug in our package.
I think it's the only acceptable way.
We have many people using these modules, they work well.
These are "fixup" modules that enable a PCI device. They must be run before the corresponding i2c driver.
We've always treated boards that failed to enable a PCI device as the exception - and haven't put the hotplug code into any i2c driver itself. You could certainly do that for yours, it would have to be wrapped with #ifdef CONFIG_HOTPLUG. You're most of the way there already.
How many people run kernels with CONFIG_HOTPLUG, I have no idea - but you can always put out a printk telling them to enable it if they want to get their SMBus device.
I also checked in your ID.
mds
Quoted 47 lines · Mark M. Hoffman
Hello sensors list:
I'm also ready for an ID for SiS645 SMbus. You can put my name down for 635, 645, and 735; although this first attempt only supports 645.
According to SiS, it should also work for the others. But this is the *only* information I got from them - still no datasheets. Thanks to Alexander for finding the 630 datasheet though... it's close enough to put this over the top.
It tests OK on my Asus P4S333. You can find the driver here...
http://home.pacbell.net/mh0ffman/sensors/i2c-sis645.cI'll follow this up w/ docs, sensors-detect patch, etc. as soon as I can.
I'm interested in any comments or suggestions; especially would someone with more PCI experience care to comment on the junk starting at line 168?
Thanks and regards,
--
Mark M. Hoffman
[email protected]Quoted 21 lines · Mark Studebaker
OK,
I'll give you an ID tonight.
If you haven't please review doc/developers/new-drivers. Do you know if the 630 driver will work for any of the other SiS devices listed on our new drivers page?Quoted 14 lines · Alexander Malysh
Hello,
as i already wrote , i have implemented smbus support for sis630. Since my first posting i have found and fixed several bugs (please do not use old one). New version can be found at : http://amalysh.bei.t-online.de/linux/
Now i need ID for sis630 SMBUS ini2c-id.hThank you for you help ...
--
Regargs,Dipl.-Ing. Alexander Malysh