From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:41628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Si1Bn-0007XN-LK for qemu-devel@nongnu.org; Fri, 22 Jun 2012 06:34:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Si1Bh-0002zf-Rx for qemu-devel@nongnu.org; Fri, 22 Jun 2012 06:34:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55977) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Si1Bh-0002z7-F1 for qemu-devel@nongnu.org; Fri, 22 Jun 2012 06:34:01 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q5MAXxns029918 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 22 Jun 2012 06:33:59 -0400 From: Pavel Hrdina Date: Fri, 22 Jun 2012 12:33:51 +0200 Message-Id: Subject: [Qemu-devel] [PATCH v6 0/6] fdc: fix/rewrite seek, media_changed and interrupt handling List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kwolf@redhat.com Cc: Pavel Hrdina , qemu-devel@nongnu.org The fd_seek will return 'track is invalid' if there is no media in drive. Implied seek should have the same behavior as normal seek. We will use the fd_seek function instead of a direct modification of head, track and sector values. The result value is used only while read/write commands were issued. Fix sense interrupt status command. v6: - update fdc_test test_media_change - add fdc-test test_sense_interrupt v5: - correction of misspelled words v4: - fix coding style - better bit clearing in 'fdctrl_handle_sense_interrupt_status' v3: - add fdc-test test_read_without_media - rewrite seek and media_changed handling - fix interrupt status handling v2: - better way to detect media missing Pavel Hrdina (6): fdc: fix implied seek while there is no media in drive fdc-test: introduced qtest read_without_media fdc: rewrite seek and DSKCHG bit handling fdc: fix interrupt handling fdc_test: update media_change test fdc_test: introduce test_sense_interrupt hw/fdc.c | 117 ++++++++++++++++++++++++++++++----------------------- tests/fdc-test.c | 118 ++++++++++++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 176 insertions(+), 59 deletions(-) -- 1.7.7.6 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:55542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmLYG-0004Qj-SL for qemu-devel@nongnu.org; Wed, 04 Jul 2012 05:07:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SmLYF-000621-3r for qemu-devel@nongnu.org; Wed, 04 Jul 2012 05:07:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:64093) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmLYE-00061n-S4 for qemu-devel@nongnu.org; Wed, 04 Jul 2012 05:07:11 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q64978cP024077 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 4 Jul 2012 05:07:09 -0400 From: Pavel Hrdina Date: Wed, 4 Jul 2012 11:07:04 +0200 Message-Id: Subject: [Qemu-devel] [PATCH v7 0/6] fdc: fix/rewrite seek, media_changed and interrupt handling List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, Pavel Hrdina Content-Type: text/plain; charset="UTF-8" Message-ID: <20120704090704.f_4dixDqC-6rqK_KkWoPXPgCcBkCJZDwCCsJkn02aKw@z> The fd_seek will return 'track is invalid' if there is no media in drive. Implied seek should have the same behavior as normal seek. We will use the fd_seek function instead of a direct modification of head, track and sector values. The result value is used only while read/write commands were issued. Fix sense interrupt status command. v7: - small fixes in test_media_change and test_sense_interrupt v6: - update fdc_test test_media_change - add fdc-test test_sense_interrupt v5: - correction of misspelled words v4: - fix coding style - better bit clearing in 'fdctrl_handle_sense_interrupt_status' v3: - add fdc-test test_read_without_media - rewrite seek and media_changed handling - fix interrupt status handling v2: - better way to detect media missing Pavel Hrdina (6): fdc: fix implied seek while there is no media in drive fdc-test: introduced qtest read_without_media fdc: rewrite seek and DSKCHG bit handling fdc: fix interrupt handling fdc_test: update media_change test fdc_test: introduce test_sense_interrupt hw/fdc.c | 117 ++++++++++++++++++++++++++++++----------------------- tests/fdc-test.c | 118 ++++++++++++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 176 insertions(+), 59 deletions(-) -- 1.7.7.6