Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4755428rwb; Tue, 8 Aug 2023 13:21:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFRYSzBi1iG0GLCAtnV5QhRBW36f8EsCRy4u8tQxaDjef7qu/BW13yo4aBDBlN8dBgJA9yv X-Received: by 2002:a17:907:7615:b0:99b:d1d8:d747 with SMTP id jx21-20020a170907761500b0099bd1d8d747mr575287ejc.27.1691526064886; Tue, 08 Aug 2023 13:21:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691526064; cv=none; d=google.com; s=arc-20160816; b=oDu6d8tK8R5MTxUBdWXIyeoOclqXI+BUtMsZLeeQ6avddyJk258VGPe4xtxnztxSJh V6fnNodt5iN1KBc7HEnrEGn/4UlWwzQt+/f/8lf3Kzetb+9QR6MpJxeIouyc8KLLh+rh YLu/2lHpzwEfJsxws8fIEjG6cy268z364/+erfKOAtL6/Mz1Z89bqt91wGTWLEjoMKoN NWvemju8FIHPaD05FHckycpv+2CCSGsaiWqR2a/zYP0AP4mg576Cow7xpzL4m04hGA4B 64tTe9sbvIk3xgLGblsiUpvnXU+BOljkxI6iXHcSOrmB1MQR4zINoqVOfLyAuU3KTje0 xDZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Klg6b7rTmA3/2CEHhPBL9kFFomypTM/SqIrAORONAmA=; fh=ADdcXHC5QiXb/3QNGvtQQRS3QZQTJ6r2IF2wHhMK8X4=; b=zl8HkWR1JvUvPF1NTA7ETPT4qTSz2LNMazlWC5gbverq880LhWSFyvJSocgj6Rz8LC qAChW+MC2Ba5pjxzyewoPP46KvPJn0tEWAzZukIjkpfzq1kWEFbIdqL4OKkPJTEDOeoF 7KRaSBHQBTkq3W+jG3KoQ4Ua+G/yC1VHvfrI/2ikCI5McPb1eh3Sw9RV0wQjhrfc5W4A ru/Xp90j4D8J3WcVTPLAqpkdkz9vcbgjmjfdT25VLrOsNRrfAlrASOQgT9Cgx0RKpTcy 4C8n0WeLm9H9uOLShHO8/psoo8htntcyRoVqPzWO+D18XF3bG8M5xaNry2of2hgUagKu oIvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aSCd+qmD; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v23-20020a1709062f1700b00993fe9ca8cfsi7453677eji.766.2023.08.08.13.20.40; Tue, 08 Aug 2023 13:21:04 -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=@linaro.org header.s=google header.b=aSCd+qmD; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235228AbjHHSBo (ORCPT + 99 others); Tue, 8 Aug 2023 14:01:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231202AbjHHSBN (ORCPT ); Tue, 8 Aug 2023 14:01:13 -0400 Received: from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com [IPv6:2607:f8b0:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E02B8125A7 for ; Tue, 8 Aug 2023 09:28:05 -0700 (PDT) Received: by mail-ot1-x32f.google.com with SMTP id 46e09a7af769-6bcf2fd5d69so2287950a34.1 for ; Tue, 08 Aug 2023 09:28:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691512047; x=1692116847; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Klg6b7rTmA3/2CEHhPBL9kFFomypTM/SqIrAORONAmA=; b=aSCd+qmDR+iqLjSsbcpR0i+1cat5I/c/QurT8nyWGf6ZUPQKbrpPPAOe/TjQ/dpuJd nty+7k87HH79TwC3ikZDqIm9FSvMuIiAPXwdtJoAZKh8GVOWJG+60jkCreR2uUT4x8Yw zEJF5XyismnDKmqAGY4Y8doOmLtuIv8EbZHGbASqPe6VQpZhbLeoskCmaLN2CES8AjeC UF4AsC5CSfMIvJzoUa7NudbnjqszA/1pEFEjr7rWV7AUXe9hoVFuh/MKIMu0cdlJvBtd HxvKCKdnKIXSWkYeHO6zzbJLNOUeF7YEhG9LqDna382HTQ4E3MKuKu+GXK0GdJyMBOCL E5qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691512047; x=1692116847; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Klg6b7rTmA3/2CEHhPBL9kFFomypTM/SqIrAORONAmA=; b=ADLVFtFt8M64lsdmDPhSelI5Ii0msD7Amb0Sn5cRSl9V5Pc720FgfgQZuy7iKfGM8w aKWX5ZXUNA91QcabgTbg7NsCES/Bz528/pGr0UCeRMi0tip7OBfwxdmbWLxj4g2tTHw5 hmbQsiSUi1CKQGqBm38miHS7ih2NpmP7kmwReQVtSDjSw1E7uD/gev0PnUkENVM3MjNX ZYKpSSpFk9scN3mjOiknHdeRQJ/wXyO7ehVHXbwUqsSSZSIxv0wdkJ6wSyX0lN6zLDmZ XPtG9UXrt/oWDYGbWZFEZoS6AwPRwg31pbk3YgKh34CdOceP8b7zX2ofcU6/5b7g6ngg PSVQ== X-Gm-Message-State: AOJu0YyAiD1nQcZ7/+CJDUBYrLPMClpEyCuga/Tx48yaI4rqtpCSlu2X cmdxQNtb+Mel5qA9XUMVUtxO6p6QHkfhoWe9rjEU/W4o66xBWt5E3g4= X-Received: by 2002:a05:6358:419b:b0:134:ca8a:7486 with SMTP id w27-20020a056358419b00b00134ca8a7486mr11887238rwc.28.1691492428398; Tue, 08 Aug 2023 04:00:28 -0700 (PDT) MIME-Version: 1.0 References: <1ce5f56df546cec25ef741f381286f1d7c33d000.1689802933.git.daniel@makrotopia.org> In-Reply-To: From: Ulf Hansson Date: Tue, 8 Aug 2023 12:59:52 +0200 Message-ID: Subject: Re: [RFC PATCH 2/6] mmc: block: set fwnode of disk devices To: Daniel Golle Cc: Jens Axboe , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Dave Chinner , Matthew Wilcox , =?UTF-8?Q?Thomas_Wei=C3=9Fschuh?= , Jan Kara , Damien Le Moal , Ming Lei , 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00,DATE_IN_PAST_03_06, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 Tue, 8 Aug 2023 at 03:02, Daniel Golle wrote: > > Hi Ulf, > > thank you for reviewing and suggesting ways to improve this series! > > On Mon, Aug 07, 2023 at 03:48:31PM +0200, Ulf Hansson wrote: > > On Thu, 20 Jul 2023 at 00:02, Daniel Golle wrote: > > > > > > Set fwnode of disk devices to 'block', 'boot0' and 'boot1' subnodes of > > > the mmc-card. This is done in preparation for having the eMMC act as > > > NVMEM provider. > > > > Sorry, but I don't quite understand what you are trying to do here. > > Maybe you should re-order the patches in the series so it becomes > > clear why this is needed? > > > > Moreover, I don't see any DT docs being updated as a part of the > > series, which looks like it is needed too. That would also help to > > understand what you are proposing, I think. > > I've prepared a tree on Github which now also includes commits adding > dt-bindings for block devices and partitions, so they can be referenced > as nvmem-cells provider. > > The dt-schema addition supposedly explaining this specific patch: > > https://github.com/dangowrt/linux/commit/b399a758f0e1c444ae9443dc80902a30de54af09 > > The whole tree: > > https://github.com/dangowrt/linux/commits/for-nvmem-next Thanks for sharing. However, allow people to review, I suggest you post a new version with the updated DT bindings included. The point is, we really need confirmation from the DT maintainers - otherwise this is simply a no go. > > Most comments have been addressed, however, I still depend on using > either a class_interface *or* adding calls to add/remove the NVMEM > representation of a block device to block/genhd.c as well as > block/partitions/core.c, simply because afaik there isn't any better > way for in-kernel users of block devices to be notified about the > creation or removal of a block device. Okay, so that needs further discussions then. I will try to chim in. [...] Kind regards Uffe