From patchwork Mon Mar 1 16:14:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 388709 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp3618035jap; Mon, 1 Mar 2021 11:10:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJwikNuMH5AHRYxkAcPdy+9ykUZv1Sz6QGCmXgcGuK/MABxOVhxXg48SkQiwEDX+jX0wPXum X-Received: by 2002:a50:ed83:: with SMTP id h3mr5764164edr.140.1614625817375; Mon, 01 Mar 2021 11:10:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614625817; cv=none; d=google.com; s=arc-20160816; b=QoVjP0ZVVU7DGsb/HS2Q17jYUoD8n/OgPsb7n7aHznwMIyDFn9y0A1bHwE3JHMF0uv dw4MehFRFuuX7mPmHEugaGWZU62lDmUJyHIJpmMbIsYQA6eKE9t4pyf7oe4548G0rh/c pSwxCFOq17xKw55sBjjk9k/FoadwdD5l8YTXizFQXULWKNu2G4Husc105VZhazjPkeHa pOCQ/F9mouxihjNSe9R0mOy5pYud5Qnll7C31GyjzNXBko2nvgQItw8nCwfg2XiOx+ff qvLxmPaf6niXUNwA1/5CE3Nibt9c6xKEMQBDrhO4Q9BWs577rSY8uQZ418caWrQiDOFY pglw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Y9awiHwO80qeQoiHXciHLWnl6uHWvOFBqUB0ux1R8Ng=; b=vSt81QuiaokPzRZx1QrRvDPtGyH+BE8d32UiZnCnOgyfPES/PMgEr8j+4f1GFXsgtE Ft0M/NaeZ+XrGUhAvAcCIp+nM1iFnIa2M8Ruh+OGdSnFWIUawb7APzjBfRAFS5F4j0Z1 iSDySsicbk6iNQsgM9Wa13WB1iaFyaOdCXqim9ljVVTg7qwsw7VoURDV8IrdnBOMtAwj WKrQaYJgRKzpLKDFdoLvDG1MgZ4fYxjjjmrIzVoU/Wyr6X48nMZtkatNNXnyMNOZBGuG WPxwgEEalWxIUT116OPg9T+JI0ohYV11XXUUOqKimuw+wpRRzPV6htkq0lZ5aCmg0Qr3 UKYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AK0YB99X; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z17si12086638ejc.207.2021.03.01.11.10.17; Mon, 01 Mar 2021 11:10:17 -0800 (PST) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AK0YB99X; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241172AbhCATIj (ORCPT + 13 others); Mon, 1 Mar 2021 14:08:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:34978 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240787AbhCATEO (ORCPT ); Mon, 1 Mar 2021 14:04:14 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 47B5D65290; Mon, 1 Mar 2021 17:32:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614619938; bh=vAoKC/oQSeRRYOHmfGbX1pUThqpyunmz1aqUmqw9eds=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AK0YB99XdRg+G40Jzimh3hXatjLxW5E3sffHR2yQj5NC3U0ckOHb7zd4AtuE9iTv1 IA3Xi3Lpsx3i/HYy/bD1ewfFQU26AdoH8MHq2GNgfCAkUj7LsoLU4oV7pDP/SL8VbA 1SoiuHbIkU2dWUO0VpJLzHXKW9veBy9sydTz2mgo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Masahisa Kojima , Jassi Brar , Mark Brown Subject: [PATCH 5.10 636/663] spi: spi-synquacer: fix set_cs handling Date: Mon, 1 Mar 2021 17:14:44 +0100 Message-Id: <20210301161213.322348970@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161141.760350206@linuxfoundation.org> References: <20210301161141.760350206@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Masahisa Kojima commit 1c9f1750f0305bf605ff22686fc0ac89c06deb28 upstream. When the slave chip select is deasserted, DMSTOP bit must be set. Fixes: b0823ee35cf9 ("spi: Add spi driver for Socionext SynQuacer platform") Signed-off-by: Masahisa Kojima Signed-off-by: Jassi Brar Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20210201073109.9036-1-jassisinghbrar@gmail.com Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- drivers/spi/spi-synquacer.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/drivers/spi/spi-synquacer.c +++ b/drivers/spi/spi-synquacer.c @@ -490,6 +490,10 @@ static void synquacer_spi_set_cs(struct val &= ~(SYNQUACER_HSSPI_DMPSEL_CS_MASK << SYNQUACER_HSSPI_DMPSEL_CS_SHIFT); val |= spi->chip_select << SYNQUACER_HSSPI_DMPSEL_CS_SHIFT; + + if (!enable) + val |= SYNQUACER_HSSPI_DMSTOP_STOP; + writel(val, sspi->regs + SYNQUACER_HSSPI_REG_DMSTART); }