From patchwork Mon Mar 1 16:15:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 388746 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp3677071jap; Mon, 1 Mar 2021 12:39:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJwDkxJSMlbvwRJIXD62Y1VRp3OFJbUk8Nw8rrX3rVFz4f1I9Wz4Cv7i4wc3U/2sI4w0/1h1 X-Received: by 2002:a05:6402:1d9b:: with SMTP id dk27mr18123036edb.209.1614631183703; Mon, 01 Mar 2021 12:39:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614631183; cv=none; d=google.com; s=arc-20160816; b=cLUHsCPm3o7596H8cu81lBQfqJ5Lrs4WCZtu9g4B/TzUWcNxV4PKAhV7blosn0JgKP yfIQoO/99gCDoMw3XBSlpCsYGId7U31hGiUQQGGlb0c4Kd50yc8cL/ENk4HyS+ZweEgv rqVEXv5f0QqordH/+4KUu4Vw7j1gbxrw/B2t1t7mT2BJPifnXwtJ19NopXrnLkX36wf/ FyjjH/ZC4/3QNZJBlKbjmVlw3IFyOeoXYc6Jv2uHCn9pPPk2lVRha6A+wo2iR2pWNeXm U/EAFRpHfFVBO2X6Qk3C2hE5cHRClfPFUsjs9l58jC9gkkw4k/AY1EJxdKr0up1parx8 p7tA== 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=W2TPmr8jHWpfA5sfLCrOvT5vXq+C6wsWrCbkHQpyemSLLgc+8DeSC0FwV4cR96atxx UG9CdarUteG8ihAw1QG2h8u0aC+Pi71PDQWx/Lm7HXPTc3gdpSx6exYsvrMmj2yBDso6 ymPWXN3WvvtqEOeX50oGSOBghfy9Gps4d91dfRZZFLJ587tKTb6xmP9DDrBtwapzRuXD uP7V5Gil8diJgAd22D3s4wGGOR4gEGAPpdDPYYTZqDiSSIb1mFxe7WtUxax45KB7ZCz6 r7NbHX8AvIFkHnUDDtiscrJKsNZlRMOqB4Lg7k6IvyttWMvINAbh+xJszp0FF08ooHKH qrIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=En6tRfgh; 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 c10si2534507edv.12.2021.03.01.12.39.43; Mon, 01 Mar 2021 12:39:43 -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=En6tRfgh; 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 S243448AbhCAUhs (ORCPT + 13 others); Mon, 1 Mar 2021 15:37:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:48318 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239667AbhCAU3M (ORCPT ); Mon, 1 Mar 2021 15:29:12 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id B0A0D65421; Mon, 1 Mar 2021 18:07:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614622077; bh=vAoKC/oQSeRRYOHmfGbX1pUThqpyunmz1aqUmqw9eds=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=En6tRfghHDMIeHtE5B3m8V1luOcNI/0GAKLd5P4zqhd2YqY+IKAoFehLzQ8s3VqbU +H9JKAN2hG4oKjeZ/0SzMUHguFyCpkeAtSDv6x/PRmnu3r13zAcjDRNXBGBwhF/KXJ HSC9ivQCPrIf5vhYelVgTxs4OfJSfCjF5dYw9eWk= 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.11 748/775] spi: spi-synquacer: fix set_cs handling Date: Mon, 1 Mar 2021 17:15:16 +0100 Message-Id: <20210301161238.280938488@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161201.679371205@linuxfoundation.org> References: <20210301161201.679371205@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); }