linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mark Brown <broonie-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
To: Sylwester Nawrocki
	<sylvester.nawrocki-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>,
	Wolfram Sang <w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>,
	Ben Dooks <ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org>,
	linux-samsung-soc
	<linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH 2/2] i2c-s3c2410: Add stub runtime power management
Date: Sat, 21 Jan 2012 21:23:24 +0000	[thread overview]
Message-ID: <20120121212323.GA8331@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <4F1B2235.4000009-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

On Sat, Jan 21, 2012 at 09:38:13PM +0100, Sylwester Nawrocki wrote:
> On 01/21/2012 07:31 PM, Mark Brown wrote:

> > Yeah, me too but it seemed idiomatic.  Frankly I don't really understand
> > why there's a synchronous version of put.

> The synchronous put callbacks might be needed for instance in a bus core code
> to make sure the child device drivers aren't accessing resources while
> bus adapter (USB/PCI) is being unplugged for example. In cases like platform 

In those cases it feels like we ought to either do what we do with
suspend and make sure the device is resumed on the exit path (like we do
when we're entering system suspend) or just disable the PM operations,
especially given that we're reference counting.

> I2C bus controller it might be more optimal to use asynchronous put versions.
> As there are usually performed fast multiple adjacent transfers and multiple
> put runtime get/put might be merged to one get/put due to scheduling latency.
> However I've never really measured that. Implementing autosuspend might give
> some insights about that.

As I was just saying in another thread I do think it's probably worth
considering adding some small amount of autosuspend by default in order
to try to deal with that sort of pattern.  Of course for I2C devices I
rather suspect the bus is sufficiently slow that any performance work we
do in the host is immaterial.  

  parent reply	other threads:[~2012-01-21 21:23 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-21 13:28 [PATCH 1/2] i2c-s3c2410: Convert to devm_kzalloc() Mark Brown
2012-01-21 15:59 ` Sylwester Nawrocki
2012-01-29  5:14 ` Barry Song
     [not found] ` <1327152527-11364-1-git-send-email-broonie-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
2012-01-21 13:28   ` [PATCH 2/2] i2c-s3c2410: Add stub runtime power management Mark Brown
2012-01-21 15:52     ` Sylwester Nawrocki
2012-01-21 18:31       ` Mark Brown
2012-01-21 20:38         ` Sylwester Nawrocki
     [not found]           ` <4F1B2235.4000009-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-01-21 21:23             ` Mark Brown [this message]
2012-01-21 21:23             ` Heiko Stübner
2012-01-21 21:33               ` Sylwester Nawrocki
     [not found]                 ` <4F1B2F38.9050708-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-01-21 21:57                   ` Mark Brown
2012-01-21 22:49                     ` Sylwester Nawrocki
2012-01-21 23:10                       ` Mark Brown
     [not found]     ` <1327152527-11364-2-git-send-email-broonie-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
2012-02-13 23:39       ` Ben Dooks
2012-01-21 16:10   ` [PATCH 1/2] i2c-s3c2410: Convert to devm_kzalloc() Sylwester Nawrocki
2012-01-21 17:57     ` Mark Brown
2012-01-21 18:27       ` Sylwester Nawrocki
     [not found]         ` <4F1B0394.8050003-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-01-21 18:36           ` Mark Brown
     [not found]     ` <4F1AE36E.3070403-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-02-13 23:38       ` Ben Dooks
2012-02-14 13:03   ` Shubhrajyoti Datta
2012-02-14 13:52     ` Sylwester Nawrocki
  -- strict thread matches above, loose matches on Subject: below --
2011-12-05 14:06 Mark Brown
     [not found] ` <1323093966-9045-1-git-send-email-broonie-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
2011-12-05 14:06   ` [PATCH 2/2] i2c-s3c2410: Add stub runtime power management Mark Brown
2011-12-13 14:53     ` Heiko Stübner
2011-12-13 15:06       ` Jean Delvare

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=20120121212323.GA8331@opensource.wolfsonmicro.com \
    --to=broonie-yzvpicuk2aatku/dhu1wvuem+bqzidxxqq4iyu8u01e@public.gmane.org \
    --cc=ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org \
    --cc=khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org \
    --cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=sylvester.nawrocki-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.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).