Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752699AbbDXA7m (ORCPT ); Thu, 23 Apr 2015 20:59:42 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:65254 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752616AbbDXA7j (ORCPT ); Thu, 23 Apr 2015 20:59:39 -0400 X-AuditID: cbfee68d-f79266d0000049c9-65-55399579650a Message-id: <55399579.9090104@samsung.com> Date: Fri, 24 Apr 2015 09:59:37 +0900 From: Chanwoo Choi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-version: 1.0 To: Richard Fitzgerald Cc: gnurou@gmail.com, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linus.walleij@linaro.org, patches@opensource.wolfsonmicro.com, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, broonie@kernel.org, myungjoo.ham@samsung.com, ckeepax@opensource.wolfsonmicro.com, lee.jones@linaro.org Subject: Re: [alsa-devel] [PATCH 6/8] extcon: arizona: Add support for WM8998 and WM1814 References: <1429619636-25478-1-git-send-email-rf@opensource.wolfsonmicro.com> <1429619636-25478-7-git-send-email-rf@opensource.wolfsonmicro.com> <55373766.6060106@samsung.com> <20150422091941.GA4303@opensource.wolfsonmicro.com> <553775D9.9080606@samsung.com> <20150423141540.GA17323@opensource.wolfsonmicro.com> In-reply-to: <20150423141540.GA17323@opensource.wolfsonmicro.com> Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrJIsWRmVeSWpSXmKPExsWyRsSkWLdyqmWowZaj8hZXLh5ispj68Amb xb8pN9gt5h85x2px7tUjFov7X48yWkz5s5zJYvP8P4wWl3fNYbO43biCzWL52/9sFrMm/mFx 4PHY8LmJzWPnrLvsHptWdbJ53Lm2h83j5cTfbB59W1YxenzeJBfAHsVlk5Kak1mWWqR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fVsXYxcHEICixglmm/Nh3IeMEosPvGdGaSKV0BLYvajS0wgNouAqsTt56/YQWw2oPj+ FzfYQGxRgTCJldOvsEDUC0r8mHwPzBYRMJdYfPMOK8hQZoHtTBJLHuxiBEkIC0RJbDy+mhFi 2yEmie/NG8C2cQo4Sixqmwc2lVlAR2J/6zQoW15i85q3zBMYBWYhWTILSdksJGULGJlXMYqm FiQXFCel5xrqFSfmFpfmpesl5+duYgQniGdSOxhXNlgcYhTgYFTi4f1QZBEqxJpYVlyZe4hR goNZSYTXaLJlqBBvSmJlVWpRfnxRaU5q8SFGU2AYTGSWEk3OByavvJJ4Q2MTMyNLI3NDCyNj cyVx3jm6cqFCAumJJanZqakFqUUwfUwcnFINjIz3jvtEzxC5NKm+ntlPj4vRdfPdNS8dVn6R 6RV7xNDyMDx379qmeTIl/5t99as1Dm69XKd5IeDYi30an9flbg4uiH36y9GwtWZfi5BQ2AGh NZ8nrDl09ovxj2sefk5LwjsOz7t192zJSsPVcwq37ovZ9mNbU1/QidgQzhCHwrrckEPBx24v n6LEUpyRaKjFXFScCACM4RHCJgMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2348 Lines: 57 On 04/23/2015 11:15 PM, Richard Fitzgerald wrote: > On Wed, Apr 22, 2015 at 07:20:09PM +0900, Chanwoo Choi wrote: >> On 04/22/2015 06:19 PM, Richard Fitzgerald wrote: >>> On Wed, Apr 22, 2015 at 02:53:42PM +0900, Chanwoo Choi wrote: >>>> Hi Richard, >>>> >>>>> @@ -1176,6 +1182,11 @@ static int arizona_extcon_probe(struct platform_device *pdev) >>>>> break; >>>>> } >>>>> break; >>>>> + case WM8998: >>>>> + case WM1814: >>>>> + info->micd_clamp = true; >>>>> + info->hpdet_ip = 2; >>>> >>>> What is meaning of '2'? I prefer to use the definition for '2'. >>>> >>> >>> '2' is the version number of the hpdet ip block in silicon. We're already using >>> it as a raw number '0', '1' or '2' all over extcon-arizona.c so changing it here >>> would mean making other patches to the file that aren't really part of adding >>> WM8998 support, so I'd prefer not to change that as a side-effect of adding WM8998. >> >> I think that just you can define following definitions and use HPDET_IP_VER_V2 instead of '2'. >> >> #define HPDET_IP_VER_V0 0 >> #define HPDET_IP_VER_V1 1 >> #define HPDET_IP_VER_V2 2 >> > > Can we deal with that as a separate patch from this series? Like I said, > the code already uses '0' '1' and '2' for the existing codecs so making a > change to use #define means patching the code for the other codecs. That > is not part of adding WM8998 support and I don't like patches that make > unexpected extra side-effect changes that are not relevant to the actual > functionality being added by the patch. It's specially annoying when > cherry-picking or reverting those patches if they included some extra > code change. > > If we can get this series submitted I can look at making a later patch > to improve readbility, but since this really is just a version number I > think it would be enough to rename the variable to hpdet_ip_version rather > than effectively doing #define TWO 2 OK. I agree that rename the variable name (hpdet_ip_version) or add the definitions for version on later patch. Acked-by: Chanwoo Choi Thanks, Chanwoo Choi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/