Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3579817ybg; Mon, 28 Oct 2019 15:18:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQfAkyHf9CWTcu/nrmfpQ/8/vcuL2pX5JTibJQ33JQbdJZ0Yt8KDpPS8xESTDRY4rDkxau X-Received: by 2002:a17:906:4e87:: with SMTP id v7mr135377eju.169.1572301127654; Mon, 28 Oct 2019 15:18:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572301127; cv=none; d=google.com; s=arc-20160816; b=wCk9Qmb0rZIML73jBIcQA9CEH4L+JvppMI2rslVWwKyY+wBterF3oLjb+ZJrc5+M2E euAAZiSz2ktlHdUly3IMtnBNpiy5jcXl7x9an07Dz5IhKvOl8lBBfvc+KxyymUvaOpb5 rUjlZk29lKNa1AaO3nc/feC8Bib0041/TqW5QkMqcpJNTWSu08yI3GLE8UMdj2ezAI4b cjSxdw5rQ6US3wncWpL/b4Pquazc4dFnhSQdwbc9L9aONxKijL3hZJs3df3lMNdEqRIu jeER6CyZAZ17kDJD8xx87B0Caz6gDTmsFlFdRg6ZIzWIqojcd9uDboT0JS3K2Wf25Vdu lfyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=R+QKtFC3jrygwZy1nYF6f7iLys6guWgOzDl1t2ruXDI=; b=wg0D63mINOpXkmtp3B7G5TyK5Zi7RsH8FyiY449dPSzMqgVYrFobNaTZaLa/1eJTru TigwsBIRYwxvFPTi9GHV74VOxU2p1l5/cGxpQxfatGDekaqLoa6vD4FnVVSLxRX9ObFm 94B0EDrISKzgzjQ6uIVuG/mW3Vh2xSDJBOwKuPsebRfyD1UU0yXNjBD6WOVColhhdIZE 3doKeXhNujaYdSvQd/YdrRbjrFcRQ4XLqPCS6g9SSZijXTV3cml2u40EOan8TDM2i0jT 6YSiFgSUZEc3DzBAucfkq+3qrC61lrbYYp2WHWQAbz9wN0h0h8/szIR+BmVlVLepYtLJ J4rA== 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 h37si8143175eda.249.2019.10.28.15.18.24; Mon, 28 Oct 2019 15:18:47 -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; 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 S1733214AbfJ1UZP (ORCPT + 99 others); Mon, 28 Oct 2019 16:25:15 -0400 Received: from smtp09.smtpout.orange.fr ([80.12.242.131]:42647 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728903AbfJ1UZP (ORCPT ); Mon, 28 Oct 2019 16:25:15 -0400 Received: from belgarion ([90.55.204.252]) by mwinf5d17 with ME id K8RB2100G5TFNlm038RBT6; Mon, 28 Oct 2019 21:25:13 +0100 X-ME-Helo: belgarion X-ME-Auth: amFyem1pay5yb2JlcnRAb3JhbmdlLmZy X-ME-Date: Mon, 28 Oct 2019 21:25:13 +0100 X-ME-IP: 90.55.204.252 From: Robert Jarzmik To: Arnd Bergmann Cc: Daniel Mack , Haojian Zhuang , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Linus Walleij , Miquel Raynal , Richard Weinberger , David Woodhouse , Brian Norris , Marek Vasut , Vignesh Raghavendra , linux-mtd@lists.infradead.org Subject: Re: [PATCH 11/46] ARM: pxa: cmx270: use platform device for nand References: <20191018154052.1276506-1-arnd@arndb.de> <20191018154201.1276638-11-arnd@arndb.de> X-URL: http://belgarath.falguerolles.org/ Date: Mon, 28 Oct 2019 21:25:11 +0100 In-Reply-To: <20191018154201.1276638-11-arnd@arndb.de> (Arnd Bergmann's message of "Fri, 18 Oct 2019 17:41:26 +0200") Message-ID: <87r22wmxco.fsf@belgarion.home> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/26 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Arnd Bergmann writes: > The driver traditionally hardcodes the MMIO register address and > the GPIO numbers from data defined in platform header files. > > To make it indepdendent of that, use a memory resource for the > registers, and a gpio lookup table to replace the gpio numbers. > > Cc: Miquel Raynal > Cc: Richard Weinberger > Cc: David Woodhouse > Cc: Brian Norris > Cc: Marek Vasut > Cc: Vignesh Raghavendra > Cc: linux-mtd@lists.infradead.org > Signed-off-by: Arnd Bergmann Acked-by: Robert Jarzmik Cheers. -- Robert