Failed to backport i2c-ali1563.c from linux-2.6 to 2.4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Jean, Mochel, MDS, and LM_Sensors Group:

This is Chunhao.

I get a motherboard with ALI M1563 today, and tested the i2c-ali1563.c
for linux-2.4 (backport by myself, can compile, load/unload), it does NOT
work.

When I test the module with lm_sensors-2.9.0, I find that it does
NOT work: after I load the required module: i2c-core, i2c-proc, i2c-ali1563
and w83792d, I get the output "No sensors found!" when I run "sensors".
I examined the source code of i2c-ali1563.c but can NOT find the reason.

The attachment is the i2c-ali1563.c backported by me, Would you please
check it for me? Since I keep the modification trace in the codes, you may
just search "chunhao" to find the modified part. I'm NOT familiar with
bus driver, I backport the driver only with the suggestion of Jean and
reference to driver i2c-ali1535.c/i2c-ali15x3.c,
So I think there should be some errors in all probability. I need your help.

The following is the debug message when I load some modules, please refer
it:
**************************************************************
Jan 27 17:44:11 pi140001 kernel: i2c-core.o: i2c core module version 2.9.0 (20041228)
Jan 27 17:44:11 pi140001 kernel: i2c-proc.o version 2.9.0 (20041228)
Jan 27 17:44:11 pi140001 kernel: i2c-core.o: i2c core module version 2.9.0 (20041228)
Jan 27 17:44:11 pi140001 kernel: ali1563: SMBus control = 5003
Jan 27 17:44:11 pi140001 kernel: ali1563_probe: Returning 0
Jan 27 17:44:11 pi140001 kernel: i2c-proc.o version 2.9.0 (20041228)
Jan 27 17:44:11 pi140001 kernel: w83792d.o version 2.9.0 (20041228)
Jan 27 17:44:11 pi140001 kernel: w83792d: ENTERING w83792d_attach_adapter
Jan 27 17:44:11 pi140001 kernel: w83792d: ENTERING w83792d_detect
Jan 27 17:44:11 pi140001 kernel: w83792d: LEAVING w83792d_detect
Jan 27 17:44:11 pi140001 kernel: w83792d: LEAVING w83792d_attach_adapter


Best Regards
Chunhao


