Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2687643ybg; Thu, 24 Oct 2019 13:34:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqw1L7Fkln3xcs2R0EUgHPb4P3AyH3qqL/Te9vOp7yCVv/+bnZftFhYTYfZYwmZ0oSoFTZSJ X-Received: by 2002:a17:906:2ada:: with SMTP id m26mr55311eje.87.1571949288752; Thu, 24 Oct 2019 13:34:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571949288; cv=none; d=google.com; s=arc-20160816; b=tjTFjSv+LYpZ/Zfgp5gpplZtefmJ+qSuMynMOy8sesQIjy/IErIh452nGmTi3F10Yt hbEXGfSMHzw9I7fMs1x32w2lOXkMDQj4Q4QuwpYeOrEy56CrnsO0htDTc9Dmiaz1tmOa cW0EjV1+Fm92kCO3tNXadYxYSseUEADVQZ0Tf7y2/adruxSw/iQDf/08I5xgr8Kr6zTr f+CtcH8EViM423tYBCzmJrZ7ijEQ1MyVvRfTHkL2wEDAgtckPL/GPeNyWxOfilGnBGa5 Cpc5fq7//EsBXOE7fqqFOn1HsCiaTqsTyy05Vd2kjEQ1p9ieCj5TjOnzl7gjMg4u61zF lN/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=/TNhjtP1Kcy+EJgFOYj3UUfxZxEzXOp6QnnkRwJuSII=; b=ojk1WkBLVhlH9uWUU2jsz47qFUQ8KJVx796RAk6QlXjIJRBIvAOmWZAQFw+nHMqVC0 UiC1rncSHqwhxDw28TX6GofZMbJl9hDZLnZR5oDio5aDi0k26JNnF0B+Ucm1ZUl3zyNz OJ5qN/fAFsDfbnu1aBw7OohT4FosB3obJbNtJOKMJpP2R72GQWtggOJTjpokAKlXNPya rVTFwBD8f7ZD2nbxy0SyBMF3W+NUfa2UREXrYxgxV38llvt4c5z+nb3zVx65DYUGsrT3 zKS3GFMEZtQeSkbvTGxJTUWXFxpfiJnno+84ZCDcGlAl4SVnkpVg9aeO+F4gpYTSU2f6 DrzQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c13si1487803edk.4.2019.10.24.13.34.24; Thu, 24 Oct 2019 13:34:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2408415AbfJXGE6 (ORCPT + 99 others); Thu, 24 Oct 2019 02:04:58 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:46462 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404173AbfJXGE6 (ORCPT ); Thu, 24 Oct 2019 02:04:58 -0400 Received: from localhost (unknown [IPv6:2a01:e0a:2c:6930:b93f:9fae:b276:a89a]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: bbrezillon) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id C115128F789; Thu, 24 Oct 2019 07:04:56 +0100 (BST) Date: Thu, 24 Oct 2019 08:04:52 +0200 From: Boris Brezillon To: Cc: , , , , , , , , , , , , , , , , Subject: Re: [PATCH v2 08/22] mtd: spi-nor: Rework write_enable/disable() Message-ID: <20191024080452.522b6447@collabora.com> In-Reply-To: <34fbb0d7-ee8f-a6d7-4a3e-d64f2f8555ff@microchip.com> References: <20190924074533.6618-1-tudor.ambarus@microchip.com> <20190924074533.6618-9-tudor.ambarus@microchip.com> <20191010092117.4c5018a8@dhcp-172-31-174-146.wireless.concordia.ca> <34fbb0d7-ee8f-a6d7-4a3e-d64f2f8555ff@microchip.com> Organization: Collabora X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 23 Oct 2019 23:39:31 +0000 wrote: > On 10/10/2019 10:21 AM, Boris Brezillon wrote: > > External E-Mail > > > > > > On Tue, 24 Sep 2019 07:46:18 +0000 > > wrote: > > > >> From: Tudor Ambarus > >> > >> static int write_enable(struct spi_nor *nor) > >> static int write_disable(struct spi_nor *nor) > >> become > >> static int spi_nor_write_enable(struct spi_nor *nor) > >> static int spi_nor_write_disable(struct spi_nor *nor) > >> > >> Check for errors after each call to them. Move them up in the > >> file as the first SPI NOR Register Operations, to avoid further > >> forward declarations. > > > > Same here, split that in 3 patches please. In order to keep the number of patch in this series small, I'd recommend doing all spi_nor_ prefixing in a patch, all function moves in another one and all error checking in a third patch, instead of splitting it per-function.