From patchwork Mon Dec 9 14:08:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 181030 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp4399115ile; Mon, 9 Dec 2019 06:12:06 -0800 (PST) X-Google-Smtp-Source: APXvYqxDyCTH8dD+ca3p5oKgENOApXMKoS7IsXgBAgfkzmRYHj4uXm0BkhoP4PmYhJf/XCHQQCj8 X-Received: by 2002:a9d:4c12:: with SMTP id l18mr21713848otf.140.1575900723973; Mon, 09 Dec 2019 06:12:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575900723; cv=none; d=google.com; s=arc-20160816; b=bDoUqiw+mbRhNpOOFsTESCS4nPVMiCz9ABMOEHx0gExTJ7fnsdQ1rxkG45efIFyEhG zWix8CJFS2J/R2Tw3G8E/qE68Bqon9c6+6326njnUhnhBFynJABz1PArxrN4EovSazJS bHGhgkZ6/fmbzPYRuiMuM5Q/eROTCayoMrooS5nBJQKKtr6Gnf6uENg0yKT6dIPaCaVK pCGvauFuyfO1PjZo1CVFLRozZC/csgBXxgnWrYoAftug6GhNh2KxnGIuaGS46M9q1FM5 5x+faYUuy5zT0tjzgZg/53Rvs8QcoFrr0b02SdDeTOaDAr7BHEJ/0xjHsLFe387wjhTV yxYw== 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=xEbLeRMXnJIO3NswPIdYACcnzTAnteoUjh3bNAxlGUM=; b=ZczCWJLOeOWbbbNRtDc3LbcvRWwqAGVlGWO0zU1HOUcohWrwgFmZuFOPIPrpFj1baj //6sJT5InK2LoMN8cuHwudG76Lw+maMB+7Z6zyIWHJZPwnPOalN9gM6OSym1NW8FV9OD zlMhlNmcuPm43ZpnWwVwqLjSu7m4K2Q/2FGLHzb4NOzsIEbYiZJ1KPjpFMfW2oM/h+8b LyrSdyyqO/SIIBYtTv5aeqMxP4eUebVFnG53DQLAfqNSs2uim5ZJmT1q2XzEmDKU2Vvq I0DzxVamQQQiCp6CyJP1FBE8MUepdxe5j2dLDrpqFbHizGYbrOWMPrkmbVPLm8VCZ10V u2Sw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 14si12013794oie.181.2019.12.09.06.12.03; Mon, 09 Dec 2019 06:12:03 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727894AbfLIOMC (ORCPT + 27 others); Mon, 9 Dec 2019 09:12:02 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:7198 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727572AbfLIOLy (ORCPT ); Mon, 9 Dec 2019 09:11:54 -0500 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id B5CB71F1F54802B1C6EE; Mon, 9 Dec 2019 22:11:49 +0800 (CST) Received: from localhost.localdomain (10.69.192.58) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.439.0; Mon, 9 Dec 2019 22:11:41 +0800 From: John Garry To: , , CC: , , , , , , , John Garry Subject: [PATCH v2 1/3] mtd: spi-nor: hisi-sfc: Try to provide some clarity on which SFC we are Date: Mon, 9 Dec 2019 22:08:08 +0800 Message-ID: <1575900490-74467-2-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1575900490-74467-1-git-send-email-john.garry@huawei.com> References: <1575900490-74467-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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 a1258216f89d..6db964bf3b0e 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. */