Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1197169rwb; Thu, 10 Nov 2022 12:35:41 -0800 (PST) X-Google-Smtp-Source: AMsMyM4xGWEbsxhnYtxMTiD3mUpfcrOweT2Jf7CVZcyk1xzd6ScqcDJCejLEYGQ8kNLW2PSV9v2c X-Received: by 2002:a17:90a:f3c5:b0:213:d08f:a455 with SMTP id ha5-20020a17090af3c500b00213d08fa455mr1977697pjb.130.1668112541702; Thu, 10 Nov 2022 12:35:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668112541; cv=none; d=google.com; s=arc-20160816; b=djA8ZkkjTKrJFNvHpkJXuxBmWk8E+5D0wJ21FfRC4E0accXARiw6M5uJjUsCGN7kNt hlyrrFyjIr1tEfl9pvWwAFT8LVAlv3Ceqz+6VH0POQqgcFSENsFe0MXJ4y1h0CLymgTF h/N9vZRne7E+QFgXLolA+m2n1KiqnZ9kjeRWL8yMgNNvHOvcpMbrxf80Wr96NF8dWodJ ZiRo1TLuhzmhFs7OpyvZUFCu6biEu/5sPOM2A+zpsu0aq90pfFPI8be9DakSlQF5vhhd Tm9WjaEZnHRQjup4RUf4raSpyYtW94POSyfhDxM26OVZqm0Jbug3itHEXvSODrHOPUQx EhgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date; bh=M5AKRZ/o4ECUpafrpyHqp5f4Yv08mmk0zuRAYfyn30M=; b=Y26TvkutpJR9jV1bkXq5AtB8QAd02bxP47cC/lce5gh6E106M1ouzGYm7QnWGVyriJ OAJB2sRDvLChW6gPtq6HMjiqcasUtICQ9MeRwjVEg3RpJcFsQCqgqalGvmctrtwZHA54 Apxebq6NuEt3H+wHhzJD7y2WcK3PeBMWeE0vVow29/y1MnwznREIsO8fpLDrUUYFJxpU mkn+n2IQNHYipvgI9giUfVDcgVQ9pZ0gviEVA13gheV1AIZsVve6nTK+Lbb39YdXj5Uj W7HA56fkPzt7ZwDDM+8OhxZ7wcoR1R05lOlgOseLDonLBkKPx8Dcyug2kgSAQeG5fPGY fVOw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p3-20020a170902e74300b00186fb907e27si236681plf.552.2022.11.10.12.35.22; Thu, 10 Nov 2022 12:35:41 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230505AbiKJTo6 convert rfc822-to-8bit (ORCPT + 92 others); Thu, 10 Nov 2022 14:44:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229567AbiKJTo4 (ORCPT ); Thu, 10 Nov 2022 14:44:56 -0500 Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C1E81572F; Thu, 10 Nov 2022 11:44:55 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 5757261B8B4D; Thu, 10 Nov 2022 20:44:54 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id nGPtvOKwhp3V; Thu, 10 Nov 2022 20:44:54 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 0B4A66226249; Thu, 10 Nov 2022 20:44:54 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id yQrYoj6s4SOb; Thu, 10 Nov 2022 20:44:53 +0100 (CET) Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lithops.sigma-star.at (Postfix) with ESMTP id DC57B61B8B4D; Thu, 10 Nov 2022 20:44:53 +0100 (CET) Date: Thu, 10 Nov 2022 20:44:53 +0100 (CET) From: Richard Weinberger To: Daniel Golle Cc: Jens Axboe , Miquel Raynal , Vignesh Raghavendra , Davidlohr Bueso , Matthew Wilcox , "Martin K. Petersen" , Chaitanya Kulkarni , Ming Lei , linux-block , linux-kernel , linux-mtd , linux-efi Message-ID: <1691046252.219046.1668109493753.JavaMail.zimbra@nod.at> In-Reply-To: References: Subject: Re: [PATCH v4 4/5] mtd_blkdevs: add option to enable scanning for partitions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Originating-IP: [195.201.40.130] X-Mailer: Zimbra 8.8.12_GA_3807 (ZimbraWebClient - FF97 (Linux)/8.8.12_GA_3809) Thread-Topic: mtd_blkdevs: add option to enable scanning for partitions Thread-Index: qesM6z2xTDVbTIYuNhENmoux2tHhiA== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, T_SPF_PERMERROR 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 ----- Ursprüngliche Mail ----- > Von: "Daniel Golle" > + > + if (!IS_ENABLED(CONFIG_MTD_BLOCK_PARTITIONS) || mtd_type_is_nand(new->mtd)) > + gd->flags |= GENHD_FL_NO_PART; I know that NAND should not get used with mtdblock because lack of wearleveling and in general too many writes. But what exactly is the rationale to deny part scanning for NAND? Thanks, //richard