Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp703028pxb; Sat, 6 Mar 2021 14:09:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJzjG1ioMElKupG9YaYtS2i2DSk/OF6ppdkjCOTbN+u+AdhzRb2GNJipGcztLZXCDr1xYMxV X-Received: by 2002:a50:fe89:: with SMTP id d9mr15603351edt.57.1615068557681; Sat, 06 Mar 2021 14:09:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615068557; cv=none; d=google.com; s=arc-20160816; b=cx+B1jQzDVzux/Ze6uwsCJ3lfv0mnvNrvlv2vM/uvieH8GMsp3NbFP0icKXpVeKWAj h7VoxlmDDR5UMuz5tEVnNJ58s3kubFftWawCJXErIapFej9j8EtkkbzJx6Hr9GsZ94kZ Me1QoPlFgQkG7GylZcR7QsfdIVLhfDpHeWmt4MynJOACwR4lnVeB1+eSg1QN9ovHOOos 1G5VjzdMSsXJz0TkRV1Zw+XSgpzfhRSkXJ75uG/w90O8pXxOeSmFcEoFApQ+BvIK4BIj 9OIKK7fL7PpWlhcLWo7+3qfzsSTVhSeJ4tR9MI543dt2ZlYes1FWADfkrPkRujR9bxSd V0/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=7KlDfjGp7qrFtRej7uFJqB5juRL+J4hofoA6AzEBi7Q=; b=zkYgPt+s8ewcNzy8wnzkDaxUiUNo6kr7DnZCVYhu/ARsxR6PPaHONXOMqKB9WFKb2X tDip4VFHA2r32Xy/sFVrFx3F6pSFBx5mTQhODfhvE2VBcpZSWmf5VHw6WlXcatjkjEUl zlCh9yrOD/iScumvyM3oW3A3hX4NmhQ5QoMxkZCfaxZeOWgqr4IE+eh3wEMHtSFLvAWf PPKP2DBxWDCSng8dEQL37HzWXXSPWBoszinWmnD9ibQxsTR9eP6fJnqJSgxlIIxtsCDD N/Ck61XBKsX7jWCy3uGyDc0wJS7FFk+BrQ27zQL1K7jZLXWk4kki448Kx/DXOkCIQyw+ gd+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=PtsDOYiV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e18si291972edj.485.2021.03.06.14.08.43; Sat, 06 Mar 2021 14:09:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=PtsDOYiV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229781AbhCFWHD (ORCPT + 99 others); Sat, 6 Mar 2021 17:07:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229642AbhCFWG1 (ORCPT ); Sat, 6 Mar 2021 17:06:27 -0500 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a01:238:4321:8900:456f:ecd6:43e:202c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5657CC06174A for ; Sat, 6 Mar 2021 14:06:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20180802; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=7KlDfjGp7qrFtRej7uFJqB5juRL+J4hofoA6AzEBi7Q=; b=PtsDOYiVkLb+QY3R5bsgbUOvIT QQyQuBkj4fU1aGorkPdjUeswlh8YZff3rvDd3ey6oi7P9ahJ9n8OwSBnqJD7yn7FT1XU6W02QlLeI PUEOIje2R+6U0tLLFZh933Cdulh/Fa1LqzCmPWVM+WDVUI4/m6R+jcelFwlDCVQUbJt8=; Received: from p200300ccff3790001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff37:9000:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1lIf3z-0005tT-Ql; Sat, 06 Mar 2021 23:06:19 +0100 Date: Sat, 6 Mar 2021 23:06:19 +0100 From: Andreas Kemnade To: Jonathan =?UTF-8?B?TmV1c2Now6RmZXI=?= Cc: lee.jones@linaro.org, linux-kernel@vger.kernel.org, Mark Brown Subject: Re: [PATCH -next] mfd: ntxec: Support for EC in Tolino Shine 2 HD Message-ID: <20210306230619.15ae787f@aktux> In-Reply-To: References: <20210306181314.12673-1-andreas@kemnade.info> <20210306204219.6a7eae56@aktux> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.0 (-) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 6 Mar 2021 21:19:38 +0100 Jonathan Neusch=C3=A4fer wrote: [...] > > > > + case NTXEC_VERSION_TOLINO_SHINE2: > > > > + has_rtc =3D false; > > > > + ec->regmap =3D devm_regmap_init(ec->dev, NULL, > > > > + ec->regmap, > > > > + ®map_config_noack); =20 > > >=20 > > > Ah=E2=80=94 A custom regmap stacked on top of the old regmap=E2=80=A6= I think this > > > deserves a comment. > > > =20 > > Yes, devm_regmap_init_i2c() sets a different set of callbacks depending > > on circumstances. Seems to be the easiest way to avoid duplicating too > > much code. I really hope that there are not so much devices requiring > > such a dirty stuff that adding such thing to the generic regmap code > > would be justified. =20 >=20 > Ok, please add a short comment here or extend the one above the repmap > config struct, to save interested readers a bit of trouble. I guess "add > a wrapper" goes in right direction, but it didn't make the stacking > obvious to me when I first read it. > I will wait for some days to see whether anybody chokes on that stack. Regards, Andreas