Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2167494imj; Mon, 18 Feb 2019 00:57:25 -0800 (PST) X-Google-Smtp-Source: AHgI3IaLIf/sYKOkK3973azx/GFF3EI6bYeMizhlXlStR+OfK0Ehf3NSKVhfoWFwNQKhnd/NKfCQ X-Received: by 2002:a17:902:aa8d:: with SMTP id d13mr24258913plr.293.1550480245789; Mon, 18 Feb 2019 00:57:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550480245; cv=none; d=google.com; s=arc-20160816; b=CO/kOr3/NXmELMJdjmupbFHsCWrp23lj+GdNabTVVSjGlYmquIpOVGSC9FB5VpSQSn rLdxT77jziKZTvX8biqKucIr/6rGJfHCPJMMvavj+i+01ltV7U+naI3EbcV2AtcKugTy K0akXCd14MPPyZd/Qw3Ic0OyfT7BzWzhaJ/HVAteJSfdN6Pkcdk6Cd6ZOXhUdHDLo8v1 zPfXnO3jEhd26xeMWzA491Au9vj2on51OC4lL1EaqF4OQVf5ERo6eenyq7xkOBpIzOsV maynFVfomjpDrCt6wj8xGfcZv2HH18j97myoSiGeN6ok+4i87ByMKMl0WycvyisxyRKB 2gMA== 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=krREZ5mLXdYD0Y0EMtLOYOkg5Rnz8WcDkNptDmHutrY=; b=nAqXHxMXv18C9jCQc4BqxIrmftTqB5HwTKvGhgnbTnDS3KFNTUB2YpcaQclBJplwWv PRZhHtZmknHp8vpMYYmpN4PY+5fDIaVgHY9nkbnRTnJAG/PBsCi4MolmX/wMH262mNSI pOeyLPOUwZBtA44gWoAWRK3QwXwnIMXD/JGAgOOV7v2B6p1JENVbDPd2UUqYyC56TiBj RQj+422/2FK8VtWWTZitnV8cB3Y14WpxNKiaFWAxe12snDmrIvJoidD2AxPN5hZHasxB Ah5bzwFH1Ql0ruenKkd5Gb25ZGlLUdrBg3kfske7Jlpah3KzlQCH3Np7MSUDsu1weSmX EX1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HCZRcV5b; 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 v22si12908774plo.129.2019.02.18.00.57.10; Mon, 18 Feb 2019 00:57:25 -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=HCZRcV5b; 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 S1729309AbfBRI4u (ORCPT + 99 others); Mon, 18 Feb 2019 03:56:50 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:51977 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729080AbfBRI4u (ORCPT ); Mon, 18 Feb 2019 03:56:50 -0500 Received: by mail-wm1-f66.google.com with SMTP id n19so4333167wmi.1 for ; Mon, 18 Feb 2019 00:56:49 -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=krREZ5mLXdYD0Y0EMtLOYOkg5Rnz8WcDkNptDmHutrY=; b=HCZRcV5b5015g0BzDX9qMgMjtZW5IHboRz6RU4CDJ574f4NMFxcvYJoq3mhTsHbJnz gNEBRh7hSJp+GwXmOqxvYGI8oXoa51UDcHiqwUHfoczgZHr2V4CtGsUIKT2pe/VDBgdz AhSvCOeNnskJXWrgN6KYDWas7VmaT4YAVsKq0mpuKvCxY4i48kXBS4uANeW2mb8EzZaK IQyBQ+ELO/rRkK/AJQIOuF6MwYZTSojmHNgoSdpTpF26mkIXPzBSlfsrDxM47d4LfUMF EYFFng4leG3bZMBCnQ0SGD9NxxJLMiHjnUUzyW80kbd8zS1Di6+mtftNAXrlgDac3tzv jv2Q== 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=krREZ5mLXdYD0Y0EMtLOYOkg5Rnz8WcDkNptDmHutrY=; b=Brj3VpnKT4FaUSY9MAEQSU52myj31FVPRl8aW0lyx72zFQs7+uy53nBrMB1OeC53w8 NWJdlYaBRpqKu/Cj3fXft2PuJpyVxAC63kEz0l49wlOgO1MkUXaKgb5/jZJPitTdjIgk M6rgclWFo0lng/VYFuZ3VtAG6zdkY0sTcZq954o5XdDNSMyKqyNUyEmI6kzp3sMYYaWa ybXz4ZIA+x1miCZ0mBP8u44LyyrYx2MtgFqZ9tVdHXLFR48QZvGHYyD4pqri+kthUqN6 SD/8zKV3swypqjMWNhPw4p+C2QIsTuOyzr57tQg1//vrErpklDO163lSo9RfhV9mozoU vZGQ== X-Gm-Message-State: AHQUAubu6uuexLng978CB0C/3F//HSYQp/WuCt7eIdBgmKwO8xliPvjg nXXRIbcA7gKmqXBOuIU9WbOP2A== X-Received: by 2002:a05:600c:2144:: with SMTP id v4mr4698647wml.4.1550480207990; Mon, 18 Feb 2019 00:56:47 -0800 (PST) Received: from dell ([2.27.35.171]) by smtp.gmail.com with ESMTPSA id l129sm7908114wml.42.2019.02.18.00.56.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Feb 2019 00:56:47 -0800 (PST) Date: Mon, 18 Feb 2019 08:56:45 +0000 From: Lee Jones To: Moritz Fischer Cc: Virendra Kakade , Devicetree List , Linux Kernel Mailing List , Linux PM , Rob Herring , Mark Rutland , Sebastian Reichel Subject: Re: [RFC 2/6] mfd: Support for Ettus Research E31x devices PMU Message-ID: <20190218085645.GA4118@dell> References: <20190212010143.3729-1-virendra.kakade@ni.com> <20190212010143.3729-3-virendra.kakade@ni.com> <20190214093445.GF13737@dell> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 Sun, 17 Feb 2019, Moritz Fischer wrote: > On Thu, Feb 14, 2019 at 1:34 AM Lee Jones wrote: > > On Mon, 11 Feb 2019, Virendra Kakade wrote: > > > > > Signed-off-by: Virendra Kakade > > > --- > > > drivers/mfd/Kconfig | 7 +++ > > > drivers/mfd/Makefile | 2 +- > > > drivers/mfd/e31x-pmu.c | 89 ++++++++++++++++++++++++++++++++++++ > > > include/linux/mfd/e31x-pmu.h | 20 ++++++++ > > > 4 files changed, 117 insertions(+), 1 deletion(-) > > > create mode 100644 drivers/mfd/e31x-pmu.c > > > create mode 100644 include/linux/mfd/e31x-pmu.h [...] Try not to quote too many unnecessary lines when replying please. > > So the whole purpose of this driver is to do a version check. > > > > Seems like over-kill! > > > > Probably better to do the version check in an inline function stored > > in a header file, then call it from each of the children's .probe() > > function. > > A bit of context here, this is based on an in-house driver that we had that does > a bunch of other stuff (e.g. it controls a flag on whether the device auto-boots > on power being plugged in etc.). These functions will use the regmap. > > I had advised Virendra to submit a base version and follow up with patches > that would add these functions one by one as he figures out how to expose them > in a proper way to the kernel. Probably best to wait until you have something a little more featureful before attempting to upstream then. I couldn't tell you how many times I've had contributors tell me that they plan to follow up with additional patches and (for their own perfectly decent reasons I'm sure) fail to do so. As it stands, this driver over-kill for what you're trying to achieve and therefore isn't overly suitable for upstreaming at the moment. -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog