From: Wolfram Sang <wsa+renesas@sang-engineering.com>
To: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: linux-i2c@vger.kernel.org, linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH] i2c: sh_mobile: Mark adapter suspended during suspend
Date: Wed, 9 Dec 2020 21:30:11 +0100 [thread overview]
Message-ID: <20201209203011.GE3499@kunai> (raw)
In-Reply-To: <20201013141201.28338-1-geert+renesas@glider.be>
[-- Attachment #1: Type: text/plain, Size: 646 bytes --]
On Tue, Oct 13, 2020 at 04:12:01PM +0200, Geert Uytterhoeven wrote:
> When a driver tries to send an I2C message while the adapter is
> suspended, this typically fails with:
>
> i2c-sh_mobile e60b0000.i2c: Transfer request timed out
>
> Avoid accessing the adapter while it is suspended by marking it
> suspended during suspend. This allows the I2C core to catch this, and
> print a warning:
>
> WARNING: CPU: 1 PID: 13 at drivers/i2c/i2c-core.h:54
> __i2c_transfer+0x4a4/0x4e4
> i2c i2c-6: Transfer while suspended
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Applied to for-next, thanks!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2020-12-09 20:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-13 14:12 [PATCH] i2c: sh_mobile: Mark adapter suspended during suspend Geert Uytterhoeven
2020-12-09 20:30 ` Wolfram Sang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201209203011.GE3499@kunai \
--to=wsa+renesas@sang-engineering.com \
--cc=geert+renesas@glider.be \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).