From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751476AbdFEL1V (ORCPT ); Mon, 5 Jun 2017 07:27:21 -0400 Received: from b.ns.miles-group.at ([95.130.255.144]:44723 "EHLO radon.swed.at" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751290AbdFEL1U (ORCPT ); Mon, 5 Jun 2017 07:27:20 -0400 Subject: Re: [PATCH 2/5] mtd: block2mtd: Add support for specifying MTD write size and subpage shift To: =?UTF-8?Q?Pali_Roh=c3=a1r?= References: <1496418222-23483-1-git-send-email-pali.rohar@gmail.com> <1496418222-23483-3-git-send-email-pali.rohar@gmail.com> <20170605112145.GE14675@pali> <20170605112508.GF14675@pali> Cc: David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Artem Bityutskiy , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org From: Richard Weinberger Message-ID: <79f3b92f-5be4-8d46-985d-0b38cffd6032@nod.at> Date: Mon, 5 Jun 2017 13:27:18 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <20170605112508.GF14675@pali> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Pali, Am 05.06.2017 um 13:25 schrieb Pali Rohár: > On Monday 05 June 2017 13:23:22 Richard Weinberger wrote: >> Pali, >> >> Am 05.06.2017 um 13:21 schrieb Pali Rohár: >>> On Friday 02 June 2017 18:13:02 Richard Weinberger wrote: >>>> Pali, >>>> >>>> Am 02.06.2017 um 17:43 schrieb Pali Rohár: >>>>> It is needed for creating emulated devices suitable for using in UBI layer >>>>> and with UBIFS. >>>> >>>> Why? >>> >>> ubifs depends on write size of nand. And without those parameters as >>> specified in cover letter I'm unable to mount N900 rootfs image exported >>> via block2mtd. ubifs reject such image. >> >> Hmm, so you render block2mtd into a semi-NAND chip? :) > > Probably you can call it like that. But it is still MTD device... This is what I meant in my other mail. You add NAND specific properties but still denote it as MTD_RAM/ROM. I'm not sure whether this is a good idea. Thanks, //richard