Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1925740pxb; Mon, 8 Mar 2021 09:32:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJx47UBvfIJ0YQXYW1d3uwDiZHFdjAllFiotWRmUwqs5LrJm84WTo7avB7FKACdxmLGVFZVi X-Received: by 2002:a05:6402:1cc1:: with SMTP id ds1mr19393030edb.135.1615224766354; Mon, 08 Mar 2021 09:32:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615224766; cv=none; d=google.com; s=arc-20160816; b=SMmmaUWuUYilo21DLBUTReIchT68rg036/LYhstMZbDUKlqNWJsNi6yYcO4tK7jBuV HTUGioE8yzKKSgLttKVZ0Zm2go2lDy8327Otgj+SBGeUCUGbQRAPZu9UIZFzGdd7gGi7 QVjB1pZBIk5Bd3cIln6PPLUTzluxThQdV6jqLstpkO2vXHcz7S+HL+wdYHTsy0gjqqTT VjrXRr13MRf7s2B2PgSa/LFG4mAt2ZOFYbNYM0qn8WpJqDFgBspJGf6+wkcaxdImCmnD zDJKyipaBA8NdAcfzSec/mDx9hUYtopPIxF5YDt4ymwxm+qaLI3GalG8U6RVZhQoFsa8 fSKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=GpREsgSTwcq19+cPP74hfnW6aIqIvYUcq82ps0QLSf4=; b=aNgUrA2B3rC/7FBa3JrdB1uGplIbPYyQ3NDV/3SIqb8FrKuTkWG4X9tGldB6uvFpw/ SmRQRh4QrKDqHOjLSmP7Yid5bIMi6Hh5McZigCLje6tSsDxL2ZWHEwdag1YX0liOCFeD taqbZq2Mpj7pO/zd4PHFcrHL7JnZDdEsnDpOFy83luiOwJDhaKwOZ9nU8BOIItTqqmV8 R12b5BGIvCWBgpd851/ckGMW1SspYoOSrt6TA/tMSCZXd7dhzEL+UP1plrkl0Bmtf+/i NpSoDF+aPRRM9tih0kq5u0bCxFzZfmUFu+XZMNO3hCz9sT6CCm5rbVGjcQFrObx3I1RR k+2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=wzYsypbj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a4si7036361ejy.263.2021.03.08.09.32.14; Mon, 08 Mar 2021 09:32:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=wzYsypbj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230481AbhCHR3R (ORCPT + 99 others); Mon, 8 Mar 2021 12:29:17 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:48448 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231189AbhCHR2v (ORCPT ); Mon, 8 Mar 2021 12:28:51 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 128HSU7Y052912; Mon, 8 Mar 2021 11:28:30 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1615224510; bh=GpREsgSTwcq19+cPP74hfnW6aIqIvYUcq82ps0QLSf4=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=wzYsypbj9q4hdeszGRtzVDAhJTopc3GXt32elNGdD/YfryPLY2DlNgJH8B4cqEfee +8waHOMmIBRhxW1BqELVynVeYt/eB5VTVJ1bsiEd282QuYOI7fN25W51W5+W1jCdxK rGYLlJFwkXjvav6Oj6spS8miwYvMzG7CiTgQX/yQ= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 128HSTHt107616 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 8 Mar 2021 11:28:29 -0600 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 8 Mar 2021 11:28:28 -0600 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.1979.3 via Frontend Transport; Mon, 8 Mar 2021 11:28:29 -0600 Received: from [10.250.234.120] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 128HSQob124335; Mon, 8 Mar 2021 11:28:27 -0600 Subject: Re: [PATCH v2 4/5] mtd: spi-nor: Move Software Write Protection logic out of the core To: Tudor Ambarus , , CC: , , , References: <20210306095002.22983-1-tudor.ambarus@microchip.com> <20210306095002.22983-5-tudor.ambarus@microchip.com> From: Vignesh Raghavendra Message-ID: <963232a4-9100-ebca-927c-7f5a1e947fbe@ti.com> Date: Mon, 8 Mar 2021 22:58:25 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210306095002.22983-5-tudor.ambarus@microchip.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/6/21 3:20 PM, Tudor Ambarus wrote: > It makes the core file a bit smaller and provides better separation > between the Software Write Protection features and the core logic. > All the next generic software write protection features (e.g. Individual > Block Protection) will reside in swp.c. > > Signed-off-by: Tudor Ambarus > --- > drivers/mtd/spi-nor/Makefile | 2 +- > drivers/mtd/spi-nor/core.c | 407 +--------------------------------- > drivers/mtd/spi-nor/core.h | 4 + > drivers/mtd/spi-nor/swp.c | 419 +++++++++++++++++++++++++++++++++++ Hmmm, name swp.c does not seem intuitive to me. How about expanding it a bit: soft-wr-protect.c or software-write-protect.c ? Regards Vignesh