probable typo in i2c-amd756.c (block transfer)

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

 



Date: Wed, 01 May 2002 19:08:56 -0400
From: "Mark D. Studebaker" <mds at paradyne.com>
To: Csaba Hal?sz <hcs at ics2.ics.tvnet.hu>
CC: sensors at stimpy.netroedge.com
Subject: Re: probable typo in i2c-amd756.c (block transfer)

definitely a typo and we also need to limit to 32 bytes.
Thanks. I'll fix it in CVS.

For block xfer, you need a chip that responds to SMBus block
transfers; most don't.

Thanks for explaining how you got the nForce working and
providing the i2cdump/i2cdetect results. I'll check in your patch
too. Great job on the reverse eng.

On RAM showing up as PCI devices, I haven't seen that before.
Probably some other devices inside the nForce misidentified as RAM
by lspci.


Csaba Hal?sz wrote:
 >
 > --- i2c-amd756.c.orig   Tue Apr 30 20:46:16 2002
 > +++ i2c-amd756.c        Tue Apr 30 20:49:45 2002
 > @@ -419,7 +419,7 @@
 >                 data->word = inw_p(SMB_HOST_DATA);      /* TODO: endian????
 > */
 >                 break;
 >         case AMD756_BLOCK_DATA:
 > -               data->block[0] = inw_p(SMB_HOST_DATA & 63);
 > +               data->block[0] = inw_p(SMB_HOST_DATA) & 63;
 >                 /* i = inw_p(SMBHSTCNT); Reset SMBBLKDAT */
 >                 for (i = 1; i <= data->block[0]; i++)
 >                         data->block[i] = inb_p(SMB_HOST_BLOCK_DATA);
 >
 > I noticed this while playing around with the driver.
 >
 > As I wrote earlier, I suspect that the nVidia nForce
 > is compatible with the AMD756, but the block transfer
 > does not work even after I applied the patch.
 > Does it work with an AMD756?
 >
 > Also, the block member of the i2c_smbus_data union
 > seems to be 33 bytes, so maybe that has to be handled
 > as well.
 >
 > Greets,
 >         Csaba




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

  Powered by Linux