Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1697838imu; Thu, 17 Jan 2019 01:38:00 -0800 (PST) X-Google-Smtp-Source: ALg8bN4hADek1FbAIWbKzdju5y3T13MGz4I4ZZJUJtJqBICfuJmaYe6gPqrKkIuBNSM4OfCbxYcB X-Received: by 2002:a62:ca05:: with SMTP id n5mr14297287pfg.154.1547717880767; Thu, 17 Jan 2019 01:38:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547717880; cv=none; d=google.com; s=arc-20160816; b=uSHgFSSs5jRFP5ccWaGD+tzhh52RVRCIkTnKAf5fYFMmffOnofXbnL3mnfGFO2zqMa BtWCRfpL5Yf6+ht/Z5ydck26JBYm9y7QNih0xxcKloEzKpY5mBhU/Y9d+ICVVazAqEfh t6yGXpnng3gQPcBW6SXlehms0WHKpLEYha8VvhMsCip/J/u3zk4mj1B8jQhyQf0v3KLO fx4u4l+1FOi2GLVI6F6PplGz3bXFuS14CZOOEbO1EtJJLwb+lXDbl3+bWK9PHJysI+r8 OvbqWSWM8X7btYAMM8X+TmLdXAkT5Tcg7stsK+vMTgx3F108fOosNPeu4HGBpFJ79uZQ 9ymw== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=U2IRQhYFXDKcpNyZissgjF3jFwYk92ri0T9rfcT87kE=; b=0/YEzvX7phQ7vs/bf/gfdVVEE5ElkjZ7AVrJlyOPDP8RetO7+TyU65Wpgvr42tMHyg fMHxRPHwBhMAP6EJEHvoguBkTjdLkBFvec4KgntMkyfUyqyuWn/DVZBEdd6ycKWoeTM8 p4rpWRmpnwA/tmHm8B1OB/KLJjl+EWYNSYXqMNeYBKj0IQoomSADY0Yy2yWrWs/KS36B eIvW5EU6zN67XPGJTOhiTYZil0c+9FHcUXxp6PJN6h2gZambLXMF+WSllCQfTqcgyGI+ UFF9JQNF89/oEVTTDYsK736szxdfRsQyGlZSWp3x1rMwXbZ9Lz+TJ+cuSiN+hr0thU4I f63A== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e4si1220647plk.260.2019.01.17.01.37.44; Thu, 17 Jan 2019 01:38:00 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729333AbfAQITY convert rfc822-to-8bit (ORCPT + 99 others); Thu, 17 Jan 2019 03:19:24 -0500 Received: from mail-vs1-f66.google.com ([209.85.217.66]:43915 "EHLO mail-vs1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727343AbfAQITY (ORCPT ); Thu, 17 Jan 2019 03:19:24 -0500 Received: by mail-vs1-f66.google.com with SMTP id x1so5676849vsc.10; Thu, 17 Jan 2019 00:19:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=hh3Z0RghUaMaoqGpdmhHutrXBZb2RgqZ2OpSfdiqjLQ=; b=jlTC8epnncCROnGRAo3RuJjEvikMFya9RPG8Bdtzm6Mf9NbrwdVSEfiYUFUc8Gi7jf EpGVBH50cGgI4pnics6MN5izPjVCzPOF+sFfy1/KBeel4qHvBNCmYf2hY6RkvG9r1N9U FMyMxLcPc3VN+ssVAE8NqYUpufxsJ0b1NjLyAl7kEz+Yd+adecHk41rz+DtEPg0F8Dvv FboSrJ0ZtDW15OIIp9jefN9ulHY08/Lu4GcM3QbUQe+WV+h7KtFKt1ANZuSmUa1vQeuF Cuo2dLEC1+TJXlpg6glkXyyczMx+wvERTaVh3xmC9hPihi1M/uwdPBilLBpm3ZYmGf/h qlog== X-Gm-Message-State: AJcUukeom+CuzhZUZvqlMlJpcXaqfr20JBB/DGq3VIczREUhSJSR+DDU JPQUESRkiCnuTUqm5wdRPZa32t2kBMgyqDFtf0c= X-Received: by 2002:a67:c202:: with SMTP id i2mr5413265vsj.11.1547713162494; Thu, 17 Jan 2019 00:19:22 -0800 (PST) MIME-Version: 1.0 References: <1546921020-20436-1-git-send-email-masonccyang@mxic.com.tw> <1546921020-20436-2-git-send-email-masonccyang@mxic.com.tw> <74a5fba6-a77e-f71b-ce49-405fee8e0fda@cogentembedded.com> <30d678b9-2b49-1f82-3027-332d213b488e@cogentembedded.com> In-Reply-To: From: Geert Uytterhoeven Date: Thu, 17 Jan 2019 09:19:10 +0100 Message-ID: Subject: Re: [PATCH v5 1/2] spi: Add Renesas R-Car Gen3 RPC-IF SPI controller driver To: Mason Yang Cc: Sergei Shtylyov , Boris Brezillon , Mark Brown , Geert Uytterhoeven , Simon Horman , juliensu@mxic.com.tw, Linux Kernel Mailing List , Linux-Renesas , linux-spi , Marek Vasut , zhengxunli@mxic.com.tw Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mason, On Thu, Jan 17, 2019 at 7:32 AM wrote: > > "Sergei Shtylyov" > > 2019/01/17 上午 03:36 > > >> > > >> [...] > > >> > +#define RPC_WBUF 0x8000 // Write Buffer > > >> > +#define RPC_WBUF_SIZE 256 // Write Buffer size > > >> > > >> I wonder if the write buffer should be in a separate "reg" prop tuple... > > >> Have you considered that? > > >> > > > > > > I don't get your point! > > > > I mean that the write buffer should be a separate "reg" property > > address/size tuple, > > so that the RPC device has 3 memory resources. Our SPI driver used > > this scheme, and I > > like it. > > > > I got your point but I think this RPC_WBUF@0xEE20_8000 is in the same group > and it's size only 256 bytes, not like external address space read mode > @0x0800_0000 w/ 64K bytes. > > Maybe Geert or Marek could comment on it, thanks. Given the writer buffer is separate from the other registers (it's in a different 4 KiB page, and thus may be at a different offset on future SoCs), and not present on RZ/A1, I think it's a good idea to use a separate reg entry for it. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds