Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp2553583img; Sun, 24 Mar 2019 12:00:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzDVnSE/exJwlqkfnmxqSCjaQGD0GGndeyzUI7FfdfMNVXXQyUyVUujdHfUZSl2/A/SZ27T X-Received: by 2002:a17:902:2ba8:: with SMTP id l37mr21500799plb.17.1553454044276; Sun, 24 Mar 2019 12:00:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553454044; cv=none; d=google.com; s=arc-20160816; b=PymSNXaynb9Uo2+qzBBLT42kN/tsmlfNIY5y58TPMJBKyx/6ys1Jc3b9Tp/0MA1paz jJJZGBdmI9qpoBGVBQyokLJ2PRzPyaJ+vL0wJhEJBrPFaqLorMrneXQrrMfKrzbhtP72 tbbAZrVMYgKEwitDHIDELLHGrqnt6AJZ6lvnilRG2xytSPen4AaY94Wyy8kzQZrGWnPA vnqyjeXrycQaD5+yMJA/Ae0yLKCIc4oN3Pi/pSAvIdeT+N5UZfFmw4stBESldaLBn2EH RzfctXKsIHmBibUqY+YD6/rlt2QvBIxj+LTUPfleeKb+gk26s+dWB2pNVbl4EPh8NHeH W0Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=L02AFnKW1dIA8by39HgvCDn88W3Fcb0vkIo7M5lsMIQ=; b=icsKIMFHEOWJB5Fgr7cCBhxxH8co5Jr+DcDu9htz5Hrhwo91XxAIakCV2GCKollVHh k2iPvLKSJMwsPKLO3QFBcCn9+5LdmTCVYtIMMi1yqRrhl+eAlJ2yiuSNSS/l/mWAztpU SWnyQfcEOVyoh1lM0tODxUYispDOdyV3ziHyyR0dnZ2PsP/yAZfbqXTonH6sMJISMRD3 fTC1cpQhcwviq7KMhRHMaAcZutJZic7Xd9+ycRw9HG9w/hA0DYz+oRy1hsgFdDk/QSYT pIHuc4gbcjfKyNWXnJpIU17UlttjGKjlDu6Ble3dEGR+C0MHhOMLc0Q5Xy27Pri2DFYu QXYw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si12621787plj.313.2019.03.24.12.00.27; Sun, 24 Mar 2019 12:00:44 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728882AbfCXS7g (ORCPT + 99 others); Sun, 24 Mar 2019 14:59:36 -0400 Received: from emh06.mail.saunalahti.fi ([62.142.5.116]:44192 "EHLO emh06.mail.saunalahti.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727192AbfCXS7g (ORCPT ); Sun, 24 Mar 2019 14:59:36 -0400 Received: from darkstar.musicnaut.iki.fi (85-76-115-194-nat.elisa-mobile.fi [85.76.115.194]) by emh06.mail.saunalahti.fi (Postfix) with ESMTP id AFB6930034; Sun, 24 Mar 2019 20:59:32 +0200 (EET) Date: Sun, 24 Mar 2019 20:59:32 +0200 From: Aaro Koskinen To: Janusz Krzysztofik Cc: Boris Brezillon , Miquel Raynal , Richard Weinberger , David Woodhouse , Brian Norris , Marek Vasut , Tony Lindgren , linux-mtd@lists.infradead.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mtd: rawnand: ams-delta: Drop board specific partition info Message-ID: <20190324185932.GA24594@darkstar.musicnaut.iki.fi> References: <20190319223718.26131-1-jmkrzyszt@gmail.com> <20190320011630.GB7872@darkstar.musicnaut.iki.fi> <2631901.52Nzq63B5o@z50> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2631901.52Nzq63B5o@z50> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Sun, Mar 24, 2019 at 05:48:22PM +0100, Janusz Krzysztofik wrote: > Hi Aaro, > > Thanks for your review. > > On Wednesday, March 20, 2019 2:16:30 AM CET Aaro Koskinen wrote: > > On Tue, Mar 19, 2019 at 11:37:18PM +0100, Janusz Krzysztofik wrote: > > > After recent modifications, only a hardcoded partition info makes > > > the driver device specific. Other than that, the driver uses GPIO > > > exclusively and can be used on any hardware. > > > > > > Drop the partition info and use MTD partition parser with default > > > list of partition types instead. > > > > > > Amstrad Delta users should append the followig partition info to their > > ^^^^^^^^ > > Should be "following". > > > > > kernel command line, possibly by embedding it in CONFIG_CMDLINE: > > > mtdparts=ams-delta-nand:3584k(Kernel),256k(u-boot),256k(u-boot_params),\ > > > 256k(Amstrad_LDR),27m(File_system),768k(PBL_reserved). For their > > > convenience, select CONFIG_MTD_CMDLINE_PARTS symbol from that board > > > Kconfig automatically if this NAND driver is also selected. > > > > > > Signed-off-by: Janusz Krzysztofik > > > Cc: Tony Lindgren > > > > Could we move the fixed partition setup to the board file > > instead? Otherwise this kind of change is not really nice for the users, > > as it will likely break existing setups. The default partition layout > > should remain the same. > > I'm wondering if it would be acceptable to pass partition info from a .dts > file. I think that would be a better, more modern approach than adding a new > header under include/linux/platform_data. Hmm, I thought there was some generic way to define partitions without adding any new headers. But if that is not possible, then I guess your CMDLINE proposal is the preferred one.. A.