Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp913591ybp; Fri, 4 Oct 2019 06:59:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqynV5gT9SHzorZqld6ekajKM55PmzPhB7vDmYEabt52+JVZAwoiNeX+pzY+aBcEkGsME1L3 X-Received: by 2002:a17:906:b801:: with SMTP id dv1mr5007784ejb.329.1570197566997; Fri, 04 Oct 2019 06:59:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570197566; cv=none; d=google.com; s=arc-20160816; b=F7xnD65DQ7xvcyeBVaqSgXPsraOsfQnftYhxs3Yq7cEDkamgGmlqjELyDvTSgUq7iX PvjGTydi9nQP8ORyCS1YoJw9ys1xQwLabHs0ixuDGkxr+xXNf6rY2msmUn/Q/oRWQOoI cmxFy/A+Yqg9NQob27kllk9GkUhP3uI4+WuqHyT86PUFhqOhoKg+pUXfnEV19BCn6MBj wy+OrhsUhTzFJ05dATaNgDqqQKgHzMBxGiLWAVIgCvjsKTZSqn0cuULLnW4N5yYuOfCg wg6l8I6ViK4FhJYCnW4agUivPQok1h4f0J4cWhIB7r21EPYK4QVgv/VK6EdoyfExYvzB o7SQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Dw8CR7XEfOJ9npS37MQu+Odwfp7WIPeVgi6WO13Fiz8=; b=Is2QgThgFBgMRQlU0oub1oE+/8UbtGXObJDB8p6GepPWvbEVQrvxm7f0AAwP4JSO35 iL5leaXshEXhqnSChdSzEry0Rashp/KHMgj98gh6zwY9LWZcA1kO136Fkaq5mqOoDKMY wFnIcWc5oG1hyLSxKJV7ZymrL3vqWXYrqK//cmnSsGI00pXsEQcNW+Mhj+N2XcDP98Dc 6/pPlvABtFimRM0ZlnEWSyyjwdqcLrQq1v2JtnM/dQ61uxwwCyEIjl4df4jKtGImCZDB zqdHvuW+OXjVTguQZiquDTx2vRjoxdzCFfxnbMAfrwtssPYoSoZirR+GkwC8i9GsIEw4 guew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NZ63z1xb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id op27si2922162ejb.253.2019.10.04.06.59.02; Fri, 04 Oct 2019 06:59:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NZ63z1xb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388757AbfJDN6o (ORCPT + 99 others); Fri, 4 Oct 2019 09:58:44 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:34440 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388667AbfJDN6o (ORCPT ); Fri, 4 Oct 2019 09:58:44 -0400 Received: by mail-wm1-f67.google.com with SMTP id y135so9695117wmc.1 for ; Fri, 04 Oct 2019 06:58:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=Dw8CR7XEfOJ9npS37MQu+Odwfp7WIPeVgi6WO13Fiz8=; b=NZ63z1xbbA8zyZllIg94iS2Gl8dmSZBFbzDDievubTzQdWyhcPRpEpeqP+TRNnITBz ESTirw/C1bsYg1SuDnnPBJoMOcwl5y/M+eR0bUavEA/ImrQFbYKnadf5eH05cZTKhFmw r4YgwYc2d9D1+Rb0vStCa7no5QfdjzMq63m4qJ/dicCu11SXBtao9lggWXcmhn+YhxOv k0hZLFhUuDXnuMe9WJZjeS0EyYkhPiVgW77yoCELJM1OW1uW2e1NnL/ZBiloAx04WdjN uebT2jmwJsNhAxnoexJkFkU0n1UiwwgZ0qoOJjfZUlIwen+NptFgGovzzTXuX0saHPQ1 P3UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=Dw8CR7XEfOJ9npS37MQu+Odwfp7WIPeVgi6WO13Fiz8=; b=D0IG0R2vm7gU9DlrbG8m46x71cZkQNT4DB4AXQt/jSSYp+P9quUFMDRox9PByBTNva jM1oy8IrtN69IZA+vSPxdcoVj8XjDmIEEWycsjN27a8buTL0YnN7k0lppwIgPPVWYkAC cw4F25ijiYYXZ5yA5uwsHeT0Ly7xykOKDA+94K5fCRhSP8lgQu/FR/SijDbxtUwtgvxa hKUKOFl0Jh4sS+Sw0f/XjNpz7gCcHOZFtxKtc2zc7Q3RLe64zQv/XLTt61IlON1Bqosq pU8PxLhgVZP8+Gp4IPCGTKg/k1A12spu0iieM3IzPG2eASoc7ozPfCD6ZSej+K6uw5ae R0sw== X-Gm-Message-State: APjAAAUBRukkUcPsaDbHOPwoTs1P/4UMeUlAyVx7fPf9DVanCI878B1Z Z+NMm8XdevJCB/RjZv4FWx+J3w== X-Received: by 2002:a7b:c776:: with SMTP id x22mr10088165wmk.123.1570197521770; Fri, 04 Oct 2019 06:58:41 -0700 (PDT) Received: from dell ([2.27.167.122]) by smtp.gmail.com with ESMTPSA id m18sm12287804wrg.97.2019.10.04.06.58.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 04 Oct 2019 06:58:40 -0700 (PDT) Date: Fri, 4 Oct 2019 14:58:39 +0100 From: Lee Jones To: Lukasz Majewski Cc: linux-kernel@vger.kernel.org, Dmitry Torokhov , Sascha Hauer , Enrico Weigelt , Kate Stewart , linux-input@vger.kernel.org, Greg Kroah-Hartman Subject: Re: [PATCH v5 1/3] mfd: mc13xxx: Add mc34708 adc support Message-ID: <20191004135839.GG18429@dell> References: <20190909214440.30674-1-lukma@denx.de> <20190909214440.30674-2-lukma@denx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190909214440.30674-2-lukma@denx.de> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 09 Sep 2019, Lukasz Majewski wrote: > From: Sascha Hauer > > The mc34708 has an improved adc. The older variants will always convert > a fixed order of channels. The mc34708 can do up to eight conversions > in arbitrary channel order. Currently this extended feature is not > supported. We only support touchscreen conversions now, which will > be sampled in a data format compatible to the older chips in order > to keep the API between the mfd and the touchscreen driver. Please take this opportunity to split all the ADC stuff out into an ADC specific driver. > Signed-off-by: Sascha Hauer > Signed-off-by: Lukasz Majewski > > --- > Changes for v5: > - Remove adc_do_conversion() callbacks from struct mc13xxx_variant > - Remove duplicated MC13XXX_ADC_WORKING #define > > Changes for v4: > - None > > Changes for v3: > - None > > Changes for v2: > - Change the return code patch when the mc13xxx ADC is performing conversion > - Introduce new include/linux/mfd/mc34708.h header file for mc34708 specific > defines > > Changes from the original patches: > - ADC conversion functions prototypes added to fix build error > - Adjustments to make checkpatch clean (-ENOSYS, line over 80 char) > > This patch applies on top of Linux 5.3-rc8 > SHA1: f74c2bb98776e2de508f4d607cd519873065118e > --- > drivers/mfd/mc13xxx-core.c | 98 ++++++++++++++++++++++++++++++++++++- > include/linux/mfd/mc34708.h | 37 ++++++++++++++ > 2 files changed, 133 insertions(+), 2 deletions(-) > create mode 100644 include/linux/mfd/mc34708.h -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog