Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3678287yba; Tue, 7 May 2019 05:26:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxbltKLy5haB8JzgqyzZ/jcL3uPDPQPshkOjdl6z898WMP4lOErkrhfZ7fUI/RdHGji/dPU X-Received: by 2002:a63:5516:: with SMTP id j22mr37084340pgb.370.1557232007691; Tue, 07 May 2019 05:26:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557232007; cv=none; d=google.com; s=arc-20160816; b=e6JAMiiHvIVdooDiIlLR2BVZ/eV58sq7uLvrSXPfH9PQUg9zhvgE+Xq+N6ekZ5vB/l 18p52mPQ4TT+zTbccn79cOf+X2PJHpUyxSzL2c12v8fBBwuOzVr7YgBUeYhE3LJwZUj5 KD4BncqzBp2Zd2DbmhywrvsdFTFPeuWl0v26NOUda8ns8zU3rUHuchEOiuRlXkRd5ELo 4YExSfseYP0Pr+26Fx8BGUntm5fRAVo/1CjYiOZBQO4QwJvINqdSalFhVEF22mVxcM7h Ly19zKz8UvVe60Jbcz9GuHEyZvFZv8Du70XRz1fckdRBT1Llz70SqljdjUpHVXuOGQ00 iDBw== 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=c8UCZCqORpSK+CE2DbTRM/OMRX9RiKxjhdEM+EyKPvU=; b=FM+FD98wrll7EU1DAu45QSn989lEEBssLckfPCOAXsho44AZ57hBkBIiisFO+q8GPe g5SbU4+5JYE/QsLfjt4qg6E3+rVkrl8QjxpDP6xyoMYx995HQKOXJTecslFjz+CgTpJP Njc5XxcAwAsPIkHkon6UPFZRy/btZX917EEGlJvToYrBQmkLyzAIES4wdCBqFKKyNeL0 7ktddtGmObEOb4OMJ7LybglkZ7wTCx+HLbzsNY4k4utsryq4h/yvPtU2zxcVqF+PxTSO NEowsqybhY6xg7BpSVuN4SMV4F5VPeN+ESZ8kZJfETi85pkAn71SPhtS69nfzU796oi8 fNwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W4Emdehq; 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 m134si19383537pga.588.2019.05.07.05.26.28; Tue, 07 May 2019 05:26:47 -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=W4Emdehq; 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 S1726554AbfEGMYU (ORCPT + 99 others); Tue, 7 May 2019 08:24:20 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:39328 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726404AbfEGMYU (ORCPT ); Tue, 7 May 2019 08:24:20 -0400 Received: by mail-wr1-f65.google.com with SMTP id v10so9786328wrt.6 for ; Tue, 07 May 2019 05:24:18 -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=c8UCZCqORpSK+CE2DbTRM/OMRX9RiKxjhdEM+EyKPvU=; b=W4Emdehqjy99UlzAo85JrlIBjtXEJLUKNBvLXnD3R+3t6Ms2yQAaNiOVYhjLM6t+H4 xBjZNwZe7HdTDINfeLAEFp3WZ02ENgbKNuhA0u75ZjfNHAVoKr4lT6FknyB72sA8Ltc3 YMC+VjPkzQ03UO4jbHoTPmg64LnNxNOfoZAWtCMiAOSeRk7ZZ8SOkhA01Qd8Rge2axtU rpze1d08YWLSx80h7+Ac8qR29X+8vMWpLKgDTySdNN3saYCOLThKeGWRpG/VEQw1l2+0 x+mhWg2LDCMfEhSKkDLWX6Y5jbh/+ausa9i0nnG4EdVqYXQFl4iNONj13IDCdszihWrK 2e7w== 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=c8UCZCqORpSK+CE2DbTRM/OMRX9RiKxjhdEM+EyKPvU=; b=btl9AOf8PGAuy5rsDXZJkYLGCeHz1lY+coWkuRLeUX+fO/wzqVUidtgE2e5MpxCrEo ReMj5XhwnvkY3w7GWwUEAX9+r2Jsd1rnu0HqWAqK2LEj4BJVOEpqNin8rih7VBKT5GbW 0neq9gqUflMGf6LxRzLo6FBvkyMa1Tdjcuvwq8ShHoiaiZoPylnotftS3SyXDtM5gR/b uEioxDkvqjkd7dc5mbncQDlJ4HbjwzTlHvWlcID11lmdvS9WWIw5PS5riV6kEo+WsHP4 oKvSPE/HsBJDiHa4doKhVzD6P2lwRudsxgKXdo6YugDhMfWjoz+l7Ip/Iu8y6KaWxMy/ eWPw== X-Gm-Message-State: APjAAAUbykJ9qkIc+ZxbJ7d3veqDb+v4JWRo6P0zrwC+ESNzNqalkglR FWCDr3lnLylcnlQ7k+E105KDHg== X-Received: by 2002:a5d:4d46:: with SMTP id a6mr3541380wru.142.1557231858133; Tue, 07 May 2019 05:24:18 -0700 (PDT) Received: from dell ([2.27.167.43]) by smtp.gmail.com with ESMTPSA id b12sm24376971wrf.21.2019.05.07.05.24.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 May 2019 05:24:17 -0700 (PDT) Date: Tue, 7 May 2019 13:24:15 +0100 From: Lee Jones To: Ronald =?iso-8859-1?Q?Tschal=E4r?= Cc: Jiri Kosina , Benjamin Tissoires , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , linux-input@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] mfd: apple-ibridge: Add Apple iBridge MFD driver. Message-ID: <20190507122415.GC29524@dell> References: <20190422031251.11968-1-ronald@innovation.ch> <20190422031251.11968-2-ronald@innovation.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190422031251.11968-2-ronald@innovation.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 Sun, 21 Apr 2019, Ronald Tschalär wrote: > The iBridge device provides access to several devices, including: > - the Touch Bar > - the iSight webcam > - the light sensor > - the fingerprint sensor > > This driver provides the core support for managing the iBridge device > and the access to the underlying devices. In particular, since the > functionality for the touch bar and light sensor is exposed via USB HID > interfaces, and the same HID device is used for multiple functions, this > driver provides a multiplexing layer that allows multiple HID drivers to > be registered for a given HID device. This allows the touch bar and ALS > driver to be separated out into their own modules. > > Signed-off-by: Ronald Tschalär > --- > drivers/mfd/Kconfig | 15 + > drivers/mfd/Makefile | 1 + > drivers/mfd/apple-ibridge.c | 883 ++++++++++++++++++++++++++++++ I haven't taken a thorough look through, but I can tell you that the vast majority of what you're trying to do here does not belong in MFD. MFD drivers are used to register child devices. Almost all functionality or 'real work' should be contained in the drivers the MFD registers, not in the MFD parent itself. You will need to move all 'real work' out into the subordinate device drivers for acceptance. > include/linux/mfd/apple-ibridge.h | 39 ++ > 4 files changed, 938 insertions(+) > create mode 100644 drivers/mfd/apple-ibridge.c > create mode 100644 include/linux/mfd/apple-ibridge.h -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog