Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10642285rwp; Fri, 21 Jul 2023 02:33:01 -0700 (PDT) X-Google-Smtp-Source: APBJJlF7YmCi2wLBY74ezLI3G/v3y8Lvv5m+kpP2dJmXGCG32T4ybWec62IFvTZjunUVghQH9frG X-Received: by 2002:aa7:dad1:0:b0:51e:1837:d5be with SMTP id x17-20020aa7dad1000000b0051e1837d5bemr1184137eds.24.1689931981475; Fri, 21 Jul 2023 02:33:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689931981; cv=none; d=google.com; s=arc-20160816; b=dsYyOuM0Wf09Z20SWJomqJ+JFIY4L14oRrhHS0e/y4qY239jHo8nFXLzB2Z8a6H4A3 8A6gbg8l4I2yqENtg2jhhiiPqT5n/0SJUKWj3aOTd3eOX2tI76RmnI63uP8kwFDw/w+m EMJ23/eES3N7h0lqRn3TjxV1VnwrO5JQX2dxeyult/UHjrBq4116KGHHQxgdn8iyuIuC XigZZIT3a29Z1OSHSJiSTr2z1Jdf3ShLIk+FT3iiDOPYxQ/j8DoX59u9sMYjkxrVVSAV 6iO4jhkSHjU7YbQ9fmQ804Z7nxWuMrSirQnZIVuW5ZHi35xHCfZ6ELkgsi0tHk3B0GDP 2Xgw== 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=fPZO899bBzglVO4zclWOqlIFYd5xOLg0At2VcUxPogk=; fh=Kpcvx4Ztphix/7zSs6BXKMKYjIAc5CQNa7ZNlcKCnPk=; b=yp8JkFLnSoApvyIVbFN6f82nE+NacxR2IklttftzauGGIYPWmrKNdaB78oDlIgNxYO ZCzdhTyc1SSrzSAN0RQaACMif74hNdBbjSmfy9CYUe/9LaRZ3hJXCOFIZMD8JzToGJgy tmYZ8IiyGuQmGirnC8bBtN/INyXAg+DNFS+55IXckLQuGb0JhOrJS30850zklIaPTI0N UiPBlETuJmq4DOHA3S8/18mWJKrk0d6dWceIf90dCbdufJqgXEhKnxWKieSEOZJfVjJP 1O6RUdeW0fZtbhLEECqJpPIBubgbeDReWir7j+jxsat1mbNzLZvqeokOucoNDZ9fuAgL +X0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RLjgLYhk; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h11-20020aa7c60b000000b0051de4432748si2119738edq.478.2023.07.21.02.32.37; Fri, 21 Jul 2023 02:33:01 -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=@redhat.com header.s=mimecast20190719 header.b=RLjgLYhk; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231481AbjGUIeK (ORCPT + 99 others); Fri, 21 Jul 2023 04:34:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231339AbjGUIeD (ORCPT ); Fri, 21 Jul 2023 04:34:03 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE36B271E for ; Fri, 21 Jul 2023 01:33:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689928393; 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: in-reply-to:in-reply-to:references:references; bh=fPZO899bBzglVO4zclWOqlIFYd5xOLg0At2VcUxPogk=; b=RLjgLYhkkpnootBfZUZvXIfVfs72c6F7UYF7N1yOohRccCR+0Or3f5OrhCiBgHR8zq6Wny PHR5UnMppqAwPPqoXwZpjDH9JFNJUZr9f1jxPZsjX6g5PT0IarM05TVJex2MqUCJxoSn7/ wnJSCABgkJrUl4ZuUJyQ/HRo/X2Mr3E= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-124-60UcKEJKNB2-sqnmx_eKqQ-1; Fri, 21 Jul 2023 04:33:09 -0400 X-MC-Unique: 60UcKEJKNB2-sqnmx_eKqQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1AE1E80C4FD; Fri, 21 Jul 2023 08:33:08 +0000 (UTC) Received: from ovpn-8-26.pek2.redhat.com (ovpn-8-26.pek2.redhat.com [10.72.8.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DF24840C206F; Fri, 21 Jul 2023 08:32:54 +0000 (UTC) Date: Fri, 21 Jul 2023 16:32:49 +0800 From: Ming Lei To: Daniel Golle Cc: 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 , Greg Kroah-Hartman , =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-mtd@lists.infradead.org, ming.lei@redhat.com Subject: Re: [RFC PATCH 0/6] nvmem: add block device NVMEM provider Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 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_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 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? Thanks, Ming