Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3332632imu; Mon, 28 Jan 2019 03:03:42 -0800 (PST) X-Google-Smtp-Source: ALg8bN6SQnoDq2ZluNI6E/ngv7xUzqnGlP9mzzFl1XhLu0Y+9xXsGurvSE/LlTXAV3+cA1QEJRce X-Received: by 2002:a63:8742:: with SMTP id i63mr19225679pge.298.1548673422032; Mon, 28 Jan 2019 03:03:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548673421; cv=none; d=google.com; s=arc-20160816; b=IsOqyFlYUHhvhoLh328ozynqSM3KMfJgmNoeUu35s+xbowDIl/1coKly9djzwyNH8J mhAjbmJEQWKXrfoFCxDdJ2rbR/NerOC4ahER1mVP2RuXIJbFl8f9/F06DWPeiMEt0TtC 0JMuiGvyrmYIBdjhfpLPxiVMZFXJilg00JjFfANGqWrj3bmIvY5/nMdt0tyePPm4O9Jg EGooGpiPNwa9Z3SmBe+ywQ2zufgXOD++elw+mRqPa2uDU2utqqR8cZlYgfJl/mvTWsE7 mLZPX7ZhT4KTScSb5hIp4yUm8ooJWRQjN2mtoj/TnY2XsTgDdp/IMbNSeb1gsCLmgOlA 1Zow== 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=Ma7NQbkbV4EGaErq9ddefJ4LlNDNE6uhJ0aUoGK6ZdY=; b=Kv/lgRWF75/EUVmXmQ5iMRn+lq9o+UHpGxj8XKJ9SszBbMS1ep40Ohl22wTkDSBEgj iHh3L0H4XtJYHx1OceygMgJKR0jn3pG5qbufVDwvQ5JWm6HeJC1oaiBthK3xnYXqeJqK Q2uxWex5G1YVPrLbS0w6pcdDfgJsQnm6hw3bUvWUX3X5WGGa3uFjlbBeOcYuHeifMcva 1hex/QsPcrzwpuUMmcEaKQbcUsM3RH1lwZeXguw1dzD9mUjTtTaFR1HUTOpnlE5BFZgH 48th1wuVSxfyHV6GupPPeSyVhsLUfSY6CJL/I6/ywKsAq1ZBPEe2X1p+2QfbyOxEPe12 qB5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=h1Khu1pJ; 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 187si24317396pfz.249.2019.01.28.03.03.25; Mon, 28 Jan 2019 03:03:41 -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=h1Khu1pJ; 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 S1726886AbfA1LDH (ORCPT + 99 others); Mon, 28 Jan 2019 06:03:07 -0500 Received: from mail-wm1-f54.google.com ([209.85.128.54]:52577 "EHLO mail-wm1-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726744AbfA1LDF (ORCPT ); Mon, 28 Jan 2019 06:03:05 -0500 Received: by mail-wm1-f54.google.com with SMTP id m1so13497104wml.2; Mon, 28 Jan 2019 03:03:03 -0800 (PST) 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=Ma7NQbkbV4EGaErq9ddefJ4LlNDNE6uhJ0aUoGK6ZdY=; b=h1Khu1pJLfcdo2+V/iSq7JAd6lkHG4X+CN+7oQ9Noy6Y1Efr/kQrTcWPAZcdmGL0jE a3bWJ5j8OlXQa4eR1eDXgPvqNofPhr0jLs9KlveYmqEEW8fnTRM4vX8LUH38EvLA0HS+ qtq51jbPXNFoTPzsO5hXa0JyYRhrUW0ArPoS0Q4faDXzI0Lsb2/FZFD0OcHUBzI9CsCZ OlE4yLzi3i0Dt8u52Iq9Xeo9v7x4zIwgRvWiBDV/URp3Z9dJXynyAAj8vmzx1FuwKQk6 syo+OlWDJQSDY3tehfGN4a4hNMV3dBwhnUDpDIehdg5NmWvMcvvzHluwzcKmHslHxD7Q oKcw== 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=Ma7NQbkbV4EGaErq9ddefJ4LlNDNE6uhJ0aUoGK6ZdY=; b=N8DxmAn5qub6m0ytnM9rI3r7H4bUsJCgLogXgQvkJe1Ejln3A8uYGC5SPhMsqy6HDu 9eO/FCN0sMuFWnJpCyn+ry1xSq8r9zQtjqCBjQahDe/HbH51vQYzgdqnL+y9it8iQ3jf tvAQBWhgidpYkbqiZ8zgYyBj1BojLxo0Vos+OnYt+4WTcCipHPvdiORvj+xS/rKzrEoe L+hLjtWTznIGAJiNXyTqDRRxUPw3GwHnO/fCkfwb/ux7CrLzO03JSoSCU60fudAaC9Rm 1BCGH5L/Nsiv+vyKD6cMoWbTiYPvcv8eRLCpUlvgnRT3I14nlBjU9Ew6ewwyf+7gWcWa vxHQ== X-Gm-Message-State: AJcUukcT42oSM4jZCqv7bqvXsupA66iKuTTTeh9a9uW7J/Xzr28QtJ48 DUUh5ziEyf3Fnkyf9JKTfkIqpXc5HD4= X-Received: by 2002:a1c:7e56:: with SMTP id z83mr7406162wmc.100.1548673383117; Mon, 28 Jan 2019 03:03:03 -0800 (PST) Received: from [192.168.1.4] (ip-86-49-110-70.net.upcbroadband.cz. [86.49.110.70]) by smtp.gmail.com with ESMTPSA id v8sm132964293wrq.53.2019.01.28.03.03.01 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Mon, 28 Jan 2019 03:03:02 -0800 (PST) Subject: Re: [PATCH v7 1/2] spi: Add Renesas R-Car Gen3 RPC-IF SPI controller driver To: masonccyang@mxic.com.tw Cc: bbrezillon@kernel.org, broonie@kernel.org, Geert Uytterhoeven , Simon Horman , juliensu@mxic.com.tw, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-spi@vger.kernel.org, sergei.shtylyov@cogentembedded.com, zhengxunli@mxic.com.tw References: <1548227352-14910-1-git-send-email-masonccyang@mxic.com.tw> <1548227352-14910-2-git-send-email-masonccyang@mxic.com.tw> <67fa5f94-886b-f09c-c93d-832e427ffec8@gmail.com> <0b3ea94f-a4f3-0780-301b-f88ff2ad2fb1@gmail.com> From: Marek Vasut Openpgp: preference=signencrypt Message-ID: <2d762c16-d714-9171-9450-b6adf1a6509c@gmail.com> Date: Mon, 28 Jan 2019 12:03:00 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/28/19 2:38 AM, masonccyang@mxic.com.tw wrote: > Hi Marek, Hi, >> "Marek Vasut" >> >> >> > +module_platform_driver(rpc_spi_driver); >> >> >> >> >> >> RPC is not a SPI controller, it's a SPI and HF controller. >> >> >> >> >> >> Also, how difficult will it be to add the HF support ? >> >> > >> >> > One of my customers needs RPC SPI driver for our company's >> >> > Octal-Flash,MX25UW51245G. >> >> > We don't have HF product and hope you could understanding. >> >> >> >> I am worried that when we need to add RPC HF support (which is what all >> >> boards but the D3 Draak use), we will have to rewrite the entire driver >> >> and/or convert it to MFD and that would be a tremendous > undertaking. I'd >> >> prefer to have the driver ready for the HF addition before it's > accepted >> >> upstream. >> >> >> > >> > I think maybe your concerned would be happened only if HF driver > goes with >> > spi-mem layer. >> > >> > A comment for HF from Daniel Fishman. FYR. >> > >> > https://www.quora.com/What-is-a-hyper-flash-memory-and-how-is-it- >> different-from-normal-flash-memory >> >> I have a decent idea what HF and SPI NOR are, since I wrote the RPC >> driver for both HF and SPI mode for U-Boot (as I mentioned earlier). >> >> The HF in Linux would use the CFI NOR part of MTD framework. My concern >> is that when we need to add HF support into this driver, this driver >> will have to be basically rewritten, since the architecture won't allow >> for that. I'd like to avoid that, since the majority of Gen3 boards, >> expect for the D3 Draak, use RPC in HF mode. > > FYI~ > > MX25UW51245g(64MByte Octa) ? ? ? ? ? ? ? ? ? ? ?S26KL512S(64MByte HF) > ? ?8 IO ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?8 IO > 200MHz DDR@1.8v ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 166MHz DDR@1.8v > > support Read-while-write ? ? ? ? ? ? ? ? ? ? ? Not support > good for OTA,etc > powerful application What does that mean ? -- Best regards, Marek Vasut