From nobody Tue Apr 15 18:52:48 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1582292316; cv=none; d=zohomail.com; s=zohoarc; b=L4jHhWNFOemjAJXMYigHqLKpe0aGTpcqjC62gAbNqQCyzHHmLoQ7Bx6J458WfkkvaskQkd0Mra0pcQFKtL2sHkycReJI1oTDYxc00BhH9SWi4FFMeoGk8k5/qnGv1v0HhxWc/nTSWjvlMXkSe+Zkzz7kVRRHIoGy82uZ8GZIZMs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1582292316; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=xSiTZ3bbGCGd/uM9CAsKu9wKQwmjm99/Hgqy9CM1+t4=; b=fPTUnxwDvafRQYgr7LEqJBGAJ0FJFXx3rmm6xDAd9qxyU0B/nQRYJr/cRZ7ELv8ShLVGKTPotGLk3SZ1WIyDAeNVaHlHb4kGxo7YJGXhW4YznS+QoMK8aVPm+5EyEqjWLl7LXIDOfUZsMs1YKdAbJF/2FJCCTpv3/cTbmTOQFCk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 15822923163029.033428588673928; Fri, 21 Feb 2020 05:38:36 -0800 (PST) Received: from localhost ([::1]:57940 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j58Vn-0004rH-94 for importer@patchew.org; Fri, 21 Feb 2020 08:38:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57092) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j582m-0008DM-Me for qemu-devel@nongnu.org; Fri, 21 Feb 2020 08:08:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j582l-0003kc-Ks for qemu-devel@nongnu.org; Fri, 21 Feb 2020 08:08:36 -0500 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:41737) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j582l-0003jC-EN for qemu-devel@nongnu.org; Fri, 21 Feb 2020 08:08:35 -0500 Received: by mail-wr1-x42e.google.com with SMTP id c9so1987403wrw.8 for ; Fri, 21 Feb 2020 05:08:35 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id p15sm3598892wma.40.2020.02.21.05.08.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Feb 2020 05:08:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=xSiTZ3bbGCGd/uM9CAsKu9wKQwmjm99/Hgqy9CM1+t4=; b=sece08w/bOhVfcwMb3/YlVpUDibrQtTEizvqPiiDMaUO1UlQ0dzdCalD7ia4F/d+GR daaD/7FvqHJyQ704yQwPEuwcY27faVOKtxzSwbkcVaXP5W6uh4niGiErRWMwnBID5jJJ OZqyo0xkRIL1VJy6+7NgtuhXbbpH9UJlMeg6FCPIjUiP0W0+LDbIAKj0FPwtH13zvoBg c3tfmMiXybj7vIBAhCQg5gAutxVHrUQcKbWdcxMARn3QFIk1rEWWIFQj1Rg3pheercTT 09vAjRzW/k3j8z53fmSH3FWJOBZrK3GsOu6xliRIPX3xulpezohBsilitV6hZ5Z5Zodv WBeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=xSiTZ3bbGCGd/uM9CAsKu9wKQwmjm99/Hgqy9CM1+t4=; b=qEHTZEviocLOcvifWtBqUjpJ946MqdTBwAtOjgfhTus44EDW3eYA2ruO99BBFMq3+0 Ch+JnwQMHlIRA8HZIxnBFDM49GO080m/DeGKQaliZlLg+tosgi42nR5VlkCafHwOoVas 39SaXTD7CH7M6g9sNIfVvIZzxit5lTQ52r+Tj0uJ/diHmv6ei0TrmCNJGtMDXzWNvtyM gxkvxHEbQAuOD3Msbj/HzYZLgQosSx1DLyCeDSy6/mwb6nAQt+B/SrD+eSrCTbh0v/Nm 3xqsCdPgpEVTNoRfPHTQnUM5ZooJEiNQn3pk/5NSXVWXxNPXwiX6AXDvOLzvBq9Fl9qH DZSg== X-Gm-Message-State: APjAAAUHKMLK7pp7TCKpsnKbpTk83hJvnCvNr6xLFL7LSA6dUx8WpeDP VrphToUDFGlPQ49GomAGwbs0T+91QL0iyg== X-Google-Smtp-Source: APXvYqw2tMfTk1f5N4RvatMFZ4VgSrxGSPD1F0FNqzRRLgOsT2j4E/w+ppMtZ3ymsAlnyYusvN98ZQ== X-Received: by 2002:adf:b605:: with SMTP id f5mr46479361wre.383.1582290514004; Fri, 21 Feb 2020 05:08:34 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 42/52] xilinx_spips: Correct the number of dummy cycles for the FAST_READ_4 cmd Date: Fri, 21 Feb 2020 13:07:30 +0000 Message-Id: <20200221130740.7583-43-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200221130740.7583-1-peter.maydell@linaro.org> References: <20200221130740.7583-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42e X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) From: Francisco Iglesias Correct the number of dummy cycles required by the FAST_READ_4 command (to be eight, one dummy byte). Fixes: ef06ca3946 ("xilinx_spips: Add support for RX discard and RX drain") Suggested-by: C=C3=A9dric Le Goater Signed-off-by: Francisco Iglesias Reviewed-by: Edgar E. Iglesias Message-id: 20200218113350.6090-1-frasse.iglesias@gmail.com Signed-off-by: Peter Maydell --- hw/ssi/xilinx_spips.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ssi/xilinx_spips.c b/hw/ssi/xilinx_spips.c index 6c9ef597796..c57850a5051 100644 --- a/hw/ssi/xilinx_spips.c +++ b/hw/ssi/xilinx_spips.c @@ -576,11 +576,11 @@ static int xilinx_spips_num_dummies(XilinxQSPIPS *qs,= uint8_t command) case FAST_READ: case DOR: case QOR: + case FAST_READ_4: case DOR_4: case QOR_4: return 1; case DIOR: - case FAST_READ_4: case DIOR_4: return 2; case QIOR: --=20 2.20.1