Message ID | 1466755631-25201-5-git-send-email-marcin.krzeminski@nokia.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> 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 96DCB60871 for <patchwork-qemu-devel@patchwork.kernel.org>; Fri, 24 Jun 2016 08:09:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 850D32848F for <patchwork-qemu-devel@patchwork.kernel.org>; Fri, 24 Jun 2016 08:09:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 798EE28497; Fri, 24 Jun 2016 08:09:42 +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=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, 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 C115A2848F for <patchwork-qemu-devel@patchwork.kernel.org>; Fri, 24 Jun 2016 08:09:41 +0000 (UTC) Received: from localhost ([::1]:41747 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1bGMBI-0007lW-A0 for patchwork-qemu-devel@patchwork.kernel.org; Fri, 24 Jun 2016 04:09:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <marcin.krzeminski@nokia.com>) id 1bGMAU-0007ja-M0 for qemu-devel@nongnu.org; Fri, 24 Jun 2016 04:09:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <marcin.krzeminski@nokia.com>) id 1bGMAB-00084o-PE for qemu-devel@nongnu.org; Fri, 24 Jun 2016 04:08:49 -0400 Received: from mail-db3on0104.outbound.protection.outlook.com ([157.55.234.104]:63951 helo=emea01-db3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <marcin.krzeminski@nokia.com>) id 1bGMAB-00083V-6A for qemu-devel@nongnu.org; Fri, 24 Jun 2016 04:08:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=GcUnfrmaNzbSja4582Alj2gY6pN7nmnBVntKEaoPCn8=; b=kLDJRMhxToAL0LTjFLVwi0QYOh/BRrKKF+6oFj6rR4SpXVM1P+JKaZb0ewzBaVM49omD0XL1VIy/ycOTUs+mbkvDqif3TBpd8GceiFWtf0uNePBnCSgUkqVuLWD9+ydrQ2+jzbqqqoco6LAG6rysBYg88QUrJfSwUWvYi0vrs0E= Received: from DB5PR07CA0008.eurprd07.prod.outlook.com (10.167.223.18) by DB5PR07MB0904.eurprd07.prod.outlook.com (10.161.196.20) with Microsoft SMTP Server (TLS) id 15.1.523.12; Fri, 24 Jun 2016 08:08:29 +0000 Received: from DB3FFO11OLC004.protection.gbl (2a01:111:f400:7e04::116) by DB5PR07CA0008.outlook.office365.com (2603:10a6:0:2d::18) with Microsoft SMTP Server (TLS) id 15.1.523.12 via Frontend Transport; Fri, 24 Jun 2016 08:08:29 +0000 Authentication-Results: spf=pass (sender IP is 131.228.2.241) smtp.mailfrom=nokia.com; nongnu.org; dkim=none (message not signed) header.d=none; nongnu.org; dmarc=pass action=none header.from=nokia.com; Received-SPF: Pass (protection.outlook.com: domain of nokia.com designates 131.228.2.241 as permitted sender) receiver=protection.outlook.com; client-ip=131.228.2.241; helo=fihe3nok0735.emea.nsn-net.net; Received: from fihe3nok0735.emea.nsn-net.net (131.228.2.241) by DB3FFO11OLC004.mail.protection.outlook.com (10.47.217.132) with Microsoft SMTP Server (TLS) id 15.1.517.7 via Frontend Transport; Fri, 24 Jun 2016 08:08:29 +0000 Received: from fihe3nok0735.emea.nsn-net.net (localhost [127.0.0.1]) by fihe3nok0735.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id u5O87x0J008575 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 24 Jun 2016 11:07:59 +0300 Received: from CNU418C7XK.nsn-intra.net ([10.154.155.220]) by fihe3nok0735.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id u5O87u75008453; Fri, 24 Jun 2016 11:07:59 +0300 X-HPESVCS-Source-Ip: 10.154.155.220 From: <marcin.krzeminski@nokia.com> To: <qemu-devel@nongnu.org> Date: Fri, 24 Jun 2016 10:07:05 +0200 Message-ID: <1466755631-25201-5-git-send-email-marcin.krzeminski@nokia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1466755631-25201-1-git-send-email-marcin.krzeminski@nokia.com> References: <1466755631-25201-1-git-send-email-marcin.krzeminski@nokia.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:131.228.2.241; IPV:NLI; CTRY:FI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(7916002)(2980300002)(438002)(189002)(199003)(7846002)(77096005)(189998001)(81156014)(8676002)(2906002)(4326007)(16796002)(86362001)(106466001)(2950100001)(92566002)(53416004)(356003)(110136002)(68736007)(19580405001)(50986999)(76176999)(2876002)(86152002)(33646002)(50466002)(47776003)(19580395003)(305945005)(87936001)(97736004)(81166006)(36756003)(2351001)(50226002)(229853001)(23676002)(11100500001)(8936002)(6806005)(586003)(5820100001)(2870700001); DIR:OUT; SFP:1102; SCL:1; SRVR:DB5PR07MB0904; H:fihe3nok0735.emea.nsn-net.net; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; DB3FFO11OLC004; 1:aHl43Ak/if6ng3OHxBS4DBHiGG8UnoKvO1pZQh2HMmYWmFyykVckt4j68EsxdG6XsvMxCHLEYviKrtdVuVUqhgf6awl2TZZarEd4/+PYnwlC3ruKvCmEEJygzwBj6TtsJ80V76RR95bn2Yd+Wwro/YB7tjkUffBE5fExYrT3j8pIUaLs3TI+H8+RsNneIVJ09qUy670Y3YPw+sasrUwM/+i3qWBoOqAbjqNXC2c8Qkn4WLRqfU6rq2SlnXzaOh/8A5oAmk1k25fV7NkHRGo/rOk37rWYSPWJ7Zp58iv+jMXtCkhS7l5R6QSCPzAvDruCe8lz3XUNDDkGwtzozmnyTL7CLMYCxhnixRXrVo4S057WUKV+IzdZtY8gEn35zyNUHck01Gwl86Ru7k81BQqT8omERkCFxWVnLJ4hJb9I6gBJKQ0CPMwfHjzfQs5Ylxhf X-MS-Office365-Filtering-Correlation-Id: cd86f61e-29c0-407f-dbb9-08d39c06b9fe X-Microsoft-Exchange-Diagnostics: 1; DB5PR07MB0904; 2:TzwPx9Ohg6OM9sqaX1FP3pkZRKhiFmHlnoiTJugFbfKB3eGytZcPUv/5+p9o6GuQ91SKzqA7h9KuM2JiQMxOwRV3V1HqX4CsVLhlv7A4oZEbWpBFfZMbDnSfOsrnD2USe1yRzT2mynsZ90VFkTQVoq0krlzO6NXuL7TWfOLvYwtdSD2LjP3/fVNgMXAqNeOR; 3:Zzcw9wP8s9lcLMUjTpwNQ++IL6DShC200YC6u/YbSlwv1nv3T3C8JGopp/pmpCSVTcZcN8RBtmvN7queJCJwDMWIzmYV8agVtNtBv8zI9ODcXceYHHEqDZPHuyuGd1kc5XbI79IxiyS1sFkXDVvlMDsamihewmtE4wwNHAy/MxlmMsqGLf/OxWOA9baxGa3xTA7/duhbvXTl9iQvfvgL8ky82SW0uOtWdZObKwSWRjbWND0i1/0zQffX12+oQsF9X0EXyYaJONgL9TOmaUSWIA== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501002); SRVR:DB5PR07MB0904; X-Microsoft-Exchange-Diagnostics: 1; DB5PR07MB0904; 25:A5zX2hER0rsjOCOvmI++R4AiMCVlpRCDJFeKeJZLT5vqAyt4UEyXnsN0i6peTf4KdDbxt/W3AStYol2nUdn9jjNNzMcAMcRfkQU3n860xGJUYVweNlpGjsA1q+gwjgDDm9JnmaH0knOjN0cjPacb1Xtr/Vdk2RNSehaNX9cNrGAH4LJex6+cMvrY1zLcI8Jw7XDY01All7siLuJ7L5KNou38Fomw2IHDpCgCG9sTkC9zPnKW8J2z69CjBTzGjLuc3OtLDds3Gq9TNdCz/9W5XhPgsNzOeJUlMB0iMfQoMvpvPSqcv+vohMSRSDu6eOjPLQODFwe7iEPTUXgGUtbNjxoyAo5GjRM5HVA6rg2BhYn7R3grmnt+n/+XtyXNaT4mwSxlykkw1HKq/bt7+7kOBfPIUv2WuNBlLQznzqbFSGXzUgQhh7WhDC8o1y84/Vwu4HtSAYb0sAwP8/omM+UBNSSHARx+4K434/m4S5ovlyRuWLP/q53463au/ym2INTtJy4NDEHekwCRR7TG1dKclOuN9P/rrR0/Qe6sjo7kEoWlfRWBMuoeqq34aOuQbABmFTHR7lnV63UdqxMvt22a0AFsIXau/YtLIJpGXfwdv6bqYZWBR3IzB6S1LkEca24Dd6i63psUuqC+96G06WUMc0LuIG4X6jwXpjbL/fYKiVz8QHLujnS28s1LmHfU2dEreMK4Ix/zEhvuul0NxqW53NUrXnXJaXhggPJbNZOa//e7J5ExOyZd6CcJDZtKoxy/9o0x2LJxULpXbEN8iGpAwA== X-Microsoft-Exchange-Diagnostics: 1; DB5PR07MB0904; 20:aW3zNF/YBclqVrJYgZKcItfWmSi4LWRfTrZImFh6fK/4BBAjsX+1pIjo8JI//idy0MftnHiUQubFuCZcBQTB/Mix0M1cdvk4hZUxd/rUa142+20EPmQ5/gv0ROGmoQ+WOkVRqSn+662HHRlHizMOJJo732+FgVQJmysMvvIr5IVltNoOFsE3vbgTKzL15QxXTGYNArua98WkISTgcsiZvwYUHSpqlYzORDPBQnjop4JcdPwdhylRghOWeU7E/g94tYCERfjeBUsp71XxwuB+jPkOBVz3y4SspaYlQtV+9eupU1ijunpLNc23j74MDHT/SLUYilgd2eh+WVx+0u/f3kV9o/nFcqo/twv7kZK59M07j4vRagGsXj1jjhhlHIkCpahhrSe+v5ZMZ47ppkodRcUffjEcZmMluG4uzZakr9QH5v5Zx8Xqt2ULnAmlKZQpCcgkElR3nx4njYoIeTpg0mvYCIz1tMIwRd5Xy77z//z9Cwm5/4p9DlC/6xmcTdsMTthmKlpwUJLPxzawW3v7+8+A+7OOp6abXfHyVFRtgh4bh3xEibonylNast5SYTpU/LPnk+raoJX7mAkfx3IbSx++sgAMKWyK7TqEqr/Ag9U= X-Microsoft-Antispam-PRVS: <DB5PR07MB0904C2641DEE769647F90527FE2E0@DB5PR07MB0904.eurprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(82608151540597); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13016025)(5005006)(13018025)(8121501046)(10201501046)(3002001); SRVR:DB5PR07MB0904; BCL:0; PCL:0; RULEID:; SRVR:DB5PR07MB0904; X-Microsoft-Exchange-Diagnostics: 1; DB5PR07MB0904; 4:qA0AlrwplAkwn+NymiPDEQEB+lwBd/idoesoragIV/DOhNhti5R/KCzmZ/XnklEMBE60YlJ4DWq8dP/2LeqyJYgSbkXf7DrCfcJxgcztJdpRxtJgjh30bGZHewH6kBtQTQMOCm6qB53hDWyfSw75+FCbvUtXHUO5u+V/KlTAVinLGVAW2MeKqi+Nc9uLghoQafqN7EDGgjKPJ5oKngWGcjXWohptbRKyghlhohi114fJhx+2Rb8HXKPG8VnD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qYZ2mkUK8GkWm/KVDyjHgcflL8wNPr7QplE0GsUIBPk1PyOFpedLgbo6iG8Mg==; 24:2QUGR5sIFpuPxL+HfuSKoqCnh/UdIxoRyPExiajDOa9M/Hn3ipfoR7WpzgEJ3TVNoidgeByJLk82VtppgRA+Yge9+0nLdSz4h7zRceN88gQ=; 7:vLm7pxuTjphYVr+5xLIl9EUeJOXY3ux69gFpoVcsG1dYl4r/nss3p4Mr3tmNMeKehzWb0MjfZUJxmTy/XwD7XDjjo2nggfYUbHhWbfz4MSiwY7efLlc43B3Nj79Oo70Faqg+SXsv5oziV6Z1XsatdqQb/vElU+oq6/S8D0p5QFJZClMlijNffkXsDD6uQEsNZD8yorchSw/RTmmi0kI5FZpFxRva60dwHVgEq+HmXDv6bQShx/6/ir6wKfjap4mG4Mk8n9R5XkYukLj1ACGeug== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jun 2016 08:08:29.1724 (UTC) X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5d471751-9675-428d-917b-70f44f9630b0; Ip=[131.228.2.241]; Helo=[fihe3nok0735.emea.nsn-net.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR07MB0904 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 X-Received-From: 157.55.234.104 Subject: [Qemu-devel] [PATCH v3 04/10] m25p80: Introduce COLLECTING_VAR_LEN_DATA state. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: peter.maydell@linaro.org, crosthwaitepeter@gmail.com, clg@fr.ibm.com, clg@kaod.org, pawel.lenkow@itlen.com, rfsw-patches@mlist.emea.nsn-intra.net Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c index 6910c52..ca1f882 100644 --- a/hw/block/m25p80.c +++ b/hw/block/m25p80.c @@ -330,6 +330,7 @@ typedef enum { STATE_PAGE_PROGRAM, STATE_READ, STATE_COLLECTING_DATA, + STATE_COLLECTING_VAR_LEN_DATA, STATE_READING_DATA, } CMDState; @@ -872,6 +873,9 @@ static int m25p80_cs(SSISlave *ss, bool select) Flash *s = M25P80(ss); if (select) { + if (s->state == STATE_COLLECTING_VAR_LEN_DATA) { + complete_collecting_data(s); + } s->len = 0; s->pos = 0; s->state = STATE_IDLE; @@ -905,6 +909,7 @@ static uint32_t m25p80_transfer8(SSISlave *ss, uint32_t tx) break; case STATE_COLLECTING_DATA: + case STATE_COLLECTING_VAR_LEN_DATA: s->data[s->len] = (uint8_t)tx; s->len++;