public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Peter Rosin <peda@axentia.se>
To: Karl-Heinz Schneider <karl-heinz@schneider-inet.de>,
	linux-i2c@vger.kernel.org, linux-pm@vger.kernel.org,
	"Rafael J. Wysocki" <rjw@rjwysocki.net>,
	Len Brown <lenb@kernel.org>,
	linux-acpi@vger.kernel.org, sre@kernel.org, dbaryshkov@gmail.com,
	dwmw2@infradead.org
Cc: Phil Reid <preid@electromag.com.au>
Subject: Re: [PATCH] power: Add support for LTC1760 Dual Smart Battery System Manager
Date: Mon, 6 Jun 2016 12:16:32 +0200	[thread overview]
Message-ID: <5860b17d-8958-4292-59ab-68dfd1efff4d@axentia.se> (raw)
In-Reply-To: <1465160129.17905.24.camel@amnesix>

Hi!

On 2016-06-05 22:55, Karl-Heinz Schneider wrote:
> This driver adds support for the LTC1760 Dual Smart Battery System
> Manager.
> The LTC1760 is an I2C device listening at address 0x0a and is capable of
> communicating up to two I2C smart battery devices. Both smart battery
> devices are listening at address 0x0b, so the LTC1760 muliplexes between
> them. The driver makes use of the I2C-Mux framework to allow smart
> batteries to be bound via device tree, i.e. the sbs-battery driver.
> 
> Via sysfs interface the online state and charge type are presented where
> the charge type can also be changed between the default value "trickle"
> and
> "fast".
> 
> Signed-off-by: Karl-Heinz Schneider <karl-heinz@schneider-inet.de>
> ---
> Path generated against v4.7-rc1

This patch has two fundamental problems. First, the patch is whitespace-
damaged (your mailer probably destroyed it). Please fix that. Second, and
more serious, the patch has not even been compile-tested when applied on
top of v4.7-rc1.

The i2c-muxing code saw an update in 4.6 and this driver needs adjustment.
As a hint, I suspect that you can make this mux "mux-locked" and avoid
the dead-lock workaround in ltc1760_write_select_bat_reg().

I didn't look further than this.

Cheers,
Peter

  reply	other threads:[~2016-06-06 10:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-05 20:55 [PATCH] power: Add support for LTC1760 Dual Smart Battery System Manager Karl-Heinz Schneider
2016-06-06 10:16 ` Peter Rosin [this message]
2016-06-06 19:26   ` Karl-Heinz Schneider
2016-06-07  9:17     ` Peter Rosin

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=5860b17d-8958-4292-59ab-68dfd1efff4d@axentia.se \
    --to=peda@axentia.se \
    --cc=dbaryshkov@gmail.com \
    --cc=dwmw2@infradead.org \
    --cc=karl-heinz@schneider-inet.de \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=preid@electromag.com.au \
    --cc=rjw@rjwysocki.net \
    --cc=sre@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