From patchwork Tue May 12 14:28:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Denis Efremov (Oracle)" X-Patchwork-Id: 11543301 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2E7DA14B4 for ; Tue, 12 May 2020 14:28:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1B0AC20746 for ; Tue, 12 May 2020 14:28:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726922AbgELO2K (ORCPT ); Tue, 12 May 2020 10:28:10 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:40817 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725929AbgELO2J (ORCPT ); Tue, 12 May 2020 10:28:09 -0400 Received: by mail-lf1-f65.google.com with SMTP id u4so10733789lfm.7; Tue, 12 May 2020 07:28:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:from:autocrypt:subject:message-id:date :user-agent:mime-version:content-language:content-transfer-encoding; bh=T/CsFWpprCm90Bcz7apDOuNYzasC1DpC3SgTK6EtJ+k=; b=VeTZ56YCIXnMPFJdszuQ48Zzol+3xII8aULfdq13aSRRfOUzs+XmrEwN6sFnppZuuc XCElYX+Jno7FnqsH1yX2ROXgq/5IVd041czaRCjQtJeF9ZUp8g9a+eQqAV2qbEf8g3S5 02r5UxhWFc4ldnUeGo2faM2zTB2qFzrWZbmgZA4VllMnU7Vh6oUVYqGVqFMO8lPXRk1I v1Us/AH0oC9yqQZsRf+YTvtezfZb/Wsja/M8Zybh/++DA6eJ2uQsqIWVPKY08RkaqLjh eoHlHUxfLbmt0TJQnIqJFHOS7Fc7kfSqYP9+XyUpQ8tdWNx70GYA48MSK2iiQiaZz6nD sMLg== X-Gm-Message-State: AOAM531e+Qtyvk1fRj6HSlaVEVAPtmicRUzCgYzjAO6v+FQzHqy+ECMK rgqEfsYkkw+ksmyo9ZPgz/FUTInnLzw= X-Google-Smtp-Source: ABdhPJzSxy5b9anj5nSLkLE9Xhvo7e1Ecwibf31Ckcp89ttd6Zpl4cCoqcHTchPa1SUNfvge79bXNw== X-Received: by 2002:a19:5f04:: with SMTP id t4mr14687764lfb.208.1589293685827; Tue, 12 May 2020 07:28:05 -0700 (PDT) Received: from [192.168.1.8] ([213.87.130.150]) by smtp.gmail.com with ESMTPSA id c79sm14417582lfg.29.2020.05.12.07.28.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 May 2020 07:28:05 -0700 (PDT) To: Jens Axboe Cc: linux-block , Linux Kernel Mailing List From: Denis Efremov Autocrypt: addr=efremov@linux.com; keydata= mQINBFsJUXwBEADDnzbOGE/X5ZdHqpK/kNmR7AY39b/rR+2Wm/VbQHV+jpGk8ZL07iOWnVe1 ZInSp3Ze+scB4ZK+y48z0YDvKUU3L85Nb31UASB2bgWIV+8tmW4kV8a2PosqIc4wp4/Qa2A/ Ip6q+bWurxOOjyJkfzt51p6Th4FTUsuoxINKRMjHrs/0y5oEc7Wt/1qk2ljmnSocg3fMxo8+ y6IxmXt5tYvt+FfBqx/1XwXuOSd0WOku+/jscYmBPwyrLdk/pMSnnld6a2Fp1zxWIKz+4VJm QEIlCTe5SO3h5sozpXeWS916VwwCuf8oov6706yC4MlmAqsQpBdoihQEA7zgh+pk10sCvviX FYM4gIcoMkKRex/NSqmeh3VmvQunEv6P+hNMKnIlZ2eJGQpz/ezwqNtV/przO95FSMOQxvQY 11TbyNxudW4FBx6K3fzKjw5dY2PrAUGfHbpI3wtVUNxSjcE6iaJHWUA+8R6FLnTXyEObRzTS fAjfiqcta+iLPdGGkYtmW1muy/v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y7X5IIsnAoxSrcFYq9nGfHNcXhm5x6WjYC0Kz8l4lfwWo8PIpZ8x57v gTH1PI5R4WdRQijLxLCW/AaiuoEYuOLAoW481XtZb0GRRe+Tm9z/fCbkEveyPiDK7oZahBM7 QdWEEV8mqJoOZ3xxqMlJrxKM9SDF+auB4zWGz5jGzCDAx/0qMUrVn2+v8i4oEKW6IUdV7axW Nk9a+EF5JSTbfv0JBYeSHK3WRklSYLdsMRhaCKhSbwo8Xgn/m6a92fKd3NnObvRe76iIEMSw 60iagNE6AFFzuF/GvoIHb2oDUIX4z+/D0TBWH9ADNptmuE+LZnlPUAAEzRgUFtlN5LtJP8ph Subject: [GIT PULL] Floppy cleanups for next Message-ID: <8d8cb63b-e1ff-ddef-a6e9-8f7adb21be60@linux.com> Date: Tue, 12 May 2020 17:28:02 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 Content-Language: en-US Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org Hi Jens, The following changes since commit 2ef96a5bb12be62ef75b5828c0aab838ebb29cb8: Linux 5.7-rc5 (2020-05-10 15:16:58 -0700) are available in the Git repository at: https://github.com/evdenis/linux-floppy tags/floppy-for-5.8 Please pull ---------------------------------------------------------------- Floppy patches for 5.8 Cleanups: - symbolic register names for x86,sparc64,sparc32,powerpc,parisc,m68k - split of local/global variables for drive,fdc - UBSAN warning suppress in setup_rw_floppy() Changes were compile tested on arm, sparc64, powerpc, m68k. Many patches introduce no binary changes by using defines instead of magic numbers. The patches were also tested with syzkaller and simple write/read/format tests on real hardware. Signed-off-by: Denis Efremov ---------------------------------------------------------------- Denis Efremov (4): floppy: use print_hex_dump() in setup_DMA() floppy: add FD_AUTODETECT_SIZE define for struct floppy_drive_params floppy: add defines for sizes of cmd & reply buffers of floppy_raw_cmd floppy: suppress UBSAN warning in setup_rw_floppy() Willy Tarreau (27): floppy: split the base port from the register in I/O accesses floppy: add references to 82077's extra registers floppy: use symbolic register names in the m68k port floppy: use symbolic register names in the parisc port floppy: use symbolic register names in the powerpc port floppy: use symbolic register names in the sparc32 port floppy: use symbolic register names in the sparc64 port floppy: use symbolic register names in the x86 port floppy: cleanup: make twaddle() not rely on current_{fdc,drive} anymore floppy: cleanup: make reset_fdc_info() not rely on current_fdc anymore floppy: cleanup: make show_floppy() not rely on current_fdc anymore floppy: cleanup: make wait_til_ready() not rely on current_fdc anymore floppy: cleanup: make output_byte() not rely on current_fdc anymore floppy: cleanup: make result() not rely on current_fdc anymore floppy: cleanup: make need_more_output() not rely on current_fdc anymore floppy: cleanup: make perpendicular_mode() not rely on current_fdc anymore floppy: cleanup: make fdc_configure() not rely on current_fdc anymore floppy: cleanup: make fdc_specify() not rely on current_{fdc,drive} anymore floppy: cleanup: make check_wp() not rely on current_{fdc,drive} anymore floppy: cleanup: make next_valid_format() not rely on current_drive anymore floppy: cleanup: make get_fdc_version() not rely on current_fdc anymore floppy: cleanup: do not iterate on current_fdc in DMA grab/release functions floppy: cleanup: add a few comments about expectations in certain functions floppy: cleanup: do not iterate on current_fdc in do_floppy_init() floppy: make sure to reset all FDCs upon resume() floppy: cleanup: get rid of current_reqD in favor of current_drive floppy: cleanup: make set_fdc() always set current_drive and current_fd arch/alpha/include/asm/floppy.h | 4 +- arch/arm/include/asm/floppy.h | 8 +- arch/m68k/include/asm/floppy.h | 27 ++++--- arch/mips/include/asm/mach-generic/floppy.h | 8 +- arch/mips/include/asm/mach-jazz/floppy.h | 8 +- arch/parisc/include/asm/floppy.h | 19 ++--- arch/powerpc/include/asm/floppy.h | 19 ++--- arch/sparc/include/asm/floppy_32.h | 50 ++++++------ arch/sparc/include/asm/floppy_64.h | 59 +++++++------- arch/x86/include/asm/floppy.h | 19 ++--- drivers/block/floppy.c | 456 ++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------------------------------- include/uapi/linux/fd.h | 26 +++++- include/uapi/linux/fdreg.h | 16 +++- 13 files changed, 384 insertions(+), 335 deletions(-)