Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10754359rwp; Fri, 21 Jul 2023 04:36:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlHPkPMA4HYbiYc1xS+cXjAUXRbRSnzEdGshZK2QNhUc1nm63fZCDTBKFqaE8Dyp252uRecd X-Received: by 2002:a05:6830:1b77:b0:6b9:37e2:76fc with SMTP id d23-20020a0568301b7700b006b937e276fcmr1677573ote.30.1689939418211; Fri, 21 Jul 2023 04:36:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689939418; cv=none; d=google.com; s=arc-20160816; b=oDuyHD2GnBvWItyz8rX9JZ1O7vGW8/e4XL0CuiRiT8CUOQWxk2oGZ0zIDJHE2TsEha /K9RfeAbQqhx+uZDDuHxnCcEGqdWflT+UsEeeYbPHUpzZhMCSuobq3Sa1at8gGdkIwgD eAKIA+/JoJ9tUw2QooTSiiVtopwZYPKon/NYeNg+UCjp931s3f5U59R+812RnJEzWzvS JWHevBHOXOMvrFH2jQaEM6ci6EGzO+g7TCJ9l8jWHWEJrRCmuyVg7db5cpdWsyEYsrIz TvHugzqFD5jrFhA5qHt0XnGnrOuXvZGoJnstEsYDmTEFNEwLuHSvjyHg2V+HtsukXFqw 02Rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=RWsSzpaiPJ9fKOwqebJn1yPkcGvs24i/Iu0knZyOGt8=; fh=mqdnYP3qo+Sl7p/0SzIdPzbUl1RHvyY9/nJ6WxCJU9A=; b=l3hiMWw+lZtYu4O/ngO20SAk0QhiuHytr7FAW/hXLZ0p1Mj3QWWh52uxolYInR47WQ VA8lIjeFLub2ty2Le9A06ozR8kC7J339aSiWibJLAgap69fO/vkbpFfXLXuU/+F4Y/8Y 6Z5zSg0+6tSR7hYVPw0DKyV013Za0d7k9dhKUhzT3ywIxaLntQcQmRP/shV8VWrq7aD4 SJjnpmh6odMIlPu8srwM49XfG836fSaI6Ko1Xg47HkfaOJNzuyO8wnKMMmxWxU44W13/ 0QooX4QXVoEpVXN7zbiZsR0SjkEvjpJgwMPpFlb6Ej5170Hi5BikVn98bcCYQaS0BFI4 Zgjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FQ9XT91I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v71-20020a63894a000000b00560132689ccsi2752051pgd.349.2023.07.21.04.36.41; Fri, 21 Jul 2023 04:36:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FQ9XT91I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231777AbjGULLi (ORCPT + 99 others); Fri, 21 Jul 2023 07:11:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229591AbjGULLN (ORCPT ); Fri, 21 Jul 2023 07:11:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31DF23A92; Fri, 21 Jul 2023 04:10:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 73246618E5; Fri, 21 Jul 2023 11:10:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29F39C433C8; Fri, 21 Jul 2023 11:10:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1689937811; bh=myaPf1oyhAil/xlKJLpDYHkXcaR6WPBFmD+B4wkU+kg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FQ9XT91I62CH2cogbMjmf8eDfG6SRipgBPNykRuxTWkN75Ln4SmW914w52lOO540A 8n4Q3BDqaLkQV+sXhj3uZJ3Hr2RZtUq+ud0mjkGmfQVOEZSnH/YBlebfT7DZXwYVvA H8hWIss+8QUC2XC5OJJk32DECJHj2l0W4VGXAn/s= Date: Fri, 21 Jul 2023 13:10:09 +0200 From: Greg Kroah-Hartman To: Ming Lei Cc: Daniel Golle , Jens Axboe , Ulf Hansson , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Dave Chinner , Matthew Wilcox , Thomas =?iso-8859-1?Q?Wei=DFschuh?= , Jan Kara , Damien Le Moal , Min Li , Christian Loehle , Adrian Hunter , Hannes Reinecke , Jack Wang , Florian Fainelli , Yeqi Fu , Avri Altman , Hans de Goede , Ye Bin , =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-mtd@lists.infradead.org Subject: Re: [RFC PATCH 0/6] nvmem: add block device NVMEM provider Message-ID: <2023072118-flyable-aspect-060f@gregkh> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 21, 2023 at 04:32:49PM +0800, Ming Lei wrote: > On Wed, Jul 19, 2023 at 11:01:14PM +0100, Daniel Golle wrote: > > On embedded devices using an eMMC it is common that one or more (hw/sw) > > partitions on the eMMC are used to store MAC addresses and Wi-Fi > > calibration EEPROM data. > > > > Implement an NVMEM provider backed by block devices as typically the > > NVMEM framework is used to have kernel drivers read and use binary data > > from EEPROMs, efuses, flash memory (MTD), ... > > > > In order to be able to reference hardware partitions on an eMMC, add code > > to bind each hardware partition to a specific firmware subnode. > > > > This series is meant to open the discussion on how exactly the device tree > > schema for block devices and partitions may look like, and even if using > > the block layer to back the NVMEM device is at all the way to go -- to me > > it seemed to be a good solution because it will be reuable e.g. for NVMe. > > Just wondering why you don't use request_firmware() in drivers which consume > the data, then the logic can be moved out of kernel, and you needn't to deal > with device tree & block device. > > Or Android doesn't support udev and initrd? It does support initrd, but not really udev last I looked. But it does allow request_firmware() to be called at boot time, so yes, finding out why that isn't used here would be good. thanks, greg k-h