mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/6] NVIDIA Tegra I2C driver fixes and improvements
@ 2019-12-28 22:16 Dmitry Osipenko
  2019-12-28 22:16 ` [PATCH v2 1/6] i2c: tegra: Fix suspending in active runtime PM state Dmitry Osipenko
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Dmitry Osipenko @ 2019-12-28 22:16 UTC (permalink / raw)
  To: Thierry Reding, Jonathan Hunter, Laxman Dewangan,
	Mikko Perttunen, Wolfram Sang
  Cc: linux-i2c, linux-tegra, linux-kernel

Hello,

This patchset adds support for atomic transfers which are required for
shutting down machine properly. Secondly, a (not)suspending I2C and some
other things are fixed/improved by this small series as well. Please review
and apply, thanks in advance!

Changelog:

v2: The series is renamed from "Tegra I2C: Support atomic transfers and
    correct suspend/resume" to "NVIDIA Tegra I2C driver fixes and
    improvements" because it now contains some more various changes.

    New patches in v2:

      i2c: tegra: Correct unwinding order on driver's probe error
      i2c: tegra: Prevent interrupt triggering after transfer timeout
      i2c: tegra: Use relaxed versions of readl/writel

    The "Rename I2C_PIO_MODE_MAX_LEN to I2C_PIO_MODE_PREFERRED_LEN" got an
    improved wording for the code's comment to I2C_PIO_MODE_PREFERRED_LEN.

    The "Support atomic transfers" also got some very minor tuning, like
    s/in_interrupt()/i2c_dev->is_curr_atomic_xfer/ in dvc_writel() that was
    missed in v1.

v1: The "i2c: tegra: Support atomic transfers" previously was sent out as
    a separate patch, but later I spotted that suspend/resume doesn't
    work properly. The "i2c: tegra: Fix suspending in active runtime PM
    state" patch depends on the atomic patch because there is a need to
    active IRQ-safe mode for the runtime PM by both patches.

    I fixed a missed doc-comment of the newly added "is_curr_atomic_xfer"
    structure field and added additional comment that explains why IRQ needs
    to be disabled for the atomic transfer in the "Support atomic transfers"
    patch.

    Lastly, I added a minor "i2c: tegra: Rename .." patch that helps to
    follow driver's code.

Dmitry Osipenko (6):
  i2c: tegra: Fix suspending in active runtime PM state
  i2c: tegra: Properly disable runtime PM on driver's probe error
  i2c: tegra: Prevent interrupt triggering after transfer timeout
  i2c: tegra: Support atomic transfers
  i2c: tegra: Rename I2C_PIO_MODE_MAX_LEN to I2C_PIO_MODE_PREFERRED_LEN
  i2c: tegra: Use relaxed versions of readl/writel

 drivers/i2c/busses/i2c-tegra.c | 198 ++++++++++++++++++++++-----------
 1 file changed, 134 insertions(+), 64 deletions(-)

-- 
2.24.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-12-28 22:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-28 22:16 [PATCH v2 0/6] NVIDIA Tegra I2C driver fixes and improvements Dmitry Osipenko
2019-12-28 22:16 ` [PATCH v2 1/6] i2c: tegra: Fix suspending in active runtime PM state Dmitry Osipenko
2019-12-28 22:16 ` [PATCH v2 2/6] i2c: tegra: Properly disable runtime PM on driver's probe error Dmitry Osipenko
2019-12-28 22:16 ` [PATCH v2 3/6] i2c: tegra: Prevent interrupt triggering after transfer timeout Dmitry Osipenko
2019-12-28 22:16 ` [PATCH v2 4/6] i2c: tegra: Support atomic transfers Dmitry Osipenko
2019-12-28 22:16 ` [PATCH v2 5/6] i2c: tegra: Rename I2C_PIO_MODE_MAX_LEN to I2C_PIO_MODE_PREFERRED_LEN Dmitry Osipenko
2019-12-28 22:16 ` [PATCH v2 6/6] i2c: tegra: Use relaxed versions of readl/writel Dmitry Osipenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®