From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760328Ab0I1JjT (ORCPT ); Tue, 28 Sep 2010 05:39:19 -0400 Received: from mail-qy0-f174.google.com ([209.85.216.174]:43670 "EHLO mail-qy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754014Ab0I1JjS (ORCPT ); Tue, 28 Sep 2010 05:39:18 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=fiXnASi0EWBHG63BnUmzH7as3PlgxKxOUq2FM9/5CtW62UTc8ssGKCoOXfr15aBEV3 LdtcZHDasZMBGpTEibMVOg3slRzs30KyW/ksEHQm/+z0NuqerFmJsk8IAg24PhkwBvFw HK7tThECHSAHVoMRDILUA5JWezr3sR8n6yewg= MIME-Version: 1.0 In-Reply-To: <20100928090637.GD3900@legolas.emea.dhcp.ti.com> References: <1285618704-8985-1-git-send-email-notasas@gmail.com> <20100928060554.GF2702@legolas.emea.dhcp.ti.com> <20100928084251.GC3900@legolas.emea.dhcp.ti.com> <20100928090637.GD3900@legolas.emea.dhcp.ti.com> Date: Tue, 28 Sep 2010 12:39:17 +0300 Message-ID: Subject: Re: [PATCH v4] power_supply: Add driver for TWL4030/TPS65950 BCI charger From: Grazvydas Ignotas To: balbi@ti.com Cc: Anton Vorontsov , "linux-omap@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Chikkature Rajashekar, Madhusudhan" Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 28, 2010 at 12:06 PM, Felipe Balbi wrote: > On Tue, Sep 28, 2010 at 04:02:48AM -0500, Grazvydas Ignotas wrote: >>> >>> Charger event is SENT by charger driver when it verifies it's attached >>> to a wall charger. >> >> Isn't that a job for musb/gadget? Detecting D+/D- being shorted by >> charger or something like that? I don't think BCI is able to detect >> charger. > > it's part of the charger detection right ? and according to trm, it's on > the BCI (actually BCC) role to take care of that :-) Hm you are probably talking about TWL5031, which has redesigned charger block that is named BCC. TWL4030 charger is different, called BCI and requires software charger detection from what I see in it's TRM.