From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DCAE7C43603 for ; Wed, 4 Dec 2019 12:15:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id ADE2820803 for ; Wed, 4 Dec 2019 12:15:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575461748; bh=JaNvL1PVVxVUfEADd4KJxm1C6/MkK1KevA8UyH2U5zM=; h=From:To:Cc:Subject:In-Reply-To:Date:List-ID:From; b=JMBGMlWs1uXfsydj3P1QF4qyIMRaFp+bOoQ7K+FIQrhN2qDHEVBY3v24wRC+L/+1C qxi5F/ln7Krqis21yOrkgQiHeggFBxJ2J+wLhwz0fbIKmHFvDX1Gvx9jTW21kPAmZV SKsiLKSe5l2cuDMy/UIYYhKD+WJBBqEsTaV8WfnY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727783AbfLDMPs (ORCPT ); Wed, 4 Dec 2019 07:15:48 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:52604 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727445AbfLDMPq (ORCPT ); Wed, 4 Dec 2019 07:15:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=RC+7zXRqYsH/Z5uX+H5Hl29YUyIBfWV7tx5prRznMfA=; b=hj2ibWPZpWE1 IcPuy11+8LfYQb6ykvMY99RVVIThhNll6CCNgiEB16q0NhUXwQhDvvo0ljO5Y3ZfoFdUST0jX7U6q 8KBP7oZKHLs0jiOuM6xvncERo0IM++DASspd4yK094sfbGdzKKSDdXEwDA3m4GsnQs0hBG5eC2pYA F/cek=; Received: from fw-tnat-cam3.arm.com ([217.140.106.51] helo=fitzroy.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1icTZF-0000Ag-7X; Wed, 04 Dec 2019 12:15:41 +0000 Received: by fitzroy.sirena.org.uk (Postfix, from userid 1000) id EC183D003B4; Wed, 4 Dec 2019 12:15:40 +0000 (GMT) From: Mark Brown To: Huanpeng Xin Cc: baolin.wang7@gmail.com, Baolin Wang , broonie@kernel.org, huanpeng.xin@unisoc.com, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, Mark Brown , orsonzhai@gmail.com, zhang.lyra@gmail.com Subject: Applied "spi: sprd: Fix the incorrect SPI register" to the spi tree In-Reply-To: Message-Id: X-Patchwork-Hint: ignore Date: Wed, 4 Dec 2019 12:15:40 +0000 (GMT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch spi: sprd: Fix the incorrect SPI register has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.5 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark >From 5e9c5236b7b86779b53b762f7e66240c3f18314b Mon Sep 17 00:00:00 2001 From: Huanpeng Xin Date: Wed, 4 Dec 2019 15:13:59 +0800 Subject: [PATCH] spi: sprd: Fix the incorrect SPI register The original code used an incorrect SPI register to initialize the SPI controller in sprd_spi_init_hw(), thus fix it. Fixes: e7d973a31c24 ("spi: sprd: Add SPI driver for Spreadtrum SC9860") Signed-off-by: Huanpeng Xin Signed-off-by: Baolin Wang Link: https://lore.kernel.org/r/b4f7f89ec0fdc595335687bfbd9f962213bc4a1d.1575443510.git.baolin.wang7@gmail.com Signed-off-by: Mark Brown --- drivers/spi/spi-sprd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-sprd.c b/drivers/spi/spi-sprd.c index 2ee1feb41681..6678f1cbc566 100644 --- a/drivers/spi/spi-sprd.c +++ b/drivers/spi/spi-sprd.c @@ -678,7 +678,7 @@ static int sprd_spi_init_hw(struct sprd_spi *ss, struct spi_transfer *t) if (d->unit != SPI_DELAY_UNIT_SCK) return -EINVAL; - val = readl_relaxed(ss->base + SPRD_SPI_CTL7); + val = readl_relaxed(ss->base + SPRD_SPI_CTL0); val &= ~(SPRD_SPI_SCK_REV | SPRD_SPI_NG_TX | SPRD_SPI_NG_RX); /* Set default chip selection, clock phase and clock polarity */ val |= ss->hw_mode & SPI_CPHA ? SPRD_SPI_NG_RX : SPRD_SPI_NG_TX; -- 2.20.1