From patchwork Mon Mar 1 16:14:23 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: 388690 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp3592556jap; Mon, 1 Mar 2021 10:34:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJyBxpQrUw/8WKxQxDotzuu9IxZJsV+nZvK4e1xX4fxeKxnWcaIIc07m54vGPsHyxOby80yl X-Received: by 2002:a50:ec0e:: with SMTP id g14mr17841671edr.264.1614623643320; Mon, 01 Mar 2021 10:34:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614623643; cv=none; d=google.com; s=arc-20160816; b=l7fWL6BrxmBwBRWcMGJ4xAmV+gtQS5NCuTqvo0mxcrAEfJ1VwuMwbXBz2foQll/WfM Wc03E7BqxqQPu+j11eu5S+E8Davsx0jdqLdBouqy9bhSki715Ie20tfaiSM3MK70bfVS 52wPxu3wyBUQxLXBbV1EAr0cjrNO0vqcSz2/ghUmkPLMyCZM8SXOe84KYuOS7k5LrWTE jbNdWXXUAwTiKz8lJOx+NVHdgurIqtV8b2XwmtIpMRwL2J5o/dMnEZpApRfyJzvrYIhT HuKi2U0DhSzbDXL1MZPyKuqU7X5CdSzE5uGToYqp6MFA8nz6fixTbT4j6VtRBu500nfP l4lQ== 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=KO7PAZO52XNrEET+kPzfUlPSbV0g75AHtVLvym7NwJbbgR1p1xR4MKpm+5ejlNPtvM fawiaQTgn0nXOAQ8VbX/N83hrxHD5V7L4uD7ilv8abfEGSz7DwYM1mrpGA9IQcmZt56u amK32KWSvCbCFK7IswThvXjGjR34dAkj7Zscm7sI3vK/DOopZ0tqknsF/ishzLsnrJe3 4OIg9UK4QR19DiYfBZflkq1c5KlzkfoDaW4pcbgyLD998oYOcvs127zlG40CVC0YjXe0 MKTf4qLTU688r7uTXN13zGcUtqcb8CAfFD4nrqQVt9Z2w+wcT+kq6EWsKcMk6eUfxdo+ 3PUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TbbRJkwW; 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 p18si11447952ejy.191.2021.03.01.10.34.02; Mon, 01 Mar 2021 10:34:03 -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=TbbRJkwW; 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 S240052AbhCASdG (ORCPT + 13 others); Mon, 1 Mar 2021 13:33:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:41521 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239633AbhCASYY (ORCPT ); Mon, 1 Mar 2021 13:24:24 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id CE3E265101; Mon, 1 Mar 2021 17:02:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614618136; bh=vAoKC/oQSeRRYOHmfGbX1pUThqpyunmz1aqUmqw9eds=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TbbRJkwWeNKEOBeIoRcT7WZINlmqtrpJIy+Elxt5+EDkvKkVpT6xxsUY5wOpszCae yJhO4ihA9Yp4FW3bfFuoarE2BXxQS+AQu1EGv/liyuCHXWF4fx06WFIvT+OR2dLpHm TRjk6YSZVmFD+adPKZKiuhhFQjX9tLRPhPsvhTt4= 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.4 319/340] spi: spi-synquacer: fix set_cs handling Date: Mon, 1 Mar 2021 17:14:23 +0100 Message-Id: <20210301161103.992369522@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161048.294656001@linuxfoundation.org> References: <20210301161048.294656001@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); }