Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp943227yba; Thu, 18 Apr 2019 12:14:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqyW3lvEMooWIK7W4oHCtCh7RrQq3UkuONOxhI6cbSOQ9LZv+UeMIp4UYKtPlScp907SheZe X-Received: by 2002:a63:c944:: with SMTP id y4mr87305094pgg.257.1555614846005; Thu, 18 Apr 2019 12:14:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555614845; cv=none; d=google.com; s=arc-20160816; b=CniXsI3PZV+qf0d46aP+q07tpt/B2tjw2yUWvTeBkwrjPYW64OyAI3eGN8/Rxrf/pu r7LTJ5peCLEh9t+aUjjiJZcnAFYl93MxpgcM/B4qtwtpjJePdjexi2UXL4/xO98cRT9i yFQxSrtrAqF5d6Bi+1pqg0gAoaj+s2cGNUgHIulWvdEW4QgBwc0SZJ8eHkQefqvM1V6G qDevlpoU3MSpphXW8CFhnt6tOpkdlH15WJtIcBieHs0f5nF37ic+qovh5VuVzKVfl4ij oYAdM+VjVgMnxnFJidXRMmN4agbB2aFWkoMbHD1pzJJ1wBYYDxtTcqgAa85EX2HHWWru zfmA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=RHHGOHwosqs6I3QLp8i+LTp60aneQYuKN4bfTcUI3/I=; b=BxFjQDYTug1yXiogD4vD0N7aUh3OWN6mQRj97WtAmuJQ0EJABAqTsUkLl/mKggq6yL S7rilJQ5St6NXc3CGmY2XM++5HhK9hyt8WgBUrPmRToxjLomrKx2bKyriFik6pXHE/oj LxGgod5ECufaK3QgQt+BDLWMz8TCuVeM2vcdQpNsV2sDGqEuNR1wCrxcKPyutW4CxmmZ ot1LRiiKSq5DJn8WLmwlP+EtgXIZwvTrtEWOveHW2RAZW+mAzUZQUh40l4In+m4DPUwk wl2QnFqZVtQ1xdxs5VM8KBEwxsE3R4V84KIKvDsv3UmtRvkknl/QK+f73xFI4HYbz0zV /Juw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ovjE5Vd8; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r11si2502663pgm.353.2019.04.18.12.13.48; Thu, 18 Apr 2019 12:14:05 -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=@gmail.com header.s=20161025 header.b=ovjE5Vd8; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389759AbfDRTLU (ORCPT + 99 others); Thu, 18 Apr 2019 15:11:20 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:40398 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725747AbfDRTLU (ORCPT ); Thu, 18 Apr 2019 15:11:20 -0400 Received: by mail-lj1-f193.google.com with SMTP id q66so2819220ljq.7; Thu, 18 Apr 2019 12:11:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RHHGOHwosqs6I3QLp8i+LTp60aneQYuKN4bfTcUI3/I=; b=ovjE5Vd8ZSu6+B43E9Fbj+IMHu17dAnzXDECOxyNOcpzONlA7kswMXlwG5uyOlSwij PEarH3rsNx8Ku3yByZ6o2I2M1DIohaNPNwykzdgTCUsDMlwmb2RN6wYDHTNCC0GqKMr5 j4d7OLud/4d9NgNrV3fhByj6eln0QWgSVHwPE9K1mNFrbZ2facA4jfgQs+9miyrUaW7K FodjWqe4kolh/KxPnZWJcon3brI6Fd9K6YkcXMDCwmW6ZwlVrjUmSR8E0Eluykb4Sqnr pS0xxEU0stGIiNGMlZnfDvJ/A7TEpEZADiN5t7ewB5C2vQCubfPtAN8mvSJwHQFDjl8I TY6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RHHGOHwosqs6I3QLp8i+LTp60aneQYuKN4bfTcUI3/I=; b=BsJOGD5q56WNcD80QKa8c5x9naEQ5D6M0EjG1PwMWqtDJU90mk7sVrqMlebuK228PU pFipLBH4njXcgKO7RUwJ4UigqgUwuVmTy9HliOzkWJTL/Jr0022/CFKY8gxOUZJBeUZz uEUcuXu4vPNPQ2glUTe9ml64FffXrdDAyS5Qmlu4LyyStsiYnvr9ykAIqCfag9e3qYsD LH0wrJTWUwo5V5BwWyitWJJy5zPE3CMvrxx0Pyv83yC75YC1xLT3PBUMrvI7LRmMA8ml yzugzx73mfjnOWFLDGNof6Kp23gnb1rt0rx5pYFKYRHfXUsx3c5Qp52ns/Nuc0n2xB0u B08w== X-Gm-Message-State: APjAAAU0pespGy1/8ZxJ4cQIfKimaBfZXJp2fwHMsGETAze8mhnpmQ1w sxe0vWJGDCQJYjhicszqEIU= X-Received: by 2002:a2e:894e:: with SMTP id b14mr11242504ljk.158.1555614678148; Thu, 18 Apr 2019 12:11:18 -0700 (PDT) Received: from z50.localnet (109241207190.gdansk.vectranet.pl. [109.241.207.190]) by smtp.gmail.com with ESMTPSA id j28sm655344lfh.81.2019.04.18.12.11.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Apr 2019 12:11:17 -0700 (PDT) From: Janusz Krzysztofik To: Miquel Raynal Cc: Aaro Koskinen , Tony Lindgren , Boris Brezillon , Richard Weinberger , David Woodhouse , Brian Norris , Marek Vasut , linux-arm-kernel@lists.infradead.org, linux-mtd@lists.infradead.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] mtd: rawnand: ams-delta: Drop board specific partition info Date: Thu, 18 Apr 2019 21:11:14 +0200 Message-ID: <5022351.qh9aoUC7DE@z50> In-Reply-To: <20190418084929.7ac2cb67@xps13> References: <20190319223718.26131-1-jmkrzyszt@gmail.com> <3638685.4RdFRBT8kZ@z50> <20190418084929.7ac2cb67@xps13> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Miqu=E8l, I'm wondering if we could register up a custom mtd partition parser from th= e=20 board file. It could return a pointer to a statically defined table. Then= we=20 could add its name to the list of parsers the driver is going to try if the= =20 board is enabled in .config. Would that be acceptable from the MTD subsystem point of view? Thanks, Janusz On Thursday, April 18, 2019 8:49:29 AM CEST Miquel Raynal wrote: > Hi Janusz, >=20 > Janusz Krzysztofik wrote on Thu, 18 Apr 2019 > 01:09:59 +0200: >=20 > > Hi Aaro, Tony, > >=20 > > On Wednesday, April 17, 2019 11:40:10 AM CEST Miquel Raynal wrote: > > > Hi Janusz, > > >=20 > > > Janusz Krzysztofik wrote on Sun, 24 Mar 2019 > > > 23:33:44 +0100: > > > =20 > > > > 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. > > > >=20 > > > > Drop the partition info and use MTD partition parser with default l= ist > > > > of parser names instead. For the OF parser to work correctly, pass > > > > device of_node to mtd. > > > >=20 > > > > Amstrad Delta users should append the following partition info to=20 their > > > > kernel command line, possibly by embedding it in CONFIG_CMDLINE: > > > >=20 > > > > mtdparts=3Dams-delta-nand:3584k(Kernel),256k(u-boot),256k(u- boot_params),\ > > > > 256k(Amstrad_LDR),27m(File_system),768k(PBL_reserved). > > > >=20 > > > > For their convenience, CONFIG_MTD_CMDLINE_PARTS symbol is selected > > > > automatically from that board Kconfig if this NAND driver is also > > > > selected. > > > >=20 > > > > Signed-off-by: Janusz Krzysztofik > > > > Cc: Tony Lindgren > > > > --- =20 > > >=20 > > > FYI I am okay with the change but I am waiting for acks before applyi= ng > > > it. =20 > >=20 > > May we have an ack from you? > >=20 > > If still not convinced with my clarifications, I can add a comment to h= elp=20 text=20 > > in Kconfig, either squashed or in a follow up patch, on the requirement= of=20 > > appending mtdparts parameter to command line. What do you think? >=20 > In the same patch I guess that would be fine. >=20 > Thanks, > Miqu=E8l >=20