public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sshtylyov@mvista.com>
To: Heikki Krogerus <heikki.krogerus@nokia.com>
Cc: cbouatmailru@gmail.com, dwmw2@infradead.org,
	linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org,
	ameya.palande@nokia.com, markus.lehtonen@nokia.com
Subject: Re: [PATCH 4/4] power_supply: isp1704: Detect charger after probe
Date: Fri, 05 Nov 2010 18:11:25 +0300	[thread overview]
Message-ID: <4CD41E9D.2000702@ru.mvista.com> (raw)
In-Reply-To: <1288881109-18222-5-git-send-email-heikki.krogerus@nokia.com>

Hello.

On 04-11-2010 17:31, Heikki Krogerus wrote:

> If the device is booted up with cable connected, or the
> module is loaded after plugging in the cable, the
> notification has come and gone, so not relying on it at
> probe time. Instead this checks the VBUS level manually
> after probe.

> Signed-off-by: Heikki Krogerus<heikki.krogerus@nokia.com>
> ---
>   drivers/power/isp1704_charger.c |   17 +++++++++++++++++
>   1 files changed, 17 insertions(+), 0 deletions(-)

> diff --git a/drivers/power/isp1704_charger.c b/drivers/power/isp1704_charger.c
> index 77c11f1..946e43c 100644
> --- a/drivers/power/isp1704_charger.c
> +++ b/drivers/power/isp1704_charger.c
> @@ -422,6 +422,23 @@ static int __devinit isp1704_charger_probe(struct platform_device *pdev)
>
>   	dev_info(isp->dev, "registered with product id %s\n", isp->model);
>
> +	/*
> +	 * Taking over the D+ pullup.
> +	 *
> +	 * FIXME: The device will be disconnected if the it was already
                                                      ^^^
    "the" is not needed here.

WBR, Sergei

  reply	other threads:[~2010-11-05 15:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-04 14:31 [PATCH 0/3] isp1704 changes Heikki Krogerus
2010-11-04 14:31 ` [PATCH 1/4] power_supply: isp1704: correct length for storing model Heikki Krogerus
2010-11-04 14:31 ` [PATCH 2/4] power_supply: isp1704: Detect HUB/Host chargers Heikki Krogerus
2010-11-04 14:31 ` [PATCH 3/4] power_supply: isp1704: Set isp->dev before anything needs it Heikki Krogerus
2010-11-04 14:31 ` [PATCH 4/4] power_supply: isp1704: Detect charger after probe Heikki Krogerus
2010-11-05 15:11   ` Sergei Shtylyov [this message]
2010-11-08 10:22     ` Heikki Krogerus

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=4CD41E9D.2000702@ru.mvista.com \
    --to=sshtylyov@mvista.com \
    --cc=ameya.palande@nokia.com \
    --cc=cbouatmailru@gmail.com \
    --cc=dwmw2@infradead.org \
    --cc=heikki.krogerus@nokia.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=markus.lehtonen@nokia.com \
    /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