Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4374963ybv; Tue, 25 Feb 2020 18:56:03 -0800 (PST) X-Google-Smtp-Source: APXvYqznGKi4rucy9ZG5TEFq2WaxmjYxNdIDd+NhwBJGiUIcamuaHBXmhGXuX8313JbMQGFRKuR+ X-Received: by 2002:aca:c256:: with SMTP id s83mr1515765oif.57.1582685763479; Tue, 25 Feb 2020 18:56:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582685763; cv=none; d=google.com; s=arc-20160816; b=iGQTSXT4rwPtWeg/4n0Y7v/RJxJr0NQ6cC2IxSW9vbswpViN1Ef8NYKLv5v8DMEaei f3+sBjHOu/Vh4iCls+XYAHnsqhuVGsX5EfW8vYiyhRX0CZ0/JPHqv8XYwIrcDKR/4/R8 zDlYC2g5/7B+7D7O2yPaiU8MEZSZgM6jiCnaFhE+AIgHkzAZ94P9uVjBiR4w9/AnbY3b Q9gpjdMegiNCp2abL6kyPL5567f/RI75aP31oDlntGDAYmn/hrrgN5sGvOsqPRsyC8b+ 6Zv/SIGTMCXQhYptFE4ZYR3t8Uhfv3vJxJCPMNREg3T+0+lvT1soXTOS3/QyT1rst7tG Xidw== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=bfSVMJ6Zntz6A9BJaM12dNm4EQGGybEoHbVncbTsUMA=; b=zBlbvHHY4aSeQxdOMwYFGJvzWhyMXNYQr2s03dQbHabA4+akvvUGvmuNW85rnomjMs pAZOI3Ux0gIh8lY88vZ0r2VMlFvTlW4fCPPYrn0m8LJNfhAYmAEKeXTzEaI+1QAm4LUg kwmg5p5X0jdWK4cjO2lG9WVqgMYXo0EuIsg+9pDvIS1olLeVQgtULW/WnrWK1qU05aHw rywrsbBTBRaHbh02Ep/LeH3hOfxOs3u14CJhgmDOdg+vYgdqAFBjJcJ13eNcgfOrTA9q E4+PK5Q/oLQmAchv4khi0xaiiqf9qw20c5OLrxcjq99fk6cU+QtrxKk6y65vm63xW2d6 1P/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Moy0oe77; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j65si465503otc.308.2020.02.25.18.55.51; Tue, 25 Feb 2020 18:56:03 -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=@gmail.com header.s=20161025 header.b=Moy0oe77; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730194AbgBZCzo (ORCPT + 99 others); Tue, 25 Feb 2020 21:55:44 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:38403 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728989AbgBZCzo (ORCPT ); Tue, 25 Feb 2020 21:55:44 -0500 Received: by mail-pl1-f194.google.com with SMTP id p7so669734pli.5; Tue, 25 Feb 2020 18:55:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=bfSVMJ6Zntz6A9BJaM12dNm4EQGGybEoHbVncbTsUMA=; b=Moy0oe77F1nP33WomY+/yVeQF9YOUm9A+K2Dmya3vWO3y1gDf7kXx+ARQoGIqJsbcn sPDlocDXHhiYZjO+XyXUp5tQV8BJw2C7x+2ghY8gYyPWFQ7qduGfKCkjbgpdinZcGNjB WxhCMHnCKG0c8t5hywtULwpBqj4C0bP6PHBAoxnZH9WUICVJuyrYV1mqj2wAShGjfCs6 tIJzuV4Fe3jr6nyPLQ/HjFbLHYzt3rgUTWbLX8hMswIRiB57T3uJgkHbl/XIWiXtE5Fv PNehsU30K6Pj2wGG2X6MPSgieuIgHYhU1Oya8m/3JHtMlRpQXMzTlhwP7/IXW+Pi/+xR gauw== 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:in-reply-to:user-agent; bh=bfSVMJ6Zntz6A9BJaM12dNm4EQGGybEoHbVncbTsUMA=; b=p6PhwdoPvYhil7uwcUiyDhj5j4tHyq5dQrRnqoyHVa/7S+0aQnqcVeIkCDZQ3sXDD+ QqN5R5QgPd2bKb89fOEF/dAD1dOcAFvjioy1d76ncB8bLuHoSNJ/wfkus1kzmviYQgxp YuDIRYMIbDQzad61PB3Aw3SYyisHCpHAIHgezonQl+LeoqOECpSkNJQK5Rk4fBLCm80J MJJShjqvGfR7k26/VQZcC73fXeVTxV4HsbWn8vajvRIv+9y9MNKu3UhVuQO7N3CkGB36 A4h+VnhnNwkhOk3AKFbC6qdnXsvOtzaUFtKg4AFoGM8IyGiA63M3rz1gMWPay2WyPfPZ WyFw== X-Gm-Message-State: APjAAAVtGVJvA5DV3E1gxt8PuWR6ImdURGWh4IM8FxxUEpj4qaiSOJ/j 9k88X3XVkeNOFXivL6j1B/67paZijCk= X-Received: by 2002:a17:902:9f88:: with SMTP id g8mr1790693plq.100.1582685743306; Tue, 25 Feb 2020 18:55:43 -0800 (PST) Received: from Asurada-Nvidia.nvidia.com (thunderhill.nvidia.com. [216.228.112.22]) by smtp.gmail.com with ESMTPSA id l13sm444798pjq.23.2020.02.25.18.55.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 25 Feb 2020 18:55:43 -0800 (PST) Date: Tue, 25 Feb 2020 18:55:40 -0800 From: Nicolin Chen To: Shengjiu Wang Cc: "S.j. Wang" , "mark.rutland@arm.com" , "devicetree@vger.kernel.org" , "alsa-devel@alsa-project.org" , "timur@kernel.org" , "Xiubo.Lee@gmail.com" , "linuxppc-dev@lists.ozlabs.org" , "tiwai@suse.com" , "lgirdwood@gmail.com" , "robh+dt@kernel.org" , "broonie@kernel.org" , "festevam@gmail.com" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2 3/3] ASoC: fsl_easrc: Add EASRC ASoC CPU DAI and platform drivers Message-ID: <20200226025540.GA22445@Asurada-Nvidia.nvidia.com> References: <20200225080350.GA11332@Asurada> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Wed, Feb 26, 2020 at 09:51:39AM +0800, Shengjiu Wang wrote: > > > > > +static const struct regmap_config fsl_easrc_regmap_config = { > > > > > + .readable_reg = fsl_easrc_readable_reg, > > > > > + .volatile_reg = fsl_easrc_volatile_reg, > > > > > + .writeable_reg = fsl_easrc_writeable_reg, > > > > > > > > Can we use regmap_range and regmap_access_table? > > > > > > > > > > Can the regmap_range support discontinuous registers? The > > > reg_stride = 4. > > > > I think it does. Giving an example here: > > https://github.com/torvalds/linux/blob/master/drivers/mfd/da9063-i2c.c > > The register in this i2c driver are continuous, from 0x00, 0x01, 0x02... > > But our case is 0x00, 0x04, 0x08, does it work? Ah...I see your point now. I am not very sure -- have only used in I2C drivers. You can ignore if it doesn't likely work for us.