Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp77927img; Tue, 19 Mar 2019 18:19:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqzKET9ZtWzk3qetG1Uo3/U0BXyn8cRB9ed+bSF827uTycBRZDa4mU811M4pI992Hj3e/JnJ X-Received: by 2002:a65:4147:: with SMTP id x7mr4703203pgp.54.1553044777720; Tue, 19 Mar 2019 18:19:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553044777; cv=none; d=google.com; s=arc-20160816; b=l53spLORw3hz62RsrJ7KlxzRfdFrVFqWDnY+ilslGcKS4VAQkQiYxSXFqe15eXIjVW OlExSM1T8RqcKdfDVxUIFFpV9NToxTlIaGXW9UsJEHQuQ55y+CIKd9rg4YMpgOz2c9g3 GUos8Nh315TVkIG9GCEsroxyugresK8TimeKXr3V9sT5n2oDjPvX3VXAL3wvnj1QRAet Bd2EgLhiWM0gU7ThoIvPbtWptvym81N86e/Fu3DJADP26roymQDZ4hEmMCL/FxWKad7h uOpdFu/3cl82OAIiLbbKX84w9lpWaslketSElWF/K/BTjbXtZQmiMC2EEZShAq2ViOOj G84g== 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=1D3esaphlnBrlA87E97LnsKOXw5aIF+iaYPNfIeUn2Q=; b=xpTKeL4e9SkzszvNiKhQIJP61QfvgoInrkwg6bsuVtvO40uQP4TSB5ycXOYoM9cjmT lbk0KqSr9WFSQPHFZeBqqzMU/TwCA6EPpyR/OKlRp/p/AR/1ZXzGOHg1Hqhq8FixMhsw 35fuhPZKYRf/jwuZUIoHKQUcZ5CxrD4ddM+INDnPBwSLhPoXj3VUMVT2LdUvOoENRTTV JXVLooFNkvbCJP7xgvqG2fKLAC/UP5+wup/mRodoEjqLEVj5OaOSMXD8/nASIxBKocfP tOkunYPKtWdg/fm/rRGN4XCbgzcFQLeeqrHuPNX67Ztvqay+H3HMk26CnGUJRgJp6boL QWLg== 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 i62si486075pli.218.2019.03.19.18.19.22; Tue, 19 Mar 2019 18:19:37 -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 S1727480AbfCTBQe (ORCPT + 99 others); Tue, 19 Mar 2019 21:16:34 -0400 Received: from emh02.mail.saunalahti.fi ([62.142.5.108]:59132 "EHLO emh02.mail.saunalahti.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726891AbfCTBQe (ORCPT ); Tue, 19 Mar 2019 21:16:34 -0400 Received: from darkstar.musicnaut.iki.fi (85-76-21-58-nat.elisa-mobile.fi [85.76.21.58]) by emh02.mail.saunalahti.fi (Postfix) with ESMTP id 976642001D; Wed, 20 Mar 2019 03:16:30 +0200 (EET) Date: Wed, 20 Mar 2019 03:16:30 +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: <20190320011630.GB7872@darkstar.musicnaut.iki.fi> References: <20190319223718.26131-1-jmkrzyszt@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190319223718.26131-1-jmkrzyszt@gmail.com> 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 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. A.