Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1050003imu; Fri, 21 Dec 2018 11:41:17 -0800 (PST) X-Google-Smtp-Source: ALg8bN6PVgCj6YnN2mj4Dml7ZkB9z/eDlG6v18jaUzy38hZd6TjlsIXIGpGdWjhoSuYPXu0XfdaD X-Received: by 2002:a17:902:e10a:: with SMTP id cc10mr3847904plb.165.1545421277060; Fri, 21 Dec 2018 11:41:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545421277; cv=none; d=google.com; s=arc-20160816; b=qCtQUq6xYYcezIiMAp/jKFz2B/g5na7mfII6LgCtNzujoGxpNpwEuNjTajnyHduKWj 0ZSPeNXSlrmNvtFnX5C/5WCPpwzei6/3KVqhGUvCW3L98DViDqs3fRljpM8AQDy3jNBQ sHfXalNMTy2uBQLmdYoGukzd7BrkUeBHW+FLZVl11Xv87qewmII5MlfJkyfU6SRTtF1b 0HADd7cWYtynjUi2qdkuE4FVOGNY0bLLKgotaC+EWlW3MvIV1Wo52/SMKdhrYb4jFfKp 2OucQl9SRE/8oARsGRjeLndPrlTpzzyZLGHy4cqgjs6oHeZFIocFT952FnnFjsUtBEHZ m7/A== 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=mAtp5c+TuQv/n4xrRqKvadlhKP80qAdoimAqxu30Goc=; b=a4MidHqyQYrZhNpCd5S/j5YddRb7CgR4NTMllS6i6FE5yQqxBuw5RKIQ2LBcgrHqCl huXOmONpna5ODYXMpjkWQuKJtyyHmQWvbhoLvzjdj8t4ABUdZ5tF0OMc88iYtiL929Uj 3jvRO8WloBlKozRqySOsaWJLKZ0hvu0j5nXn1WWOsSogkf0HD3gKHPkdP/oMngO8HUnN uyfP84p5sSqOH4UWX7WFZy2nHJESrfCq2ipXY313FZJQeCi3hLX4PjnQveynL+q4an9K Qoe97zWKss1h3kHIcmRyUJvY2UG9gpeHh4KZd4X7wKuhvUyQnliZoJTYfr88PjWRVeNa 6hag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SHt0u4mO; 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 l13si13427669pgi.46.2018.12.21.11.41.00; Fri, 21 Dec 2018 11:41:17 -0800 (PST) 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=SHt0u4mO; 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 S2389882AbeLUKmz (ORCPT + 99 others); Fri, 21 Dec 2018 05:42:55 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:43990 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387641AbeLUKmy (ORCPT ); Fri, 21 Dec 2018 05:42:54 -0500 Received: by mail-wr1-f67.google.com with SMTP id r10so4716833wrs.10 for ; Fri, 21 Dec 2018 02:42:53 -0800 (PST) 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=mAtp5c+TuQv/n4xrRqKvadlhKP80qAdoimAqxu30Goc=; b=SHt0u4mO+p7IX3QDIjrQ1BEpmvC/mMwy85GdSmHyxMTkHa7LzA9mjwqPXWV0Shy8+N qcMrTaa5a7IoUbSc//IS7PeBsexFomtGgD9FuQA7ox486aMRN/EvIvINKHpZoz7b4Ygn TJVURg5wEAv2OzuNHPdGBapRe2LftOpKL0bsA= 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=mAtp5c+TuQv/n4xrRqKvadlhKP80qAdoimAqxu30Goc=; b=UyemL31t9/hDQI6DsB7hzTgVcCE0uviaEOdtCdUQcKNkKYMc1XlZMjkGSl9jfKRzCH 6s30rGAx69uv6XfZt8fQr1+HakdyDnS0bXlGmdskz8A9i5ubpuO/e1HVbomtL3QdrUHT rtDcqIXQ3bqqWrQ89R0CfPJkeu17FOWkBby2yNt3J98QUFUTl5M487LBf9KS1U+SfWyp 0gGsYqKVzKbXGUq19cjtu2fzRX5WRxB7nKa0Cpl4MAqq35/tvNKsp/N+IDrg2p/OSi4H O1ABFVIhMPOrSacYlblxgZB+3fNRT4W9pxIMcn89PvepCOvrjMbKFzAQK/TkZRFehhJf ajRg== X-Gm-Message-State: AJcUukfhQD3mHVSD8lznwj3qddYgq+qGgRZfDkEBAYwGQg636qq5wb3/ ydbsjlGAwukb+WNXbIC+HtkpBw== X-Received: by 2002:adf:f984:: with SMTP id f4mr2057888wrr.234.1545388973022; Fri, 21 Dec 2018 02:42:53 -0800 (PST) Received: from dell ([95.149.164.119]) by smtp.gmail.com with ESMTPSA id q185sm13291719wmg.14.2018.12.21.02.42.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 21 Dec 2018 02:42:52 -0800 (PST) Date: Fri, 21 Dec 2018 10:42:50 +0000 From: Lee Jones To: Philippe Schenker Cc: jic23@kernel.org, marcel.ziswiler@toradex.com, stefan@agner.ch, thierry.reding@gmail.com, Max Krummenacher , Philippe Schenker , Alexandre Torgue , linux-kernel@vger.kernel.org, Maxime Coquelin , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v4 3/8] mfd: stmpe: preparations for STMPE ADC driver Message-ID: <20181221104250.GM13248@dell> References: <20181212130649.15146-1-dev@pschenker.ch> <20181212130649.15146-3-dev@pschenker.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181212130649.15146-3-dev@pschenker.ch> 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 Wed, 12 Dec 2018, Philippe Schenker wrote: > This prepares the MFD for the STMPE ADC driver. This commit introduces > devicetree settings that are used by the ADC and adds an init function. > Common ADC settings that are shared with the touchscreen driver can now > reside in the overlying MFD. > > Signed-off-by: Stefan Agner > Signed-off-by: Max Krummenacher > Signed-off-by: Philippe Schenker > --- > > I moved now all enables back to the subdevices. The disable of ADC > block is now done at remove of mfd. I know this is not particularly > right, the right way to do this would be with a refcounter. > > But I don't know how to implement this in this driver. If someone does > not agree to disable adc in remove of mfd, please give me some advice > in how to do it with refcounter. > > Changes in v4: > - New patch: split mfd changes into this precursor patch > - Export the added stmpe811_adc_commmon_init function > - Disabling adc when mfd is removed > > Changes in v3: None > Changes in v2: > - Move code to setup ADC to MFD device, as it is used by both drivers > adc and touchscreen > > drivers/mfd/Kconfig | 3 +- > drivers/mfd/stmpe.c | 68 +++++++++++++++++++++++++++++++++++++++ > include/linux/mfd/stmpe.h | 10 ++++++ > 3 files changed, 80 insertions(+), 1 deletion(-) For my own reference: Acked-for-MFD-by: Lee Jones -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog