Message ID | 1675330898-563-1-git-send-email-manikanta.guntupalli@amd.com |
---|---|
Headers | show |
Series | Added Standard mode and SMBus support. | expand |
On Thu, Feb 02, 2023 at 03:11:30PM +0530, Manikanta Guntupalli wrote: > From: Raviteja Narayanam <raviteja.narayanam@xilinx.com> > > read transfers > > Added standard mode for AXI I2C controller to enable read transfers > of size more than 255 bytes. The driver selects standard mode in the > following scenarios. > > 1. If a single message request comes from user space, requesting a > read of more than 255 bytes > > 2. If a message set request comes from user space consisting of many > messages and if any one of them is a read operation, irrespective > of the size of transfer. (This is done because it is observed that > repeated start operation is not happening in dynamic mode read as > expected in a message set request from user space.) > > Signed-off-by: Raviteja Narayanam <raviteja.narayanam@xilinx.com> > Signed-off-by: Manikanta Guntupalli <manikanta.guntupalli@amd.com> > Acked-by: Michal Simek <michal.simek@amd.com> Applied to for-next, thanks!
On Thu, Feb 02, 2023 at 03:11:32PM +0530, Manikanta Guntupalli wrote: > From: Raviteja Narayanam <raviteja.narayanam@xilinx.com> > > Xilinx I2C IP has two modes of operation, both of which implement > I2C transactions. The only difference from sw perspective is the > programming sequence for these modes. > Dynamic mode -> Simple to program, less number of steps in sequence. > Standard mode -> Gives flexibility, more number of steps in sequence. > > In dynamic mode, during the i2c-read transactions, if there is a > delay(> 200us) between the register writes (address & byte count), > read transaction fails. On a system with load, this scenario is > occurring frequently. > To avoid this, switch to standard mode if there is a read request. > > Added a quirk to identify the IP version effected by this and follow > the standard mode. > > Signed-off-by: Raviteja Narayanam <raviteja.narayanam@xilinx.com> > Signed-off-by: Manikanta Guntupalli <manikanta.guntupalli@amd.com> > Acked-by: Michal Simek <michal.simek@amd.com> Applied to for-next, thanks!