Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp20948pxb; Thu, 21 Apr 2022 15:56:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxznS0Mub7nmDeK/9xxOa2iZPyUlojRdQORxZTxB3WrxIfX8ukUjYLa1jZoaSb2tZ+s/78P X-Received: by 2002:a17:902:9a8c:b0:15a:a21:b52a with SMTP id w12-20020a1709029a8c00b0015a0a21b52amr1471197plp.86.1650581784808; Thu, 21 Apr 2022 15:56:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650581784; cv=none; d=google.com; s=arc-20160816; b=yO9CnrHTcBddoIwO9LTVNHDdnxqX67zkR5hHTDY/t3SdJvkGAlw5tQ7+Rkpidkr8Ov Q8rzc+ywwZrYAqIG3AvpsrHAbh5iaQSRajqfWzseNB6lsXfkZeGbZWVoxwGuUs22Pdz1 Q5l/HkHBgx8YUxSZQJn8cpltEYSnydQ2sTOW72O3igd7+/6jd0HpmtHPpJLN1AV56eTw JIncOuWhqS7Dhg4kJWUbpJCFYNnfgSB9ZhbyS/ADwhD1cXSm50rISkFpjS3yvSsxQVA2 PeYg9uiRJDIc2lk1bGc9wAb+MuV+UHjvrWTQvaWN1lv3s6vXqKl6A8mqZKem9Rxo2lsB D14g== 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=kcICsLaU+27agvzkGVtj5FT1OOdR/R0i+L5NDYQzseQ=; b=niwwzNAbUWSjKB1M+pu3PfpEo8oYyN/r+DGx21k7ZaxS0C9YYaZjaxWYxhUuOKg/cB y6sgHh9wJYY0hUl+GdiF9soHLo3VDMu6VyA0dNcObbAD4kPkZXxbbfG4Cs4pIzKJ5f0o PC+tnFY/8xGYE89U2g5fmEuOEwk0WUr7nXJV2AcIOGLivpHm5wtCUki87uz5qCEFI+Iy yvvzdZoVDBaXI7rzIQ9u54mIjyg9b8s9s0/KwvwtcNrbYY156rKZMRn3rKJl3i/h3quD CADtjiSKnIzvgMPplhP7w5IzQaIkPXmJ6JK4dajp5t8R9q6Z3NUgUQNlIPZYLUo85pyv jS1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=JRHJ2H64; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q7-20020a170902eb8700b00158d44e6e27si6335211plg.142.2022.04.21.15.55.21; Thu, 21 Apr 2022 15:56:24 -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=@ti.com header.s=ti-com-17Q1 header.b=JRHJ2H64; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346724AbiDTGaN (ORCPT + 99 others); Wed, 20 Apr 2022 02:30:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346486AbiDTGaM (ORCPT ); Wed, 20 Apr 2022 02:30:12 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C590393F4 for ; Tue, 19 Apr 2022 23:27:27 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 23K6RH2I087766; Wed, 20 Apr 2022 01:27:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1650436037; bh=kcICsLaU+27agvzkGVtj5FT1OOdR/R0i+L5NDYQzseQ=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=JRHJ2H64Cz2nMTXtzuo1+EophJa+7WY3QNeL21RFjCECmoQ7PnQAjxTaAa3Y7nn6v 7H94EDNPZr9vvaQcbYOssiGUjWeRilKzHs3W1rCR+nEe6VXGiqwOG585E+enGxjKR6 dEY2ZeqHPHVK8tuxXLLtUcRWKHp/bKQKj91ca44w= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 23K6RHrQ044932 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 20 Apr 2022 01:27:17 -0500 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Wed, 20 Apr 2022 01:27:17 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Wed, 20 Apr 2022 01:27:17 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 23K6RGaK073295; Wed, 20 Apr 2022 01:27:16 -0500 Date: Wed, 20 Apr 2022 11:57:16 +0530 From: Pratyush Yadav To: Michael Walle CC: Tudor Ambarus , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , , Subject: Re: [PATCH] mtd: spi-nor: move SECT_4K_PMC special handling Message-ID: <20220420062716.zhs3y4koirjpshqw@ti.com> References: <20220418112650.2791459-1-michael@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20220418112650.2791459-1-michael@walle.cc> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 18/04/22 01:26PM, Michael Walle wrote: > The SECT_4K_PMC flag will set a device specific opcode for the 4k sector > erase. Instead of handling it in the core, we can move it to a > late_init(). In that late init, loop over all erase types, look for the > 4k size and replace the opcode. > > Signed-off-by: Michael Walle > --- > Please have a closer look here. This is only compile time tested. Also > I didn't see much reason to reorder the flags. Patch looks okay to me but I would like someone to test it on the flash before I apply it. -- Regards, Pratyush Yadav Texas Instruments Inc.