Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1765413ybl; Wed, 28 Aug 2019 21:22:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqxA2TfJBEfYJQdhEz4MW5tPuJZ0MFauM/phAG3peRFe7qG8PS/D8GvcfzpsCL9SUkd/DZQ3 X-Received: by 2002:aa7:9112:: with SMTP id 18mr8838356pfh.127.1567052537221; Wed, 28 Aug 2019 21:22:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567052537; cv=none; d=google.com; s=arc-20160816; b=U2Cs+bgeF6MMJJrCZc/RK2Vh5NuPQ7Zw7Ql15BrAnh+LLXR1tiR0IG6otOSsFLLkMV twaoKVb97MGXQE4K1e5RBkfypnZuzmvtUgrvQ5MZGtzdLhWDLopKvMvCooVx4bd0eL/6 EoL292LOB5X3u5Q3h6hmYOOBNgFiOsQa+We3ilZsPbIrMx9jIAWxRxd4NoN5sN19xwMp cxPK5/F+kX6BUru94EcPhiSE3cTddlP7tq+HhoFR3+3w6ow3XH2oa9xkn//ENS2/Jo3d wWWkXkwSBEjfRkV+hCeMhtrublrVq8AZlUon4aoQqAEI/yaZOAg/Pty6E5+eiQ5e8+bN gNKA== 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=qQI5iJC9ehaYt+kRey+tPIwzQxEitpVjxbpR7mvkHRQ=; b=bbPk/5oyqEozk8JE5+SGmEK2vnl+tL8eDE1MCnZaDW7UtGtsN9TlzOQ6gnAJ4Tzbvn DDPMcRJKgULYj3k75BlZLe6muTZ1CNzB5IslWv0lKftSSFzSXSfUvhwQcokvotQ1g4w0 zl4fKjoXhqJrjEUlTBOxwIx+NQqY9xtt8dB0Mrj+mWga+71g5RPIWZr4EGmXuT8OqyCU Zbiza99L5S5j9s71+2q5++9HY4RFMX9NmgNf+xWxbF7eHifBrKJOBSK5mIZvru+CWCXF G2twHQzLA0wLdOO/IRh5yykE/xxykGH8DwLQTMPBVnvaFcnEQ1wX3TCIjxzm7AjWEezS /KSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=RqZ3AJJ+; 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 r145si898715pgr.553.2019.08.28.21.21.51; Wed, 28 Aug 2019 21:22:17 -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=RqZ3AJJ+; 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 S1725870AbfH2EUr (ORCPT + 99 others); Thu, 29 Aug 2019 00:20:47 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:40276 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725776AbfH2EUr (ORCPT ); Thu, 29 Aug 2019 00:20:47 -0400 Received: by mail-pl1-f195.google.com with SMTP id h3so956379pls.7 for ; Wed, 28 Aug 2019 21:20:46 -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=qQI5iJC9ehaYt+kRey+tPIwzQxEitpVjxbpR7mvkHRQ=; b=RqZ3AJJ+5jSfK0VrydP0ijjVTMsqIdOjiqw6T9p6jny4M01N3lT8xm4rJrkhMpeJ6K 8FPa6Y5Iyrt8EEVuc+Svsn+U0NCMwzfNvDeEvPvPe/RoTy3o3hAH1qmihyQG8dn1Ia// YUdZTUilVu3q7hCuB6iWkRn93U/GwNuuOXQ/s= 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=qQI5iJC9ehaYt+kRey+tPIwzQxEitpVjxbpR7mvkHRQ=; b=C1bXmZw+DGqrF1wfe5Rfu0n9SOC4jjmbMO0huu58w4P6ySuoMq6Wq75qa6Mz0X6lS9 Iu4uqSkVQG6+g+bxS8YpvNEVbjuIrzDDDmmObYLRS9PBDFbpRPXKy7laUEzo6lOap5Vs tZwkR9rFm/zUC9xYyRV/746AQMPZnklZa9Noq+N5ovYunhHQha4RS8k2OQtJ6rDWYFBc e/zdTlM0Cwv74/evHum4Psy8qUa06w8l33zmqsyEltlgadBZl0/mH8lfrLkFSiNR4Ccn ApDVcc86kU+cBg5a4PTgp3WnUu/iyJ7rj7OV+fDhDExFZ8GCbGSPhFjgy4LpEFhva2aY 91qg== X-Gm-Message-State: APjAAAVGbZc33ZgmwoqYOZnz90Z7oQT1QzXseTafryDNnl5CK7rN7fYJ qdGHFAppDMEK40zhL0Y5r7E3kvTzLPmISg== X-Received: by 2002:a17:902:fa5:: with SMTP id 34mr7897357plz.285.1567052446342; Wed, 28 Aug 2019 21:20:46 -0700 (PDT) Received: from rayagonda.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id n24sm821653pjq.21.2019.08.28.21.20.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Aug 2019 21:20:45 -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 V2 1/1] spi: bcm-qspi: Make BSPI default mode Date: Thu, 29 Aug 2019 09:46:13 +0530 Message-Id: <1567052173-10256-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. Changes from V1: - Address code review comment from Mark Brown. Signed-off-by: Rayagonda Kokatanur Reviewed-by: Mark Brown Reviewed-by: Kamal Dasu --- 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