Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1200730yba; Thu, 9 May 2019 12:25:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqwjnopQhTsJMRRtMPteUeRXrwL8RuKeleEizzSUa+y60FUq7Sz3dfIZr4tUp2E4CD1qlFFM X-Received: by 2002:a63:5322:: with SMTP id h34mr8006179pgb.413.1557429934306; Thu, 09 May 2019 12:25:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557429934; cv=none; d=google.com; s=arc-20160816; b=xH9D339KVw12xF6H3P3cWiTdVYKCfMGSKJz5jQumm+shsoQDneERUaj+rlhBxGGvoe xhgHAA5gpgyBIu2dF49LE6DN800U6hPVK2qUCFQ2LfhM1tKr58VDYpN4xCc25MrH0isN UenffOIpeETHTpktLe/kxIFnMr39kZzCiXdpvfteS2InvQjjc4PFYXCJYoP+Vaa2oFg9 DRVnojipzhJ1kFkFsqs6e/MYYfthMRQv6Holn+TxyP0kMKhDefZ33MQFIfV/YbZWLWLV 4Uq3WKae6Y5ADHuUaP5GDuw3U+AujZRu7J7rdunuGqfTz/BG4rK1+G/3we0Lxt/sicB0 9bSw== 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:organization:from:references:cc:to:subject :dkim-signature; bh=K0ULTKW1pMIYvmrrloRIKSC8znExoCBaNY+Qu0rdHP4=; b=EtG8WGWQMr17rotSPP3zv5F9d/WZXdFNP/P/UvaVZT9nris4W24JPmoM2k2rhx1/Vx MRuaz5bNMhH8XzsPvW8Hqsl3ju/jn1S/vk7QcdJ/n/pTziCPtD8Goj6SqWc/Rfw1PDsG CSUpyaz9aEzQGscPg7D3Kn4l1DK6KonrO6WTCI8GY+nKS4stERHzr7W9bVpdMyc8+ux5 L8EUoXkjss1fnjMOFmmdKcwNMHa3QSUVSxJpowOl0HSATdADi+iKu/BMs56LXd4dNHAW 2PduZXdKgnS49pBTEKXXdVSdRFu5FsKzykQKkr+nT3rIVkkIKJFQnoG0UgrYWz0fYTic Jv7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=SQXCzKdD; 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 i7si4645363pfj.115.2019.05.09.12.25.18; Thu, 09 May 2019 12:25:34 -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=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=SQXCzKdD; 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 S1726832AbfEITXJ (ORCPT + 99 others); Thu, 9 May 2019 15:23:09 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:34288 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726776AbfEITXJ (ORCPT ); Thu, 9 May 2019 15:23:09 -0400 Received: by mail-lj1-f194.google.com with SMTP id j24so2216130ljg.1 for ; Thu, 09 May 2019 12:23:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=K0ULTKW1pMIYvmrrloRIKSC8znExoCBaNY+Qu0rdHP4=; b=SQXCzKdDXRiTbiLue1n3gd9c1Ccer5Njq9kWMpqmtLuw/GdsYfKsNwe/4DkA4BxtGI RRNLxVD5BwuOJmOL02Q6lMbIDUqLn8FSeTMGGguibuUVrMc5OiAgEJDvmMR9tDLgg04i U/VEpfB+7v6TBVBo9hXpciknBq53s+rfIZeyvsx4+zkUQy2Lt18QCJdU++b+YCtBF7ty aHofqfWfadHo/VAFIuiLXbYn1bUcY01ZerY/hG8FUdUWSyz1HpvMYdhU+oQ/AC6cNCx+ 5Ns5ZtlCOcrhkVs1gJsDHdbEkyRtRgD/DpYA/tPDzaP+nSG5ZY8KRLv/ETsdC6oV3enF 5OVQ== 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:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=K0ULTKW1pMIYvmrrloRIKSC8znExoCBaNY+Qu0rdHP4=; b=O1rwPviHeqzMWWzfYXT9APpr3uPMDZPYvCgKQGeRf8uxYpfuZnBKpUXHY3JiZW8c3A 3G637CF9ISsOVK5sG9/Hxt7/TSxqDT8aXaaSLfiHKhMHgJ9bdViFMexSdMNDBlZZqjcr SsH3MceB1DLBjcRhyPaqdFpAJGrnODMoF2Uel5kr9X8UWpXIJI2MGA8A1bwm/jJ57wpb aMgH4Sw9k1oBCBIf9VejGUTH2meESSBQigI/jIrfi8Sn9hbF3wl6rNUICWRZdBJ+72uv I/JgzJ+Z0RbXAwZt9sR10kU28s18N90GX6v/zuFHlbpg7OR4J6XhrCtEVdvZPKdsH3cG A9dw== X-Gm-Message-State: APjAAAWo0WIVfOVx7qqFLZNWi5JBDgux+pk24yPJ0Ai2Al9WXLKVhM3F DCoNB/YsWPIRkLlvXJpNJ2vv7Q== X-Received: by 2002:a2e:2995:: with SMTP id p21mr3078309ljp.39.1557429786652; Thu, 09 May 2019 12:23:06 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.83.188]) by smtp.gmail.com with ESMTPSA id m3sm563590lfh.94.2019.05.09.12.23.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 May 2019 12:23:05 -0700 (PDT) Subject: Re: [PATCH v12 3/3] dt-bindings: mfd: Document Renesas R-Car Gen3 RPC-IF MFD bindings To: masonccyang@mxic.com.tw, Lee Jones , Marek Vasut Cc: bbrezillon@kernel.org, broonie@kernel.org, devicetree@vger.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, mark.rutland@arm.com, Rob Herring , zhengxunli@mxic.com.tw References: <1556092536-17095-1-git-send-email-masonccyang@mxic.com.tw> <1556092536-17095-4-git-send-email-masonccyang@mxic.com.tw> <20190424212356.GA27103@bogus> <65853dc2-6f3c-1494-7e72-54877797cdd2@gmail.com> <20190507125730.GD29524@dell> <20190508061119.GB7627@dell> From: Sergei Shtylyov Organization: Cogent Embedded Message-ID: Date: Thu, 9 May 2019 22:23:04 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-MW Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello! On 05/09/2019 05:06 AM, masonccyang@mxic.com.tw wrote: [...] >> > >> > On 4/24/19 11:23 PM, Rob Herring wrote: >> > >> > > On Wed, Apr 24, 2019 at 03:55:36PM +0800, Mason Yang wrote: >> > >> > >> Document the bindings used by the Renesas R-Car Gen3 RPC-IF MFD. >> > >> > >> >> > >> > >> Signed-off-by: Mason Yang >> > >> > >> --- >> > >> > >> .../devicetree/bindings/mfd/mfd-renesas-rpc.txt | 40 ++++++ >> > >> ++++++++++++++++ >> > >> > >> 1 file changed, 40 insertions(+) >> > >> > >> create mode 100644 Documentation/devicetree/bindings/mfd/mfd- >> > >> renesas-rpc.txt >> > >> > >> >> > >> > >> diff --git a/Documentation/devicetree/bindings/mfd/mfd-renesas- >> > >> rpc.txt b/Documentation/devicetree/bindings/mfd/mfd-renesas-rpc.txt >> > >> > >> new file mode 100644 >> > >> > >> index 0000000..668b822 >> > >> > >> --- /dev/null >> > >> > >> +++ b/Documentation/devicetree/bindings/mfd/mfd-renesas-rpc.txt >> > >> > >> @@ -0,0 +1,40 @@ >> > >> > >> +Renesas R-Car Gen3 RPC-IF MFD Device Tree Bindings >> > >> > >> +-------------------------------------------------- >> > >> > > >> > >> > > Looks like a SPI flash controller from the example. What makes it an >> > >> > > MFD? >> > >> > >> > >> > It supports both SPI NOR and HyperFlash (CFI-compliant flash with >> > >> > different bus interface). >> > >> >> > >> Looks like you're registering one OR the other. >> > >> >> > >> Why don't you just do this from DT? >> > >> >> > >> No reason for this to be an MFD IMHO. >> > > >> > > >> > > okay, I will patch it back to SPI mode only. >> > >> > I don't think that's what Lee meant . The controller supports _both_ >> > modes , hence it would have the same compatible string. You just need to >> > extract the mode of operation from the DT. >> >> HiSilicon attempted to upstream something similar, only their >> controller provided NAND and NOR functionality. They used different >> compatible strings to differentiate between the varying >> technologies. >> >> They too tried to use MFD as a means to select between them (which was >> also NACKed). Not sure what they ended up doing, but the original >> submission and (half of) the conversation can be found at [0]. Some >> more of the thread continues at [1]. >> >> Hope that helps. >> >> [0] https://groups.google.com/forum/#!topic/fa.linux.kernel/F6i9o8sfOIw >> [1] https://marc.info/?l=devicetree&m=147669165104431&w=2 > > > Hi Marek, > > By Jones's comments: > -------------------------------------------------------------------------- >> From: Shunquan Lin >> >> This patch adds driver support for HiSilicon Flash Memory >> Controller(FMC). HiSilicon FMC is a multi-functions device which >> supports SPI Nor flash controller, SPI nand Flash controller and >> parallel nand flash controller. > > MFDs are for devices which span multiple subsystems. And we do! One of the subdrivers will live under drivers/spi/, the other under drivers/mtd/... > > Please submit this to MTD. > > _https://marc.info/?l=devicetree&m=147376842210229&w=2_ > ------------------------------------------------------------------------------------------------- > > > I will patch RPC-IF back to SPI mode according to previous patches: I still don't see why you want to do this... > ----------------------------------------------------------------------- > On 2/12/19 3:22 PM, Mark Brown wrote: >> The patch >> >> spi: Add Renesas R-Car Gen3 RPC-IF SPI controller driver >> >> has been applied to the spi tree at >> >> https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git >> >> All being well this means that it will be integrated into the linux-next >> tree (usually sometime in the next 24 hours) and sent to Linus during >> the next merge window (or sooner if it is a bug fix), however if >> problems are discovered then the patch may be dropped or reverted. >> >> You may get further e-mails resulting from automated or manual testing >> and review of the tree, please engage with people reporting problems and >> send followup patches addressing any issues that are reported if needed. >> >> If any updates are required or you are submitting further changes they >> should be sent as incremental updates against current git, existing >> patches will not be replaced. >> >> Please add any relevant lists and maintainers to the CCs when replying >> to this mail. > ------------------------------------------------------------------------ > > agreed it ? No, I don't agree. [...] > thanks & best regards, > Mason MBR, Sergei