public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
From: Cezary Rojewski <cezary.rojewski@intel.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
	Mika Westerberg <mika.westerberg@linux.intel.com>
Cc: "Wolfram Sang" <wsa@kernel.org>,
	"Rafael J . Wysocki" <rafael.j.wysocki@intel.com>,
	"Amadeusz Sławiński" <amadeuszx.slawinski@linux.intel.com>,
	"Raul E Rangel" <rrangel@chromium.org>,
	linux-i2c@vger.kernel.org, linux-acpi@vger.kernel.org
Subject: Re: [RFC] i2c: core: Do not enable wakeup by default
Date: Tue, 7 Feb 2023 11:38:51 +0100	[thread overview]
Message-ID: <14a75a6e-74a5-62de-93d2-e898c181de42@intel.com> (raw)
In-Reply-To: <Y+IpEwNSEtNk19D8@smile.fi.intel.com>

On 2023-02-07 11:33 AM, Andy Shevchenko wrote:
> On Tue, Feb 07, 2023 at 09:25:40AM +0200, Mika Westerberg wrote:
>> After commit b38f2d5d9615 ("i2c: acpi: Use ACPI wake capability bit to
>> set wake_irq") the I2C core has been setting I2C_CLIENT_WAKE for ACPI
>> devices if they announce to be wake capable in their device description.
>> However, on certain systems where audio codec has been connected through
>> I2C this causes system suspend to wake up immediately because power to
>> the codec is turned off which pulls the interrupt line "low" triggering
>> wake up.
>>
>> Possible reason why the interrupt is marked as wake capable is that some
>> codecs apparently support "Wake on Voice" or similar functionality.
>>
>> In any case, I don't think we should be enabling wakeup by default on
>> all I2C devices that are wake capable. According to device_init_wakeup()
>> documentation most devices should leave it disabled, with exceptions on
>> devices such as keyboards, power buttons etc. Userspace can enable
>> wakeup as needed by writing to device "power/wakeup" attribute.
> 
> I agree on the reasoning.
> 
> Should we have a Fixes tag?
> 
> Otherwise
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> 
> In any case it would be nice if the initial contributors may have a chance
> to test this and see how their setup is supposed to work.


Hello,

Thanks for the patch Mika and your input Andy. While neither I nor 
Amadeusz contributed to the initial change, we will be testing this one 
too - reverting the revert of the offending change that we had 
internally and applying this patch instead. Tests should be concluded by 
Thursday/Friday this week.


Regards,
Czarek

  reply	other threads:[~2023-02-07 10:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-07  7:25 [RFC] i2c: core: Do not enable wakeup by default Mika Westerberg
2023-02-07 10:33 ` Andy Shevchenko
2023-02-07 10:38   ` Cezary Rojewski [this message]
2023-02-07 16:33 ` Raul Rangel
2023-02-08  6:57   ` Mika Westerberg
2023-02-08  8:28     ` Amadeusz Sławiński
2023-02-08  9:29       ` Mika Westerberg
2023-02-09  9:13         ` Amadeusz Sławiński
2023-02-09  9:18           ` Mika Westerberg
2023-02-12 21:04             ` Wolfram Sang
2023-02-08 15:58       ` Raul Rangel
2023-02-09  2:30         ` Mario Limonciello
2023-02-09 14:14         ` Rafael J. Wysocki

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=14a75a6e-74a5-62de-93d2-e898c181de42@intel.com \
    --to=cezary.rojewski@intel.com \
    --cc=amadeuszx.slawinski@linux.intel.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=mika.westerberg@linux.intel.com \
    --cc=rafael.j.wysocki@intel.com \
    --cc=rrangel@chromium.org \
    --cc=wsa@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