Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp7688imm; Mon, 2 Jul 2018 06:49:53 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfcHRW9Rr/2tDofz6qc4eqev86C0DseCPsa/nQZ0btS6jA3ApIP89o29Oy0tZXDErpbMlSX X-Received: by 2002:a62:a6dd:: with SMTP id r90-v6mr25413125pfl.60.1530539393351; Mon, 02 Jul 2018 06:49:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530539393; cv=none; d=google.com; s=arc-20160816; b=0YYDML27Czss3lF/sv9CIsXkIL0o10sjQcNooOo9L+Ai+eXK+clYB+HGgg0pfnlDWS xd6680B5mxv7ds4L9Ik/wJdsV24BHHoSGEtGvQ/cFkZLpR0c1umgYsWfMy7FvivqH4yF t/5dotAEQX92//fU6CRwuqNM5R6a3raCgjXmQ8Ke8FGTSGF+d3GFq4UJQTOJ5ms+FqFN J0UHxi53elvl05L/UGDvktYnYa6/nBYjUa9dC+BODcqmSmCGa/7IraWunZ8Q1Q6zZRdj /P1Z9hdQJZ4+tpyUH5fUaz5DJZK4C0rXrlLA41NTQ+rTyoKWdEF193l7cUamBAaMEsyL EJsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=wtkf3Ac5mP825DrN6ghIWyLNMVzY4EjUjhDpzkRFs64=; b=TSOpeDA9JM/gyQqFqXF0rWBxYN5EqzpquXO/Jy76+kEwbBuhthkeZxBTzNbdTSn4P1 Bw5ZW25IwW/TUQzIUNoYw1xHRL3Iw6mnfQWCBXiGkVudkv4QQB1s5jm9vl2r5S8IOwgM eA5xAGQRO3Zm9GOTwSp5NAA730PY0mdK+DI/Q9XJ4AuJPY9qoPCT+8NnGUWpH3fBeV0d HIaUKR7C5sgcb2Ta24koSE2MbL/3tMiyqZVREftj36dO+pBRFgNpjU47OeRTpWblre3+ Fa8d2B7YIB0r/6HNUUMjxwN+oSRq6DDM+YA+cn2rqKVyNsvGYGbf7v+9KHHRJOQsRQfZ UQSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bpqMjcC5; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k185-v6si14510094pgd.15.2018.07.02.06.49.38; Mon, 02 Jul 2018 06:49:53 -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=@linaro.org header.s=google header.b=bpqMjcC5; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752634AbeGBNr5 (ORCPT + 99 others); Mon, 2 Jul 2018 09:47:57 -0400 Received: from mail-it0-f67.google.com ([209.85.214.67]:52349 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751493AbeGBNrz (ORCPT ); Mon, 2 Jul 2018 09:47:55 -0400 Received: by mail-it0-f67.google.com with SMTP id p4-v6so12206751itf.2 for ; Mon, 02 Jul 2018 06:47:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wtkf3Ac5mP825DrN6ghIWyLNMVzY4EjUjhDpzkRFs64=; b=bpqMjcC5ElRxni/Hvq2loo7pJA+1TNo/1xgNIzyXzW7c314XFEd9FFKd4tq/87QIrb fRJqZQK3+ZgoUmtiwRnEBmmkFKym/8i5atkg7huslEMvBISbme56/P6yynvHaHHTzscX 0Z7b01RrshvDp4AMhhAABi6o6YiZcvjMxkbss= 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; bh=wtkf3Ac5mP825DrN6ghIWyLNMVzY4EjUjhDpzkRFs64=; b=GUeYfTMB/LcRhzkGDrLu2LqgoNB5VX1zasULTGpTGhX/FZ9NQVJWQxYphq6qxkwt9c OCoj5j8YHqMa+WYUly4PHQ5lU2TsPja9uWQKzyehoLz3nyvHqyZUeYHjGoOyzLKo22FY L97JWfl+armMOEttv3zKYQxP7VoBu13YH4hAQGPa/uvR56CivkmCiFW/SIVzxiv3V6qA NblLHmXbOSlkPxP9WqcAvbe/6TeKgyllXi0Dkh3meR51sQGBvKKBpXsByO55OlD//Fym mSMF9aOAXArztVZPC2eVdF3UaoS3BHD39B1kO+FRmzHXNHMsGaj3oM+yaUtMWoFYZ2VU 4gpA== X-Gm-Message-State: APt69E2CnHPH1XRMlUgjQltTKFp3LjNGy7tkmp4JN/azRtSvtjAklgEK jPfQZyRPq2ZqMVMyu1FdiBRawa6hPb+dNWIzYKVVIA== X-Received: by 2002:a02:c007:: with SMTP id y7-v6mr3798228jai.87.1530539274572; Mon, 02 Jul 2018 06:47:54 -0700 (PDT) MIME-Version: 1.0 References: <1529563351-2241-1-git-send-email-naga.sureshkumar.relli@xilinx.com> <1529563351-2241-5-git-send-email-naga.sureshkumar.relli@xilinx.com> In-Reply-To: From: Linus Walleij Date: Mon, 2 Jul 2018 15:47:42 +0200 Message-ID: Subject: Re: [[LINUX PATCH v10] 4/4] mtd: rawnand: pl353: Add basic driver for arm pl353 smc nand interface To: nagasure@xilinx.com Cc: Boris Brezillon , Richard Weinberger , David Woodhouse , Brian Norris , Mark Vasut , Florian Fainelli , Markus Mayer , Roger Quadros , Ladislav Michl , ada@thorsis.com, honghui.zhang@mediatek.com, =?UTF-8?Q?Miqu=C3=A8l_Raynal?= , linux-mtd@lists.infradead.org, "linux-kernel@vger.kernel.org" , nagasureshkumarrelli@gmail.com, michals@xilinx.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 29, 2018 at 6:15 AM Naga Sureshkumar Relli wrote: > > On Thu, Jun 28, 2018 at 2:13 PM Naga Sureshkumar Relli wrote: > > > > > > > > This driver has the same problem as the other patches: > > > > use the ARM_AMBA primecell magic numbers detection, and the PrimeCell bus. > > > > > > Here the child is NAND controller and the parent is PL353 SMC, so do > > > we need to update this also as AMBA driver? > > > > No, sorry. The parent is spawning another device and you should indeed use a platform device > > for that. > > > Ok, you mean platform driver model is sufficient for both pl353-smc.c and pl353_nand.c drivers? > Or AMBA model is for pl353-smc and platform driver model is for pl353-nand? The latter, AMBA primecell bus for pl353-smc and platform device for the nand subdevice. Platform device is for anything that cannot be autodetected with e.g. magic hardare numbers, and the first device can be autodetected as a prime cell but not the subdevice. Yours, Linus Walleij