Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp1397006ybb; Fri, 29 Mar 2019 03:48:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqz3XKC8MNj+68GRZdL6gtu6ua5az0rbwOQZI9GII+lQ9DdC/yeRxo08QdvT1/8lM3v7Z7Hz X-Received: by 2002:a62:1b8a:: with SMTP id b132mr23685413pfb.19.1553856530495; Fri, 29 Mar 2019 03:48:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553856530; cv=none; d=google.com; s=arc-20160816; b=LImQVFi9PvZEc+cDNaSSxJfPoDfPH3dLcZVIil3EihcgpU6sNDb2VnKYBe24eHQKxS LOYRHLwCaXgkBJb+WjlLKxMMWZn+vtfHw47J03NjoPCPRaEJiZdaDcOvCCTW7UWz0xEf J4DHehJVnQIWLzFos2T0nZwL29WUlV3qk2qZLRsRtTC7PQIWQpLqhG62zTM95uTE4Qwn BeodUEj3jD539wI4PFhkqkuj/hZYPhC05Sl4H7VYmtA/frL/mpTNwJBctFAckxpgS/8N +NoD7cidNNb/bVgKq8wI4fvcLzW7JdbKu39Q8/V7eV584mk5pcEm5gZlrul5WFvZntY2 /1BA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:openpgp:from:references:cc:to:subject:dkim-signature; bh=P5KI+uw6w2xbNZwKJJVa/UJVLdDJx9zqKQHba6/pxp8=; b=zPicN8xcMcUdIH2baTE5mBkUPb7FayquMxie8eYdWxLDMEOCkwiJH8fC4PqzeWAApI 8uyJGD2BtJNPwc2f64//mDlisDNrcHvfbof1kUnTNwKFXl8rjQ03+OZdinrH9iP/L2FN eq62q/Xzx/FZ4JVJiQduNIxaHSCTL4/r/jqX7Fozz/dWB3Riue/ManJOCmVHPNeqibeJ S2GxL7aJJVrBDF5bHXgE/uDKm55mRDjwBFTB3YXicERb+LOC29vYUiU3KXd3cZOGLs+n kQOYAPHdsmFlgkcCtqOLI5cED/Mb4Bn0ciULmMs7iOvFV27WtDEFnsBrlUgYoYobFHN4 MQ0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IqyX4DBv; 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 t7si1568636pgp.196.2019.03.29.03.48.34; Fri, 29 Mar 2019 03:48:50 -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=@gmail.com header.s=20161025 header.b=IqyX4DBv; 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 S1729170AbfC2Kqo (ORCPT + 99 others); Fri, 29 Mar 2019 06:46:44 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:36697 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728711AbfC2Kqn (ORCPT ); Fri, 29 Mar 2019 06:46:43 -0400 Received: by mail-pf1-f194.google.com with SMTP id p10so885737pff.3; Fri, 29 Mar 2019 03:46:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:openpgp:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=P5KI+uw6w2xbNZwKJJVa/UJVLdDJx9zqKQHba6/pxp8=; b=IqyX4DBvPXjyC9rcbMmi58G3wRCu22XJDFlKbRjO3fjA2pfmvZHw3xsOJnYagHLa+3 YRHIYjWsTZ12yTFkMMMrjtNImC9PhnDzdB8uAqoTkAOjhESJOoYJI0427lfA4kYNbrXB aZsrfY5u6Ge3almOed2uUxUojCPElENKZjbro8SITsfEginS/7JpR6Gbr6R08/bnklLq eQfOPDFLMv86tQswCSb4qZvgFV7QoBzEvihcTayqBLOBNe6nGbnakIhm49vrGygqVTBQ COabEPWUgMJW50eT9Cn1EVODodJrXCd0J02lj/DNP86Tv8RQ+EKVVaOKWuCfGKBw8a/J i8uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=P5KI+uw6w2xbNZwKJJVa/UJVLdDJx9zqKQHba6/pxp8=; b=Wsdh6Nz7SKvMGAq/+w8aCtyqVT0dCbzWOPDxYXQyUWd8Yhm3PSbGLOcQWIWHkyT5+9 b3NyM7Wl0DuuMXsA0JE7vcwUjAIdWlXX+DY/eLRdvhkLtBdqk5s0Ea5sHbk94Sjr8EUT 5lnWE6DUXgwrkzBMkARxbpo4eIoFkaOLoL14CyI05RVxEWSXxwDuhX1bs/EM9IKk8Kvk +xZRqKWH8/iG5v0VVN63MB090K3mlYmR+RQ4ariAI2FMQ5IuZeBHPb1SsOx9fynQ9NQ9 RQe5blpa2rjHrtt4GINp+aejgWZkCUzlTX8zMC4c+3MStk6rXPlayNNGNDdiPfISW7Rg yUgg== X-Gm-Message-State: APjAAAV5je6jjjpigsfWQ7McyKMS8lo1muxLHtdLr+BX/6pqX7iz370C 3jftol9Zc4eEyRGsZNJKySs= X-Received: by 2002:a63:20f:: with SMTP id 15mr6096620pgc.90.1553856402596; Fri, 29 Mar 2019 03:46:42 -0700 (PDT) Received: from [192.168.42.180] (219x120x4x122.ap219.ftth.ucom.ne.jp. [219.120.4.122]) by smtp.gmail.com with ESMTPSA id b8sm2044449pgq.33.2019.03.29.03.46.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Mar 2019 03:46:41 -0700 (PDT) Subject: Re: [PATCH v9 2/3] spi: Add Renesas R-Car Gen3 RPC-IF SPI controller driver To: Mason Yang , broonie@kernel.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, bbrezillon@kernel.org, linux-renesas-soc@vger.kernel.org, Geert Uytterhoeven , sergei.shtylyov@cogentembedded.com, devicetree@vger.kernel.org, mark.rutland@arm.com, robh+dt@kernel.org, lee.jones@linaro.org Cc: juliensu@mxic.com.tw, Simon Horman , zhengxunli@mxic.com.tw References: <1553847606-18122-1-git-send-email-masonccyang@mxic.com.tw> <1553847606-18122-3-git-send-email-masonccyang@mxic.com.tw> From: Marek Vasut Openpgp: preference=signencrypt Message-ID: <2741fba1-9aab-d044-15db-54d09e12d309@gmail.com> Date: Fri, 29 Mar 2019 11:44:51 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <1553847606-18122-3-git-send-email-masonccyang@mxic.com.tw> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/29/19 9:20 AM, Mason Yang wrote: [...] > +struct rpc_spi { > + struct clk *clk_rpc; > + void __iomem *base; > + void __iomem *dirmap; > + void __iomem *wbuf; Shouldn't all this stuff somehow come from the MFD driver ? > + struct regmap *regmap; > + u32 cur_speed_hz; > + u32 cmd; > + u32 addr; > + u32 dummy; > + u32 smcr; > + u32 smenr; > + u32 xferlen; > + u32 totalxferlen; > + enum spi_mem_data_dir xfer_dir; > + struct reset_control *rstc; > +}; > + [...] -- Best regards, Marek Vasut