From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E326C4332F for ; Thu, 22 Dec 2022 19:33:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229764AbiLVTdV (ORCPT ); Thu, 22 Dec 2022 14:33:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235747AbiLVTc7 (ORCPT ); Thu, 22 Dec 2022 14:32:59 -0500 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9238623306 for ; Thu, 22 Dec 2022 11:32:56 -0800 (PST) Received: from local by fudo.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1p8RJE-0004Um-1f; Thu, 22 Dec 2022 20:32:52 +0100 Date: Thu, 22 Dec 2022 19:32:46 +0000 From: Daniel Golle To: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Vignesh Raghavendra , Miquel Raynal , Richard Weinberger Subject: [PATCH 0/2] ubi: wire up parent device Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Wire up device parents of UBI devices and ubiblock devices (UBI volume devices are already correctly wired to their parent UBI device). This makes more sense than having UBI devices free-standing in /sys/devices/virtual/ubi/ without any connection to their parent MTD device, and ubiblock devices in /sys/devices/virtual/block/ which would be better hosted by the UBI volume device they belong to. The purpose of these changes is to allow downstream tools to more easily identify UBI<->hardware relationship, and potentially also improve power management and scheduling performance in future. Daniel Golle (2): mtd: ubi: wire-up parent MTD device mtd: ubi: block: wire-up device parent drivers/mtd/ubi/block.c | 2 +- drivers/mtd/ubi/build.c | 1 + drivers/mtd/ubi/kapi.c | 1 + include/linux/mtd/ubi.h | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) base-commit: e45fb347b630ee76482fe938ba76cf8eab811290 -- 2.39.0