Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1302714

Re: [RFC] spi: dw: support setting tmode dynamically

From Mark Brown <broonie@kernel.org>
Newsgroups linux.kernel
Subject Re: [RFC] spi: dw: support setting tmode dynamically
Date 2016-01-06 13:20 +0100
Message-ID <qNVeh-YK-9@gated-at.bofh.it> (permalink)
References <qIPMe-vw-23@gated-at.bofh.it> <qIQyC-11R-21@gated-at.bofh.it> <qIQRY-18q-31@gated-at.bofh.it> <qNCv1-5eI-37@gated-at.bofh.it> <qNLHX-36E-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Wed, Jan 06, 2016 at 08:45:38AM +0700, Khoa Dang Pham wrote:
> Hi Mark,

Please don't top post, reply in line with needed context.  This allows
readers to readily follow the flow of conversation and understand what
you are talking about and also helps ensure that everything in the
discussion is being addressed.

> According to the "DesignWare DW_apb_ssi Databook" (version 3.21b) provided
> by Synopsys, the EEPROM read is:

> "When TMOD = 2‘b11, the transmit data is used to transmit an opcode and/or
> an address to the EEPROM
> device. Typically this takes three data frames (8-bit opcode followed by
> 8-bit upper address and 8-bit lower
> address). During the transmission of the opcode and address, no data is
> captured by the receive logic (as
> long as the DW_apb_ssi master is transmitting data on its txd line, data on
> the rxd line is ignored). The

This is just a normal data transfer, if the driver is functioning
correctly this should not be required and requiring it would mean that
we'd need to go round adding workarounds for this to lots of client
drivers.  It seems like you are trying to work around some other bug in
the driver, quite possibly incorrect handling of chip select as was
suggested elsewhere.  If that is the case a common solution is to manage
the chip select as a GPIO rather than with the built in handling in the
block if the block can't cope.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [RFC] spi: dw: support setting tmode dynamically Mark Brown <broonie@kernel.org> - 2016-01-05 17:20 +0100
  Re: [RFC] spi: dw: support setting tmode dynamically Khoa Dang Pham <kpham@apm.com> - 2016-01-06 03:10 +0100
  Re: [RFC] spi: dw: support setting tmode dynamically Jisheng Zhang <jszhang@marvell.com> - 2016-01-06 07:30 +0100
    Re: [RFC] spi: dw: support setting tmode dynamically Khoa Dang Pham <kpham@apm.com> - 2016-01-06 08:10 +0100
      Re: [RFC] spi: dw: support setting tmode dynamically Jisheng Zhang <jszhang@marvell.com> - 2016-01-06 08:30 +0100
        Re: [RFC] spi: dw: support setting tmode dynamically Khoa Dang Pham <kpham@apm.com> - 2016-01-06 08:40 +0100
          Re: [RFC] spi: dw: support setting tmode dynamically Jisheng Zhang <jszhang@marvell.com> - 2016-01-06 08:50 +0100
  Re: [RFC] spi: dw: support setting tmode dynamically Mark Brown <broonie@kernel.org> - 2016-01-06 13:20 +0100

csiph-web