From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8515886350 for ; Wed, 15 Jan 2025 19:22:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736968952; cv=none; b=mUj6em0jtgtMW3E2oUaoxf10zSvPJF7+EnPU289wsd3InIOjK9wmn29qv31Ha1S6AwEDx3JP4zsZYOlO711iccWyfYMv+9KqSQxBjZ1ubbQBVTt7ZFEfqZLoKM7Cbur9m8PmwVdxgS71zno/lB77rAYhp/7BuB4ok+qgmxVTxGQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736968952; c=relaxed/simple; bh=uvlL0mfj44cUCiwG8WLJrEnhaM51ApZOW7dKY/vuFiA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=FXRgUbEZBG1H72k/isJY68cUS4jAz7dXjkbpqQi7Wdw5eHoQ6C9D1cpwfj3QYceWSAWrBWOpsyZKai9tqaAAZfPCZxCVx5hGtkYSoPn7zCZlgr0Q3++CJql7F6qveqMqq0yjZ9kWWnLzHZRz9D3d562FX5hwm0d8sFP8sLQ5u4M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=Ip1BlMl9; arc=none smtp.client-ip=217.70.183.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="Ip1BlMl9" Received: by mail.gandi.net (Postfix) with ESMTPSA id 72E1720003; Wed, 15 Jan 2025 19:22:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1736968947; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uvlL0mfj44cUCiwG8WLJrEnhaM51ApZOW7dKY/vuFiA=; b=Ip1BlMl93pKCALrSZKHRK3E2cThEoM684DtxClKerUnAHE+XALAA4E2QB0oMKrk/srchnw SJACqMQ8SlerS5Kd+G3O5/P45LVKnwrNDo1y0dGnMb+LEMnqepEj9cNaqlHat/BXjDU/tP wDExJThqs0CvG1AoQXpOb0CDhjX+RyXeoAEFcHqL7xUtC5Bh/X1rfPZ3SqnXmD9BC9Ah6r ap8ZH1MoMHQXnwlAB0GScmJZaG66htE4tpUppAUx/nrlA022aIhLqJPRxwrBodwjIzaiKC 72MBi2xsYuISHHTtsIMZSsPNPbyG7C+vTGixVFj08ptr7fvShIjyoRcooioWfg== From: Miquel Raynal To: "Usyskin, Alexander" Cc: Richard Weinberger , Vignesh Raghavendra , "De Marchi, Lucas" , Thomas =?utf-8?Q?Hellstr=C3=B6m?= , "Vivi, Rodrigo" , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Jani Nikula , Joonas Lahtinen , Tvrtko Ursulin , "Poosa, Karthik" , "Abliyev, Reuven" , "Weil, Oren jer" , "linux-mtd@lists.infradead.org" , "dri-devel@lists.freedesktop.org" , "intel-gfx@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v4 01/11] mtd: core: always create master device In-Reply-To: (Alexander Usyskin's message of "Tue, 14 Jan 2025 14:05:40 +0000") References: <20250101153925.865703-1-alexander.usyskin@intel.com> <20250101153925.865703-2-alexander.usyskin@intel.com> <87sepwp6d9.fsf@bootlin.com> User-Agent: mu4e 1.12.7; emacs 29.4 Date: Wed, 15 Jan 2025 20:22:25 +0100 Message-ID: <871px3lw5q.fsf@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com Hi, On 14/01/2025 at 14:05:40 GMT, "Usyskin, Alexander" wrote: >> > > Create master device without partition when >> > > CONFIG_MTD_PARTITIONED_MASTER flag is unset. >> > >> > I don't think you took into consideration my remarks regarding the fact >> > that you would break userspace. If you enable the master, you no longer >> > have the same device numbering in userspace. I know people should not >> > care about these numbers, but in practice they do. >> > >> > If I'm wrong, please be a little more verbose about why :) >> > >> > Thanks, >> > Miqu=C3=A8l >>=20 >> Hi Miquel >>=20 >> I've created separate class (mtd_master) for such devices. >> Uses-space looking for mtd device continues to receive same number of >> /dev/mtdX devices. >> There will be additional /dev/mtd_masterX devices, but this is unavoidab= le, I >> suppose. >> Maybe we can rename it to something that not in /dev/mtd* expression (e.= g. >> mastermtdX), >> if it helps. >>=20 > > Miquel, is this good enough or requires rewrite? This is an important change that requires attention, and at the time I have not been able to dedicate enough to this patch. Also, if the other mtd maintainers want to help, I'll be enthousiastic about it :) Thanks, Miqu=C3=A8l