Received: by 10.192.165.148 with SMTP id m20csp2485917imm; Thu, 26 Apr 2018 11:49:55 -0700 (PDT) X-Google-Smtp-Source: AIpwx49WrzmAOpiMk2VaffsteljCncxWtPXf7+kx5FeE89bBJ7JRe5WbhAvVEOvxIWto0kQljFLw X-Received: by 10.99.165.10 with SMTP id n10mr28937569pgf.141.1524768594950; Thu, 26 Apr 2018 11:49:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524768594; cv=none; d=google.com; s=arc-20160816; b=p3AY8eDe+RdB5zvC+jKXSKZTA9BE7ThbdyxMapLIRjOz99mNvip2ezcmYVQvaM6JTW YRhnCN4Y6zjSJ1/AqIXMUwj+bvxu9kH04Izvi+fwlarnOrfCzM8OtZLkx4rPBmX712xJ 8zgCgZe/t7orCb/pd05qPxcCPhHK40w5TK9on3tkyAsaZXBBIm6qKkifRV3NUvoy8aCt 1riNSLcAVH7GH2l02yLZFuhL/Jyhj61LGYRnLRs4F2/8GJuE7qg+sXM8PkNhB9ctW8i6 lq+TILu3fmsMqPjhlHSVxZHHDAiYDS1mHmmIeoDk1yowFv6e4RRuOQ0fuMUfotPwdN/s Yg+g== 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:arc-authentication-results; bh=Kp+bFpV9g58sFC3cjvyfDifmcU6EdB92dIWxjY39D68=; b=UDHYN4qDOUZfMniQGaObMP5ZJB6MhsIB3dbZVQToCJXZ+nRn4o/p9dCIfYPDnFyYPV eU0Q26Cff03DVykbrY5FiufzqMn+MxCQG58pQ8qyDfgPw9FIXA1W9kaB4S5VpTYNmBP5 rYrPCDTygp8dlUR/WByK9zG3c7rcrvjqs8kfG1kzVMMxM99jsWHBsN8UHz2Vllw6cijW 4Ng3aUpjz1yOtxbbNdPcEcL/QYrB0LnO2NIf5QXKaPmH6yMnr0cE06u+F7Ff6fyF/I17 sdg1OE2b6pSOXXmzcdN0bAfjfANneRTaIgxpkDjfd9SnnrR/t8/Tc21FClcCdT3SZ+Yr EEjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rhpt5/5l; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33-v6si18989734plg.34.2018.04.26.11.49.40; Thu, 26 Apr 2018 11:49:54 -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=@gmail.com header.s=20161025 header.b=rhpt5/5l; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755138AbeDZSsU (ORCPT + 99 others); Thu, 26 Apr 2018 14:48:20 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:44259 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753145AbeDZSsS (ORCPT ); Thu, 26 Apr 2018 14:48:18 -0400 Received: by mail-qt0-f196.google.com with SMTP id d3-v6so10861303qtp.11; Thu, 26 Apr 2018 11:48:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=Kp+bFpV9g58sFC3cjvyfDifmcU6EdB92dIWxjY39D68=; b=rhpt5/5ldTBZr133HGAQkvX6BXKlPjE4K+0m2LFec+HrGXlAxYJSzIa73982uaPtz9 /QCdLqp+Q5qGcaQGej1Mlr+T3dgHQFuViwvgn3wF8DNqOzPXcMm3ECqZBo/7tjOZI1Pg 6KwL/MQHcvNwL/uzOo1V0qM7T7Ul2D/GsE5bGQomIIgtrpJn7/EHxRtgsY5uxf00C6mo dDNARo/QdGT3W9TGcpYpF+Li9qoxybPdFLpzXVzwsxJCX/NkhdqqIDRwK+5D8/1ptYCH HKy7lFnwu8509z2oEbsgnzUENpIa0jP19dxVOfij42iTl9dZXDDlHBU/JZG8niAJg+Ri agpA== 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=Kp+bFpV9g58sFC3cjvyfDifmcU6EdB92dIWxjY39D68=; b=ZcyGIOEY9in8noK4Juha6o0/1whx8PxpdhX1P4oy7cUcIOuxNm9posl2ljQ8CHnVk6 aR9YWHLry8xyy0sr0xS4YEjxEvZ9fP4rOWiLQAh/7QDV+pPPdsz4dPu3RMfck4eNbQZ9 8VwTrbHnDQwbMPi7HgE75lAXUTJ7wTv2HAxyj5sUSXZriGbQY2ZCR4zDDuUi/3cjZVgF QqqskoPUNFhA/JadYlZ98ZSpSg44N+yQZsG6T8BoHtR363R5tzgCyexWqPuExH6YbWJg IWgs2TOmiXX4nvrc6B7kdbh6BChcGPM3kn0+dI19K20MB95s9SrDmPEkiMGcXsTYokq9 paxA== X-Gm-Message-State: ALQs6tBrd6yEKMElFObccL7FeEwi0IWyHHeIpXfDRwmNjbjJVj5F7iou YZmGlUgVDVmIYbPSaQTGnWQ= X-Received: by 2002:ac8:28f2:: with SMTP id j47-v6mr20779703qtj.150.1524768498063; Thu, 26 Apr 2018 11:48:18 -0700 (PDT) Received: from mail.broadcom.com ([192.19.231.250]) by smtp.gmail.com with ESMTPSA id k43-v6sm17970058qtc.5.2018.04.26.11.48.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Apr 2018 11:48:17 -0700 (PDT) From: Kamal Dasu To: broonie@kernel.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: f.fainelli@gmail.com, bcm-kernel-feedback-list@broadcom.com, jon.mason@broadcom.com, yendapally.reddy@broadcom.com, Kamal Dasu Subject: [PATCH v2 0/2] spi: bcm-qspi: Fix spi-nor chip select logic for BSPI Date: Thu, 26 Apr 2018 14:47:59 -0400 Message-Id: <1524768481-16347-1-git-send-email-kdasu.kdev@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When using the spi-nor master controller always verify the chip select bit in the cs register. Also do not use CDRAM PCS bit in BSPI mode. Additionally make sure to enable/disable BSPI_MAST_N_BOOT_CTRL while using BSPI mode. V2 changes: - Added "Fixes:" tag to 1/2 and 2/2 patches Kamal Dasu (2): spi: bcm-qspi: Avoid setting MSPI_CDRAM_PCS for spi-nor master spi: bcm-qspi: Always read and set BSPI_MAST_N_BOOT_CTRL drivers/spi/spi-bcm-qspi.c | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) -- 2.7.4