linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: u.kleine-koenig@pengutronix.de (Uwe Kleine-König)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/1] Remove suspend/resume functionality, add dynamic clocking
Date: Sun, 6 Dec 2009 22:02:25 +0100	[thread overview]
Message-ID: <20091206210225.GA20887@pengutronix.de> (raw)
In-Reply-To: <20091206084731.GE2766@ucw.cz>

Hi,

On Sun, Dec 06, 2009 at 09:47:31AM +0100, Pavel Machek wrote:
> Hi!
> 
> > > Subject: Re: [PATCH 1/1] Remove suspend/resume functionality, add dynamic
> > > clocking
> > > 
> > > Hello,
> > > 
> > > can you please add something like "i2c-pnx: " to the subject?
> > > (Actually it's a great strategy *not* to put it into the Subject.  This
> > > way it attracts far more attention :-)
> > > 
> > 
> > Good point!
> > 
> > > > Remove suspend/resume functionality, I2C driver gates clock on
> > > > only when an I2C transaction is in progress
> > > What happens when the machine suspends while a transfer is in progress?
> > > (This might be a problem that already existed before.)  If this is
> > > really a problem the easiest "fix" is to let the suspend callback return
> > > -EBUSY in this case.
> > 
> > The suspend callback is now removed. It's actually not needed with this
> > change. The I2C clocks will turn on prior to a transaction and then turn
> > off at the completion.
> 
> Are you sure its unneeded? What if someone attempts to suspend the
> system when a transaction is running?
That's exactly my question.  I think the machine will suspend and the
transaction fail.  So no suspend callback isn't optimal, but maybe OK?!

Best regards
Uwe

-- 
Pengutronix e.K.                              | Uwe Kleine-K?nig            |
Industrial Linux Solutions                    | http://www.pengutronix.de/  |

  reply	other threads:[~2009-12-06 21:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-25 21:23 [PATCH 1/1] Remove suspend/resume functionality, add dynamic clocking Kevin Wells
2009-11-26  9:02 ` Uwe Kleine-König
2009-11-26 10:41   ` Russell King - ARM Linux
2009-11-30 17:02   ` Kevin Wells
2009-12-06  8:47     ` Pavel Machek
2009-12-06 21:02       ` Uwe Kleine-König [this message]
2009-12-06 21:08         ` Pavel Machek
2009-12-07 19:21           ` Kevin Wells
2009-12-15 10:36             ` Pavel Machek
2009-11-30 23:19 ` Russell King - ARM Linux
2009-12-01 18:25   ` Kevin Wells

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=20091206210225.GA20887@pengutronix.de \
    --to=u.kleine-koenig@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.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).