From patchwork Fri Feb 23 23:22:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francisco Iglesias X-Patchwork-Id: 10239999 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1C21560390 for ; Fri, 23 Feb 2018 23:23:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0EC7229A79 for ; Fri, 23 Feb 2018 23:23:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0262329A7A; Fri, 23 Feb 2018 23:23:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BB70429A77 for ; Fri, 23 Feb 2018 23:23:43 +0000 (UTC) Received: from localhost ([::1]:47763 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1epMgo-00071A-Jo for patchwork-qemu-devel@patchwork.kernel.org; Fri, 23 Feb 2018 18:23:42 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49602) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1epMfq-0006KX-P7 for qemu-devel@nongnu.org; Fri, 23 Feb 2018 18:22:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1epMfn-00027c-G5 for qemu-devel@nongnu.org; Fri, 23 Feb 2018 18:22:42 -0500 Received: from mail-lf0-x243.google.com ([2a00:1450:4010:c07::243]:47054) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1epMfn-00026Q-7S for qemu-devel@nongnu.org; Fri, 23 Feb 2018 18:22:39 -0500 Received: by mail-lf0-x243.google.com with SMTP id r80so14566588lfe.13 for ; Fri, 23 Feb 2018 15:22:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=02c27h+DTeyXeA3YfHzlUoRUj6J1GzZRe7+Bb7rbVRo=; b=nCTe1cE7SRTEF6DwUgU1yMoglm9kYCqcIR9NxDxEFf+VjAjHmmD4oNE7blMsIL4uvm Hy/1qiO8ut5IrDWrINxMFRFQSMih0E/Hh+FUlzmGOTO9hoEJwU0ukn4OT9VzBUhlruhF 5O7FNCYB2WefLqlGEtkLoZb+DCxuHwuSBGjYWRglddtguENiP3IqcQFBaapSNTelWbG5 asRZMpHu4VW7JBQiwfxmrqDNPA2CcFjYMV6EDZiTypo3d+CGjYJlFRh5CXux4Jy7dEDv n6Z1vBRLXV0Cb2V6MsW07VH45WWGpfI8Dv1wIOZNChEQevZdlNkJRUVtqxa0Z0T7GC0d OR6w== 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:in-reply-to :references; bh=02c27h+DTeyXeA3YfHzlUoRUj6J1GzZRe7+Bb7rbVRo=; b=bJt15gB6YaE1PMFqjke+fMmNCw0QcG/4lqegokV+flYU3QnE5nECP02YwoNY2Za+B7 7qH50S5tpFR5CO7UT0EVDPEXdEXuSpiObJLYshQpiMu3H/yQfmkF43rNhJF1xj3uhlBv MqsxGNoA5j5BpB6gJ7xGQeDVBvqThHRMrc7XJvMtZxRqOrgRAkN6oJ4douPVnPTzTLtQ ItnyyxPCVmfoThUXlHB510MvJ57xIcWlIHEfA+RiLV10/3ETsCwjGq408UDNH90yxZ1R /AueeHznZ2s2LCOirXXatJ1iF8ZPNf5SPUTOsyStKQCf+0G5c8VWCpqJpz4Tre3Jbwoi TtmQ== X-Gm-Message-State: APf1xPC1ZyPcmppGgFFI/lJkE6EjMpMeciDHl9sCpZMmPTJADjD0hMdK xzEdNGBgKVxwSF7KxTO0WlCrU6Sf X-Google-Smtp-Source: AG47ELv1gKmY9L87q9vHz7GwzjuwkpBNqdGYQ5zEVheNwltQgGH3+zqF2i6ps+z63Y47jF7x8CBIQQ== X-Received: by 10.46.127.11 with SMTP id a11mr2603461ljd.148.1519428157804; Fri, 23 Feb 2018 15:22:37 -0800 (PST) Received: from localhost.localdomain (94-255-131-112.cust.bredband2.com. [94.255.131.112]) by smtp.gmail.com with ESMTPSA id q63sm685919ljq.17.2018.02.23.15.22.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Feb 2018 15:22:37 -0800 (PST) From: Francisco Iglesias To: qemu-devel@nongnu.org Date: Sat, 24 Feb 2018 00:22:33 +0100 Message-Id: <20180223232233.31482-3-frasse.iglesias@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180223232233.31482-1-frasse.iglesias@gmail.com> References: <20180223232233.31482-1-frasse.iglesias@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::243 Subject: [Qemu-devel] [PATCH v2 2/2] 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: , Cc: peter.maydell@linaro.org, edgari@xilinx.com, alistai@xilinx.com, francisco.iglesias@feimtech.se Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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 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; }