mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: Chanwoo Choi <cw00.choi@samsung.com>,
	MyungJoo Ham <myungjoo.ham@samsung.com>
Cc: Takashi Iwai <tiwai@suse.de>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3] extcon: intel-cht-wc: Add Intel Cherry Trail Whiskey Cove PMIC extcon driver
Date: Fri, 24 Mar 2017 08:59:46 +0100	[thread overview]
Message-ID: <33739dc4-c73c-41b5-478a-6a16432c95eb@redhat.com> (raw)
In-Reply-To: <58D4A2AB.6030904@samsung.com>

Hi,

On 24-03-17 05:38, Chanwoo Choi wrote:
> Hi,
>
> On 2017년 03월 24일 01:01, Hans de Goede wrote:
>> Add a driver for charger detection / control on the Intel Cherrytrail
>> Whiskey Cove PMIC.
>>
>> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
>> ---
>> Changes in v2:
>> -Improve wait for charger detection loop, use jiffies to get an accurate timeout
>> -Sort registers by address, remove duplicate definition
>> -Return IRQ_NONE on interrupt handling errors
>> -Various small style cleanups
>> -Fix reporting no charger cable being present when detecting the same
>>  charger type 2 times in a row
>> -Reset to autonomous / hw-mode on probe-error and on remove
>> Changes in v3:
>> -Add intel prefix to Kconfig symbol and filename
>> -Clarified "Unhandled charger type" warning msg
>> -Dropped usb_id sysfs attribute
>> ---
>>  drivers/extcon/Kconfig               |   7 +
>>  drivers/extcon/Makefile              |   1 +
>>  drivers/extcon/extcon-intel-cht-wc.c | 352 +++++++++++++++++++++++++++++++++++
>>  3 files changed, 360 insertions(+)
>>  create mode 100644 drivers/extcon/extcon-intel-cht-wc.c
>>
>
> Applied it on extcon-next branch.

Thank you.

Regards,

Hans


>
> [snip]
>
>> +	usbsrc = (usbsrc & CHT_WC_USBSRC_TYPE_MASK) >> CHT_WC_USBSRC_TYPE_SHIFT;
>> +	switch (usbsrc) {
>> +	default:
>> +		dev_warn(ext->dev, "Unhandled charger type %d, defaulting to SDP\n",
>
> Nit:
> This line is over length 80. So, I changed it as following
>
> 		dev_warn(ext->dev,
> 			"Unhandled charger type %d, defaulting to SDP\n",
>
>> +			 ret);
>> +		/* Fall through, treat as SDP */
>> +	case CHT_WC_USBSRC_TYPE_SDP:
>> +	case CHT_WC_USBSRC_TYPE_FLOAT_DP_DN:
>> +	case CHT_WC_USBSRC_TYPE_OTHER:
>> +		return EXTCON_CHG_USB_SDP;
>> +	case CHT_WC_USBSRC_TYPE_CDP:
>> +		return EXTCON_CHG_USB_CDP;
>> +	case CHT_WC_USBSRC_TYPE_DCP:
>> +	case CHT_WC_USBSRC_TYPE_DCP_EXTPHY:
>> +	case CHT_WC_USBSRC_TYPE_MHL: /* MHL2+ delivers upto 2A, treat as DCP */
>> +		return EXTCON_CHG_USB_DCP;
>> +	case CHT_WC_USBSRC_TYPE_ACA:
>> +		return EXTCON_CHG_USB_ACA;
>> +	}
>> +}
>

      reply	other threads:[~2017-03-24  8:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20170323160156epcas5p434cdd4234cd3646683de8c7fda9913a5@epcas5p4.samsung.com>
2017-03-23 16:01 ` Hans de Goede
2017-03-24  4:38   ` Chanwoo Choi
2017-03-24  7:59     ` Hans de Goede [this message]

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=33739dc4-c73c-41b5-478a-6a16432c95eb@redhat.com \
    --to=hdegoede@redhat.com \
    --cc=cw00.choi@samsung.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=myungjoo.ham@samsung.com \
    --cc=tiwai@suse.de \
    /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

all inboxes | Powered by JetHome®