> -----Original Message-----
> From: PI14 HUANG0
> Sent: 2005???1???19??? 18:24
> To: 'Jean Delvare'; 'mochel at digitalimplant.org'
> Cc: PI10 LHHsu; PI14 DZSHEN; 'LM Sensors'; PI13 CFLi
> Subject: RE: A probelm of loading module i2c-ali1563.o
> 
> Hi Jean & Mochel
> 
> I backported the i2c-ali1563.c from 2.6 to 2.4. It can be compiled on my
> Linux now. After I get a motherboard with ALI M1563(tomorrow or the day after
> tomorrow), I will test it to see whether lm_sensors(w83792D) works well.
> 
> If i2c-ali1563.c for linux 2.4 can work well, I'd like to send it to you.
> Would you please review the codes or test(if you have ALI M1563) it for me?
> 
> 
> Thanks
> 
> Best Regards
> Chunhao
> 
> 
> > -----Original Message-----
> > From: PI14 HUANG0
> > Sent: 2005???1???19??? 15:35
> > To: 'Jean Delvare'
> > Cc: mochel at digitalimplant.org; PI10 LHHsu; PI14 DZSHEN; LM Sensors; PI13 CFLi
> > Subject: RE: A probelm of loading module i2c-ali1563.o
> >
> > Dear Jean
> >
> > This is Chunhao.
> >
> > I download the i2c-ali1563.c from linux-2.6.11-rc1 and read some
> > of the codes.
> >
> > I wonder whether there is a plan for LM_Sensors Group to backport
> > it from 2.6 to 2.4? Because I have little knowledge and experience
> > about bus drivers. And I think there should be many guys in LM_Sensors
> > Group who have experience about it.
> >
> > It will be good if lm_sensors group will backport it. :-)
> > Btw, Is there anyone who already began to do this job?
> >
> >
> > Thanks
> >
> > Best Regards
> > Chunhao
> >
> >
> > > -----Original Message-----
> > > From: Jean Delvare [mailto:khali at linux-fr.org]
> > > Sent: 2005???1???14??? 16:59
> > > To: PI14 HUANG0
> > > Cc: mochel at digitalimplant.org; PI10 LHHsu; PI14 DZSHEN; LM Sensors; PI13
> CFLi
> > > Subject: RE: A probelm of loading module i2c-ali1563.o
> > >
> > >
> > > Hi Chunhao,
> > >
> > > > We found the source of i2c-ali1563.c on the internet:
> > > > http://www.kernel-websource.com/linux266/source-i2c-ali1563.htm
> > > > Could you confirm it when you are free?
> > >
> > > Picking the sources from some random website doesn't sound really good
> > > ;) I would use this one:
> > >
> >
> http://linux.bkbits.net:8080/linux-2.5/anno/drivers/i2c/busses/i2c-ali1563
> > > .c at 1.12
> > >
> > > At least you'll be sure the file is correct and up-to-date. If you want
> > > the file itself, which I think you can't download from bitkeeper's web
> > > interface, then you should simply download linux-2.6.11-rc1.
> > >
> > > > I tried to get the source
> > > > from LM-Sensors CVS, but failed to login for several times:
> > >
> > > I did not experience any problem recently. Try again later, if it still
> > > doesn't work you may contact Philip Edelbrock but since it works for me
> > > the problem might be on your side and not on the server side.
> > >
> > > > If we have to backport i2c-ali1563 to Linux 2.4 by myself,
> > > > Could you give me some guides about it?
> > >
> > > I am not an expert in bus drivers, so say the least. All I can tell is
> > > that the Linux 2.6 i2c-ali1563 driver is based on the Linux 2.6
> > > i2c-ali15x3, i2c-ali1535, and i2c-i801 drivers. This means that if you
> > > compare these drivers with their lm_sensors CVS counterparts and report
> > > the differences to the i2c-ali1563 driver, you should get a driver that
> > > works with lm_sensors CVS. If you have more technical questions, I guess
> > > that the various folks who wrote and ported these bus drivers will be of
> > > more help to you than I can be myself.
> > >
> > > --
> > > Jean Delvare
> > >
> > >
> > >
> > > >
> > > >
> > > >Best Regards
> > > >Chunhao
> > > >
> > > >
> > > >> -----Original Message-----
> > > >> From: Jean Delvare [mailto:khali at linux-fr.org]
> > > >> Sent: 2005????1????13???? 20:07
> > > >> To: PI13 CFLi; sensors at Stimpy.netroedge.com
> > > >> Cc: Patrick Mochel; PI10 LHHsu; PI14 DZSHEN; PI14 HUANG0
> > > >> Subject: Re: A probelm of loading module i2c-ali1563.o
> > > >>
> > > >>
> > > >> Hi,
> > > >>
> > > >> > While I'm trying to load the module of the south bridge chip (ULI M1563
> > > >> > B1), it shows
> > > >> >[root at localhost busses]# insmod ./i2c-ali15x3.o
> > > >> >./i2c-ali15x3.o: init_module: No such device
> > > >>
> > > >> Expected, since the M1563 is not supported by this driver.
> > > >>
> > > >> > Is there any module named "i2c-ali1563"? I only found "i2c-ali15x3".
> > > >> >
> > > >> > Does i2c-2.8.8 support this chipset of ULi?
> > > >>
> > > >> There is an i2c-ali1563 driver specifically written by Patrick Mochel
> for
> > > >> the M1563, but only available for Linux 2.6 at the moment:
> > > >> http://archives.andrew.net.au/lm-sensors/msg26537.html
> > > >>
> > > >> You would need to port it back to 2.4 (i.e. to lm_sensors CVS). Patrick
> > > >> seems to think this would be easy.
> > > >>
> > > >> --
> > > >> Jean Delvare
> > > >

===========================================================================================The privileged confidential information contained in this email is intended for use only by the addressees as indicated by the original author of this email. If you are not the addressee indicated in this email or are not responsible for delivery of the email to such person, please kindly reply the sender indicating accordingly and delete all copies of it from your computer and network server immediately. We thank you for your cooperation. It is advisable that any unauthorized use of confidential information of Winbond is strictly prohibited; and any information in this email that does not relate to the official business of Winbond shall be deemed as neither given nor endorsed by Winbond.===========================================================================================If your computer is unable to decode Chinese font, please ignore the following message. They essentially repeat the  English statement above.???H???????t?????q?l???]???????K?????T, ?????v???o?H?H???w?????H?H???\????. ?????z???D?Q???w?????H?H???]???????]?b???g???v?????????U???????H??, ???z?i?????o?H?H?????Y?N?H???q?q???P???????A???????H????. ?????z???X?@, ?????????P??. ?S??????, ???????g???v?????????????q?l?????K???T???????O?Q?Y???T????. ?H???P?????q?l???~?L???????e,???o?????????q?l?????????N??.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: i2c-ali1563.rar
Type: application/octet-stream
Size: 3524 bytes
Desc: i2c-ali1563.rar
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20050127/e09083b3/attachment.obj 


[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux