Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp202492ybl; Thu, 29 Aug 2019 21:34:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqy/5YeZHUq4xZ1qktCVNXLg5s01HOsiGDsnrfh0upfuPLuEyGITZRjaVF8PSqTFk8xliNE0 X-Received: by 2002:aa7:93cf:: with SMTP id y15mr15725565pff.251.1567139678657; Thu, 29 Aug 2019 21:34:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567139678; cv=none; d=google.com; s=arc-20160816; b=kaFvKE0rIXp2hB0mPvb0HuUrRkypTou4SpxFqyu3OskNGrnbcHs/gl0h47gpa2t/To A9gEnmk0xoTeoXeEnEkCyaWHwejHW9SGp9+73oWI2U70qtA/HkNMTvkenzncX1apKTK0 7d3v96IG4zvVJEjxYbFRIXxHXCswDVg6cl+wzgdqJNYuJxOIgDDQqGeoZhRSWCcy2Wzz eDgFVstbDp8N+puoOOH8YNJeMSAEE+JE5su67lvKc8CB4O3noVAs5ubhdLRryatPcC5X GWGjRORZ9zBXtNzzDEaZZtWZlIYdq6KGqGG9TQganssP31wfQMWCdb2wr7NiAmBJnBb1 sWSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=KklhaOrcJjumUOcMoajjDCuKO1cn0WIKBTfo3oVxm7U=; b=o3sSEAgKmZ25nYoIh4nSrevVw0/rj/QpNwrfsidQDfY09ninEt75VI6R4mncff7vKK 5a39h1MDjJPlbwX2G9BvaKNEsxEB65jJIkBNIscycL38gUpRjNLY/uolZT11JmFUI4QU CTY3opIJkQKVlTF1mmfusJ+mGVrllAwv9WURSNsYeMg1dNyHq19xoBK6uFxMF/q7YvcU o5j3FO7zaeBCRgn6Uf2e8erDRbFC5CzSLe69vBKxifn0H8mqgck2HaC1WlhbipExWhyK 4Hqm6LctJ+VmxGQwL6sITv9cQ3Hm/dBx2f1tEL9cGychMluBDRkhlYQJRbrQ+UEnL0oY 6k9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=TV+xdT09; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x26si4795241pfn.78.2019.08.29.21.34.23; Thu, 29 Aug 2019 21:34:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=TV+xdT09; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727930AbfH3EdX (ORCPT + 99 others); Fri, 30 Aug 2019 00:33:23 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:33732 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726090AbfH3EdW (ORCPT ); Fri, 30 Aug 2019 00:33:22 -0400 Received: by mail-pl1-f195.google.com with SMTP id go14so2725817plb.0 for ; Thu, 29 Aug 2019 21:33:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=KklhaOrcJjumUOcMoajjDCuKO1cn0WIKBTfo3oVxm7U=; b=TV+xdT09IOmtbG2hmZwo+q6JqoJtHVEdeKhgG4HQ4X/3cu6L+wYMCA2IiQmiJETnIP kO3JKDv4I8yC50ikVI1dRbHa165dBQLFumdF3OPjd/72iA/CHRrfEEEn6XuIDgi1Ux0q SVSVCNK3b03oS1A/2ORZ+E8NQpQUkUS1gELg8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=KklhaOrcJjumUOcMoajjDCuKO1cn0WIKBTfo3oVxm7U=; b=o1+2JWWvi2P8dtEei4/snRs0rSyNF9PWIoD7HliuO4htDwrPB7mqAe4uXVJd1CbuXx YpMcXEzdJvqPgB2gdxK/77DWSkVUU/fXjBwrEqmV8HgPFRKmGWGaWywWy5W68Bnpuyg6 w9dHZBC5RqL5JqjxHDaErxKRmddiY8HuO+2m73VzTV6AqQzBnw/3Mq2WqRUBR0J+tVgh uzy5dwM5FIzshTLvS3SNxaYFX/5FcQEFYrh6weWG1/sSO8NM7M6GNhcz4+spmKOwD7K+ uFrkgWDa1i2YtdxVWorz1mVuYqSONNw71cXZtslW9xVI6znETsFWIagRctsEL6ICbWSK AW5g== X-Gm-Message-State: APjAAAWQ+XjUM2ULQj7EFSl1XXGRW/ENJUREMmawCOUBa7zI9Z4hp1JO YiAkUPVnYqLGDLAAaS+VZQrzhQ== X-Received: by 2002:a17:902:6a82:: with SMTP id n2mr13024583plk.53.1567139601347; Thu, 29 Aug 2019 21:33:21 -0700 (PDT) Received: from rayagonda.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id ev3sm17753974pjb.3.2019.08.29.21.33.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Aug 2019 21:33:19 -0700 (PDT) From: Rayagonda Kokatanur To: Kamal Dasu , bcm-kernel-feedback-list@broadcom.com, Mark Brown , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Rayagonda Kokatanur Subject: [PATCH V3 1/1] spi: bcm-qspi: Make BSPI default mode Date: Fri, 30 Aug 2019 09:58:45 +0530 Message-Id: <1567139325-7912-1-git-send-email-rayagonda.kokatanur@broadcom.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The spi-nor controller defaults to BSPI mode, hence switch back to its default mode after MSPI operations (write or erase) are completed. Signed-off-by: Rayagonda Kokatanur Reviewed-by: Mark Brown Reviewed-by: Kamal Dasu --- changes from V2: - Address code review comment from Mark Brown about changelog. Changes from V1: - Address code review comment from Mark Brown. drivers/spi/spi-bcm-qspi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi-bcm-qspi.c b/drivers/spi/spi-bcm-qspi.c index 902bdbf..46a811a 100644 --- a/drivers/spi/spi-bcm-qspi.c +++ b/drivers/spi/spi-bcm-qspi.c @@ -897,6 +897,7 @@ static int bcm_qspi_transfer_one(struct spi_master *master, read_from_hw(qspi, slots); } + bcm_qspi_enable_bspi(qspi); return 0; } -- 1.9.1