From patchwork Mon Nov 4 16:51:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 178438 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp1734037ilf; Mon, 4 Nov 2019 08:54:55 -0800 (PST) X-Google-Smtp-Source: APXvYqzlNr34iEC4qWnNQBuZS7VO3VWHPAY+4htLYyRdqeb1ecEHlehBXNN2aZEssm7YJ6Z4X/qU X-Received: by 2002:a50:de0b:: with SMTP id z11mr2841163edk.33.1572886495254; Mon, 04 Nov 2019 08:54:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572886495; cv=none; d=google.com; s=arc-20160816; b=fR7fdBrTpZFaWBsi4f7IMn5IJL7SjvySn1NPrEjEtxxS/ebOGB0ZFz5j9Pv4FEoAET sEhVpnWsYKekWMMm0QVdQIvsEyKb/tdNdu7uOZOs0iArJqlT3F5e6tm3oTuDdwWyoJTq UcvXYStuI4DWB/a4/YXbtDFWQcj3CHkx45mXt4UfX9tmSma0nLfkNOmLrl73Bunf7Vxx 3B2eCREm9Vl0JSvwr87NkOcXRfQlvJJ9+q3z0gHREcgg4FIqilSHTEzqJFqEM3D9BnIf SoG680v84qcxL8jzfRDQRb3nHsHU+cEbXXJOni94uUu5bOXhOvD4is4twQ5HWTNSi8zY 5yuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=8vADe8LRBWMc44q0Y25lDCuw/wSovLvffuP4eC/U7jY=; b=MNJWAjcSwVf/c9JqvW9CbYdGfJXGmKGsjilA/y1lVBbBFjH1IePn4lR77kJP4ui3bc h9wY6zM78lk3HRjO5giruASQi/r05M+QzoAFxXzu6oZQ/mSrQoFb8lfbATb30ACQaTy8 nmURElt/vYhO0u4uaZhDiua3yko/RIdm4bNvK/0hVT0Kg3GnIUchZxwGKBC294O8d4Jk xlH5wnUB6c6v1MPLVxKhliFVd0Vgjz8vv/UNcL0jfGXOtY5wMOs2vv0TbL2bhjx+zrMU U63WTgQWEAvBot/qGgfnRDI/cqqKxWXUT5TtDjVIUWpGV0rf1IG7wLMym6D2IRQdbyrw 5m5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-spi-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ck4si4643200ejb.29.2019.11.04.08.54.55; Mon, 04 Nov 2019 08:54:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-spi-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-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-spi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728709AbfKDQyy (ORCPT + 2 others); Mon, 4 Nov 2019 11:54:54 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:45774 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728482AbfKDQyy (ORCPT ); Mon, 4 Nov 2019 11:54:54 -0500 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 333B7E8E6EA2833A00DB; Tue, 5 Nov 2019 00:54:52 +0800 (CST) Received: from localhost.localdomain (10.69.192.58) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.439.0; Tue, 5 Nov 2019 00:54:42 +0800 From: John Garry To: , , CC: , , , , , , John Garry Subject: [PATCH 1/3] mtd: spi-nor: hisi-sfc: Try to provide some clarity on which SFC we are Date: Tue, 5 Nov 2019 00:51:35 +0800 Message-ID: <1572886297-45400-2-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1572886297-45400-1-git-send-email-john.garry@huawei.com> References: <1572886297-45400-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.69.192.58] X-CFilter-Loop: Reflected Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org The driver is for the HiSilicon FMC (Flash Memory Controller), which supports SPI NOR in addition other memory technologies, like SPI NAND. Indeed, the naming in the driver is a little inappropriate, especially considering that there is already another HiSilicon SPI NOR flash controller (which I believe the FMC is derived from). Since we now want to provide software support for this other HiSilicon controller, update code comments to at least try to make it clear that this driver is for the FMC. Signed-off-by: John Garry --- drivers/mtd/spi-nor/Kconfig | 4 ++-- drivers/mtd/spi-nor/hisi-sfc.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) -- 2.17.1 diff --git a/drivers/mtd/spi-nor/Kconfig b/drivers/mtd/spi-nor/Kconfig index f237fcdf7f86..c1eda67d1ad2 100644 --- a/drivers/mtd/spi-nor/Kconfig +++ b/drivers/mtd/spi-nor/Kconfig @@ -46,11 +46,11 @@ config SPI_CADENCE_QUADSPI Flash as an MTD device. config SPI_HISI_SFC - tristate "Hisilicon SPI-NOR Flash Controller(SFC)" + tristate "Hisilicon FMC SPI-NOR Flash Controller(SFC)" depends on ARCH_HISI || COMPILE_TEST depends on HAS_IOMEM help - This enables support for hisilicon SPI-NOR flash controller. + This enables support for HiSilicon FMC SPI-NOR flash controller. config SPI_MTK_QUADSPI tristate "MediaTek Quad SPI controller" diff --git a/drivers/mtd/spi-nor/hisi-sfc.c b/drivers/mtd/spi-nor/hisi-sfc.c index 6dac9dd8bf42..edc0c6164061 100644 --- a/drivers/mtd/spi-nor/hisi-sfc.c +++ b/drivers/mtd/spi-nor/hisi-sfc.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-or-later /* - * HiSilicon SPI Nor Flash Controller Driver + * HiSilicon FMC SPI-NOR flash controller driver * * Copyright (c) 2015-2016 HiSilicon Technologies Co., Ltd. */