From patchwork Thu Mar 1 11:23:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 130157 Delivered-To: patch@linaro.org Received: by 10.80.172.228 with SMTP id x91csp2687004edc; Thu, 1 Mar 2018 03:39:46 -0800 (PST) X-Google-Smtp-Source: AG47ELuKMUPDMJuV6uZNoAphQZxsyX5aXQKqqXvGjt5IWq7hfvbSqFyuwIgC3yOX4qVqA4jyRknH X-Received: by 2002:a25:ade8:: with SMTP id d40-v6mr803168ybe.248.1519904386615; Thu, 01 Mar 2018 03:39:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519904386; cv=none; d=google.com; s=arc-20160816; b=yBVtTqn4PnULQydDji9QL+LazvA2/A6cqkxtYGqLd+7cm6cjVuoPTMR/NO5uF/BevS r042tQQXA2nQ45YQqPznfroxm2AJDNMz50Rn3qFFuh/6fW4KdmDWmgUYiHw1yGrXGon8 PPbovHzuniksL0Z0Xw4fj0XklvADY+ZhqVF3CNurDT8pt1ERBCXOnn3rBBHBZsxr/uV6 UBcR51SOtCl0umVymyOkLRLZvsIm5d4NruMD4QS4P2V0Z5dLIkqHsjq840RWuWj9bcch cv009H1UP9xgdcyKPDCqs76uFTQs8b9c9GJcE9nXoc7GQtq+duobistZezjK0bKlC3Ds 6Fkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:arc-authentication-results; bh=iqe1UjrF+ztfCLPHnoQayyv53JGAIAQ8Fvh1C9M33qQ=; b=r8yKMSnLQmu4zmpEX05PA3bzif5lA0Vcx15SrvtW/Zb8pbEBeeQ6qYSBNa2vCrRr89 GckIDP/gTMQW21A7EQTqunUUm6lQ7zQcj3Yzz/GBmRokcUVCmxSmUyM2zmoDWTCz7ap3 4QIJWmThKJd9u6W0RRhg+fwwzCAHjaT70Dv4fSB+6IqzYuM+e/J+JdBpvroy05QeamiE IZAIH8mMJNZ568Em7xedvENUnSAtey7vgIr+cA4bqf+scFHe+XJobgYYwbe420saPxAZ PhcA51keGyfIDtB69ONpbHRzkerntGaxzKOgst/Jf5DjzGvu5DY46+vt8tiFIT/u0czN DJww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id w125-v6si612624ybc.119.2018.03.01.03.39.46 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 01 Mar 2018 03:39:46 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:55779 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erMYs-0007mH-1m for patch@linaro.org; Thu, 01 Mar 2018 06:39:46 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33780) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erMJu-0003iX-TF for qemu-devel@nongnu.org; Thu, 01 Mar 2018 06:24:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1erMJt-000875-O0 for qemu-devel@nongnu.org; Thu, 01 Mar 2018 06:24:18 -0500 Received: from orth.archaic.org.uk ([2001:8b0:1d0::2]:46704) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1erMJt-00085k-FY for qemu-devel@nongnu.org; Thu, 01 Mar 2018 06:24:17 -0500 Received: from pm215 by orth.archaic.org.uk with local (Exim 4.89) (envelope-from ) id 1erMJi-0000Xn-Ko for qemu-devel@nongnu.org; Thu, 01 Mar 2018 11:24:06 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Date: Thu, 1 Mar 2018 11:23:24 +0000 Message-Id: <20180301112403.12487-4-peter.maydell@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180301112403.12487-1-peter.maydell@linaro.org> References: <20180301112403.12487-1-peter.maydell@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:8b0:1d0::2 Subject: [Qemu-devel] [PULL 03/42] xilinx_spips: Use 8 dummy cycles with the QIOR/QIOR4 commands X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Francisco Iglesias Use 8 dummy cycles (4 dummy bytes) with the QIOR/QIOR4 commands in legacy mode for matching what is expected by Micron (Numonyx) flashes (the default target flash type of the QSPI). Signed-off-by: Francisco Iglesias Tested-by: Alistair Francis Reviewed-by: Alistair Francis Message-id: 20180223232233.31482-3-frasse.iglesias@gmail.com Signed-off-by: Peter Maydell --- hw/ssi/xilinx_spips.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.16.2 diff --git a/hw/ssi/xilinx_spips.c b/hw/ssi/xilinx_spips.c index 0cb484ecf4..426f971311 100644 --- a/hw/ssi/xilinx_spips.c +++ b/hw/ssi/xilinx_spips.c @@ -577,7 +577,7 @@ static int xilinx_spips_num_dummies(XilinxQSPIPS *qs, uint8_t command) return 2; case QIOR: case QIOR_4: - return 5; + return 4; default: return -1; }