From patchwork Mon Dec 9 14:08:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 11279423 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 508C3112B for ; Mon, 9 Dec 2019 14:11:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2F08D20828 for ; Mon, 9 Dec 2019 14:11:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727682AbfLIOLw (ORCPT ); Mon, 9 Dec 2019 09:11:52 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:7200 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727388AbfLIOLw (ORCPT ); Mon, 9 Dec 2019 09:11:52 -0500 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id C17D8952A78FAB84FF53; 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 0/3] HiSilicon v3xx SFC driver Date: Mon, 9 Dec 2019 22:08:07 +0800 Message-ID: <1575900490-74467-1-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 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 This patchset introduces support for the HiSilicon SFC V3XX driver. Whilst the kernel tree already includes support for a "HiSilicon SFC driver", that is for different HW. Indeed, as mentioned in patch #1, the naming for that driver could be better, as it should support more memory technologies than SPI NOR (as I have been told), and it is actually known internally as FMC. As such, maybe "hisi-fmc" would have been better, but we can't change that now. I used V3XX in this driver name, as that is the unique versioning for this HW. As for the driver itself, it is quite simple. Only ACPI firmware is supported, and we assume m25p80 compatible SPI NOR part will be used. DMA is not supported, and we just use polling mode for operation completion notification. The driver uses the SPI MEM OPs. Changes from v1: - Add ACPI kconfig dependency - Fix up header comment style - Change macros naming style - Try to enforce aligned accesses in hisi_sfc_v3xx_adjust_op_size() John Garry (3): mtd: spi-nor: hisi-sfc: Try to provide some clarity on which SFC we are spi: Add HiSilicon v3xx SPI NOR flash controller driver MAINTAINERS: Add a maintainer for the HiSilicon v3xx SFC driver MAINTAINERS | 6 + drivers/mtd/spi-nor/Kconfig | 4 +- drivers/mtd/spi-nor/hisi-sfc.c | 2 +- drivers/spi/Kconfig | 9 + drivers/spi/Makefile | 1 + drivers/spi/spi-hisi-sfc-v3xx.c | 284 ++++++++++++++++++++++++++++++++ 6 files changed, 303 insertions(+), 3 deletions(-) create mode 100644 drivers/spi/spi-hisi-sfc-v3xx.c