Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1390954imu; Sat, 26 Jan 2019 01:42:40 -0800 (PST) X-Google-Smtp-Source: ALg8bN43FFcrtHkzZRcmSHkI8m5wZ9K7wl5cYfFzAKKnaQrkq8wjj5kBLLHQFE0GeVd6ct8qSEve X-Received: by 2002:a63:194f:: with SMTP id 15mr6471755pgz.192.1548495760030; Sat, 26 Jan 2019 01:42:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548495760; cv=none; d=google.com; s=arc-20160816; b=imAYthB2/uB3fcJdk3qm6JYmzzTbZVQr3zrVtlKHE5zyu4dClJPpJxb0k68pCnbziT bbLepUi1OMac071+c1LpxpA1VH8Nb/IZY/PoOJ2VHJ7KmPPoInHiIlo/g+A/zPyeTKK+ viO47YMd+sN4cWs9Gjch2WJf+shYY5gJVodXnxLiuERLjNk1VAhs7q6sb8MwPPzFkv/G vbp7CwfrPpDZOLpQKZz1dHx/RvJe17C6Gwh8h8d9ia5dTS75XNC93KLzk+R0fUSeulrO MxIC+6A5xi4lKHJ/PIWMEhGhEDq69U+Ny6gwfsgZuWpGp+mQ8l/YbKskjuKMMGrtKLXY Ec7g== 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:references:cc:to:subject:from:dkim-signature; bh=FO83Cx8fAGOOA1b2naAIeCaa4fsfiISE0t38TvkwTB0=; b=UkerShJCt7Euc35tUaZaVphap3rd9i1hITDzxQrQu7VKQmvDroxN89T03kjJUY63JJ Lu91qKGTFF6eIEO+w6fSTMDWKlk7PssZbOwEDmL2jdGr3eqI2/bhbMYSTgucA4qE2z0K +07QpW9x3fNdnBBk6wgYK892XWFrmk5SGeJ0UGwOgZatsNZ+ulQ76BEWTlsclW6if7yk FCmum3aJtyIkgqBv8ubLDXHcPbwGhj/P6FpQANeMcmZjbVODANAcWbrhplSgaduNNzfr NAf/SwyRGBJYvdPkOL9iZp+ReaDDTBQL8ZIrXmGqA5iJu6cQliSNTRfdzsJbpsB4VaAB jTNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="JBdNR/QG"; 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 v21si3202257plo.417.2019.01.26.01.42.21; Sat, 26 Jan 2019 01:42:39 -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="JBdNR/QG"; 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 S1726362AbfAZJl6 (ORCPT + 99 others); Sat, 26 Jan 2019 04:41:58 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:42787 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726165AbfAZJl5 (ORCPT ); Sat, 26 Jan 2019 04:41:57 -0500 Received: by mail-pl1-f194.google.com with SMTP id y1so5656364plp.9; Sat, 26 Jan 2019 01:41:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:cc:references:openpgp:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=FO83Cx8fAGOOA1b2naAIeCaa4fsfiISE0t38TvkwTB0=; b=JBdNR/QGnk764OO/UFFAzPLP7d/xLzUWr5IWbU+LZRMm3nLOuGbhNtfGyx2T64di44 ON0BRepLTK0dp6ZNZcAr3/i75++LFHpg/ESdMPCroH5dSUY6Z9In73AfYMHmvx8dhQQq Sim0QKPNvTxlxYjz6KSgFUquLID40rJdO/gTQ+yujaDgfCyicwTrHWq7xyAwX257p9by lauL0M8xYRBHiIvhKO/KWtsAd5k59gz+fa2qsUFsCVz/kiXdpGJ6HoB3JTDzPyshpFKs n6zSAC2PL7HAaMA/z7ONu7CZjqQQZM2udEpW5DLEyMy3esZXM5BbI0lMj8hVBWNgNRuS 8vBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:openpgp:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=FO83Cx8fAGOOA1b2naAIeCaa4fsfiISE0t38TvkwTB0=; b=D542J8gowRaDQtmb2QgbG9msblD8tFMnJwAFTFLNYLMzotAPHPEWgrBi1zQfiVjX1+ 8uqmh91p2/eVJu4K9RKwLC/toIp25TSLJJs9TD4QqZtNtyGAOmfhTLsOdHKwxdobHGVW hOMV4QkRS9F8vCI9Cc0R/PHhCnnjuX4aRdnprN4cJWp+iPbiZpdC33i0WKoLNJqq6ley soTx7XPEr2V8owaNYkqG5tsfbeKlpc7K/kOb6+FIJjy4y97KJ5sTfJ0hQ2sxnO4l8lS3 d0jplZEZUCPRS/UfKNpi+vLRlg6kDKomWpnlNM9s3uzSQLE4O/LJdGkqJAvHGzdro8qz qM0A== X-Gm-Message-State: AJcUukfxH31CndN8jktIttM0zvdFsvRnS7PCW/XShF/rIFrfbOAQ9aCr XnG9aQr6CKfoSzArwinn0GxLWr8r X-Received: by 2002:a17:902:6b0c:: with SMTP id o12mr14648780plk.291.1548495716780; Sat, 26 Jan 2019 01:41:56 -0800 (PST) Received: from [192.168.42.184] ([103.44.164.150]) by smtp.gmail.com with ESMTPSA id p2sm33976733pfb.28.2019.01.26.01.41.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 26 Jan 2019 01:41:56 -0800 (PST) From: Marek Vasut 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> Openpgp: preference=signencrypt Message-ID: <0b3ea94f-a4f3-0780-301b-f88ff2ad2fb1@gmail.com> Date: Sat, 26 Jan 2019 10:41:07 +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=big5 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/24/19 7:28 AM, masonccyang@mxic.com.tw wrote: > Hi Marek, Hi, >> "Marek Vasut" >> 2019/01/24 ?W?? 11:14 >> >> >> >> > +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. -- Best regards, Marek Vasut