Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4076354rwd; Tue, 23 May 2023 02:45:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6d8lGYN61JiBAfYd9HpnYv86iJmJIYe/tU0KgbtUbh2PclqGfpiFvvE62AU1psmqwlyYtO X-Received: by 2002:a05:6a21:3711:b0:103:d538:5ea6 with SMTP id yl17-20020a056a21371100b00103d5385ea6mr7324945pzb.48.1684835144257; Tue, 23 May 2023 02:45:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684835144; cv=none; d=google.com; s=arc-20160816; b=cPRkJgtA0MPPomgCFCZghrMuXxkdAkVwNQI7zy7P7Qt55CNvXXkH1JrOBaN11IwkmA rxPX5+4wsBns58+j1QPWhVmHRylUluOpLqh+gd71lR0dljcJVTQmfE1hYf3H9nuDKJu0 s2s29OvMDX6mWZT6nrloz7ZwwgmrwNIwoHyRjurBoSGOceEh/o3rqXs5uxv1r/iXRKNO BF/CwEejJsM34VzoU1ykQ9G1ru6cfbkaWRToZmP7kaZbxJOXtAwA3Y7jcS3dgrMiJBTe u6KLNfW9rq2/rPw48ePP+AzDvCn6QzurpnVqZXYPQMcPVuSohyq8EhycVpCemVZVrdOL 59hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=X9Qn8AqTo/sXg8jlDCBz4izis3PpHn0GZ9QSR6MiR2o=; b=TfznGri5iuNI3s7/znqTdFQERHxZFDIn+D98hKUwgpAayQZLf7MB6gndzhQGLYVUUs 5MA/Ms25yanNJ0+TbrkrZhvYm+UvsmiMNCkBfvE9XNqnBPgtCr6hoHJo6N0AEiiPxmW2 /oAd4Id3MqW5eHotWij1ng7D6Mv/gCHerPRtYbQZbzE4BgeqiFXMKrv0KFaSfqnKJX6/ auQUiSoNkqRg6zxi5+xAQh/ResPFzCBnFDz5Ged9Dl1mxhwh9rnhVUlAO507R3+j2szL plQT7dZHDpnN9GKHZuwigxM74ZzKcLL0OOUWvFKQuQeeNzcHVsUZqw8DOooLrFLalErV EY8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=nDLTR3vU; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y18-20020a63b512000000b005348a615896si6341306pge.113.2023.05.23.02.45.31; Tue, 23 May 2023 02:45:44 -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=@bootlin.com header.s=gm1 header.b=nDLTR3vU; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235277AbjEWJcs (ORCPT + 99 others); Tue, 23 May 2023 05:32:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232553AbjEWJcq (ORCPT ); Tue, 23 May 2023 05:32:46 -0400 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCE6494; Tue, 23 May 2023 02:32:44 -0700 (PDT) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 692C81BF208; Tue, 23 May 2023 09:32:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1684834363; 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=X9Qn8AqTo/sXg8jlDCBz4izis3PpHn0GZ9QSR6MiR2o=; b=nDLTR3vUfrTOLo3EM5MuxyetQ0aQdZJM+Ho1A4w2GfIirH7p4eH4c2TDG/3OEXvma9vKPC obbBH7nmZo1SiIwLKlU/noxPyVUnR1SsgXwrP5iRZCGDyCaU7xO/Vk7vWlbnLit0NmV8kV m02z5NwwFnxYe40ugcnK7LQmb5c+jb8MwLtLJfdcoV5cUZMb2QnzyuzEauviQLaTcLqw6m 2ya4z3/LN47E29vcHLvs21LUmJ/zNFLig5VUwQni0fOM8/6P94Hx0DxoYg7aecPc0wmLND 6dqjmGBlVobsq2X/SZb7YaYswGocBo6i9e+marQku6QRSGtv5Ak72OaDQiwxew== Date: Tue, 23 May 2023 11:32:36 +0200 From: Miquel Raynal To: Christoph Hellwig Cc: Jens Axboe , Greg Kroah-Hartman , "Rafael J. Wysocki" , Mike Snitzer , Joern Engel , Richard Weinberger , Vignesh Raghavendra , Pavel Machek , dm-devel@redhat.com, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-mtd@lists.infradead.org, linux-pm@vger.kernel.org Subject: Re: [PATCH 22/24] mtd: block2mtd: factor the early block device open logic into a helper Message-ID: <20230523113236.7003c303@xps-13> In-Reply-To: <20230523074535.249802-23-hch@lst.de> References: <20230523074535.249802-1-hch@lst.de> <20230523074535.249802-23-hch@lst.de> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 Hi Christoph, hch@lst.de wrote on Tue, 23 May 2023 09:45:33 +0200: > Simply add_device a bit by splitting out the cumbersome early boot logic I guess you meant "Simplify..." Otherwise lgtm so, Reviewed-by: Miquel Raynal > into a separate helper. >=20 > Signed-off-by: Christoph Hellwig > --- > drivers/mtd/devices/block2mtd.c | 53 +++++++++++++++++++-------------- > 1 file changed, 30 insertions(+), 23 deletions(-) >=20 Thanks, Miqu=C3=A8l