Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp628402imm; Wed, 8 Aug 2018 03:00:52 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwB2954NmHUj2pzy+XD90ncTRcqlGLHCHSMPnGgY/bAyXoSXVjqJUHRcSsN8eRkGAX1RSjb X-Received: by 2002:a63:1f20:: with SMTP id f32-v6mr1842620pgf.84.1533722452069; Wed, 08 Aug 2018 03:00:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533722452; cv=none; d=google.com; s=arc-20160816; b=JwzpxyufxOuXDKoGxR5eZ3+kES6AddjkiGd+KfOULGtJMSueFMwwHVdmhdZQv03xbP EfspB1AJVQ2+wFCvKrRfvUOvYKrSDA09wWuo4LU9HWXceFKv9LQpJN4J8iIfNPjgnbrL GHmM6k8qppQEYUMjaGuuozX8063l33B2sua3HJ6BUF9oh5jJ5/AshgkhUaX3hiSiZoZZ NEyCiHW+/ewsFseJCnkgMiAaqVsvtxyb1hkSrqLz5oTrXLPbHwSKy9839lTp/rU0kTLa qkJ32rOiy7AHKWi3sb76ZO1rWgMv7npD20K3SIyLIU8OZ7VyLxvxrbAWp8UfkaZ+H9EN J7Jg== 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 :arc-authentication-results; bh=bKOpr10yiJf8ZN9H3t/MjoXorv1H6amBgn3dgTRSxhQ=; b=JiaDyjPNpnQuhFC8lgZGlUa1i/aIp3c3T7UrAlqZ8ffbip9xOOzRZGKZh17BP9xrKr PpEGnOv3ahqCLO1OwJQeEUaoHPLkUfSNqfZU1kzDXYclSbG3GKO+ECRN19z/CqldhhoW sPxVVS6nNr/Net7kA5aImbAAJF2IOcQkf4Y0RNEzjYyW3vCXtGzayQxGd9SQ/3XirCwz Zbl65PYBanwBJXIemdvLqsNa0b8LY03PV08uZdOJJsct95quXZTATRZIr2OhG977ttIq tGwpTywxqK4xl7APGfw3Z03leF9G9s0bUgHHGsg2pxzEq5Pz35a3L8fh1mm0iur21hqV HK2g== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cirrus.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s185-v6si4071414pgs.499.2018.08.08.03.00.36; Wed, 08 Aug 2018 03:00:52 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726971AbeHHMSq (ORCPT + 99 others); Wed, 8 Aug 2018 08:18:46 -0400 Received: from mx0a-001ae601.pphosted.com ([67.231.149.25]:42016 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726643AbeHHMSp (ORCPT ); Wed, 8 Aug 2018 08:18:45 -0400 Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w789x0Lr027708; Wed, 8 Aug 2018 04:59:10 -0500 Authentication-Results: ppops.net; spf=none smtp.mailfrom=ckeepax@opensource.cirrus.com Received: from mail1.cirrus.com (mail1.cirrus.com [141.131.3.20]) by mx0a-001ae601.pphosted.com with ESMTP id 2kn9j1ncbw-1; Wed, 08 Aug 2018 04:59:10 -0500 Received: from EX17.ad.cirrus.com (unknown [172.20.9.81]) by mail1.cirrus.com (Postfix) with ESMTP id 87EB3611C8B0; Wed, 8 Aug 2018 04:59:09 -0500 (CDT) Received: from imbe.wolfsonmicro.main (198.61.95.81) by EX17.ad.cirrus.com (172.20.9.81) with Microsoft SMTP Server id 14.3.408.0; Wed, 8 Aug 2018 10:59:08 +0100 Received: from imbe.wolfsonmicro.main (imbe.wolfsonmicro.main [198.61.95.81]) by imbe.wolfsonmicro.main (8.14.4/8.14.4) with ESMTP id w789x5cb014434; Wed, 8 Aug 2018 10:59:05 +0100 Date: Wed, 8 Aug 2018 10:59:05 +0100 From: Charles Keepax To: Mark Brown CC: "Popa, Stefan Serban" , "lars@metafoo.de" , "robh+dt@kernel.org" , "knaack.h@gmx.de" , "linux-kernel@vger.kernel.org" , "jic23@kernel.org" , "devicetree@vger.kernel.org" , "Hennerich, Michael" , "linux-iio@vger.kernel.org" , "mchehab+samsung@kernel.org" , "mark.rutland@arm.com" , "akpm@linux-foundation.org" , "pmeerw@pmeerw.net" , "gregkh@linuxfoundation.org" , "leonard.crestez@intel.com" , "davem@davemloft.net" Subject: Re: [PATCH v4 3/6] regmap: Add regmap_noinc_read API [UNSCANNED] Message-ID: <20180808095905.GG32322@imbe.wolfsonmicro.main> References: <1533557087-10401-1-git-send-email-stefan.popa@analog.com> <1533557087-10401-4-git-send-email-stefan.popa@analog.com> <20180806143901.GP2414@sirena.org.uk> <1533569985.11050.9.camel@analog.com> <20180806160402.GR2414@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180806160402.GR2414@sirena.org.uk> User-Agent: Mutt/1.5.20 (2009-12-10) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=822 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1808080102 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 06, 2018 at 05:04:02PM +0100, Mark Brown wrote: > On Mon, Aug 06, 2018 at 03:39:53PM +0000, Popa, Stefan Serban wrote: > > On Lu, 2018-08-06 at 15:39 +0100, Mark Brown wrote: > > > > I suggested having an explicit operation to check if a register supports > > > this mode of operation when I reviewed an earlier version, I didn't > > > notice a reply on that? > > > Sorry, I got confused about what needs to be done. Should I add a new field > > to the?regmap_config struct which will be checked during the function call? > > Something like?can_multi_write? How do you suggest it should be called? Is > > readable_noinc_reg ok? > > Like I said last time I'd suggest making it more like the readable and > volatile checks - I'm fairly sure I've seen devices that don't > autoincrement only for some registers. I can confirm I have seen hardware that autoincrements for some registers and not for others. Thanks, Charles