Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2967781pxf; Sun, 21 Mar 2021 13:23:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxe08ie4yaQXSl0JUv4aB0sA5hslQo8wxRKw6qS9rsNCYkrOCGHaKrGfHsBX8NMdKU2wn7d X-Received: by 2002:a17:906:68c5:: with SMTP id y5mr16226265ejr.371.1616358212855; Sun, 21 Mar 2021 13:23:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616358212; cv=none; d=google.com; s=arc-20160816; b=U4B5fbKOTJMqSQVMyy/P7pWMv5cIRMUcbYejhBM2kpTsMGNkxc6Uky11mzXdVf7cFK 4tQyExBFjZMFV3GNbKt9H5G1flaLwZ8hl4IFWO0AjMnlz0l3gIMyYvOOjPwulotYR0EP sH0R1DnSB1FAHRWvkL9SHYk/nLR8tDg4BHmVdq60Alq7ESC8Wq8hV18i4I+ekfSCOiyH otRFIUrg/Pg3FwSXumjjUjjNCTnMhqT5STYKdaOkIIqwVJW39wQ8/uTMIeIvGaSA4orr UdZaMEd0IDkp7M+PUQ0i9lKRCn5HKoEuYiQ9wXQEw/D4sbEbkDIcdtfz++RTmhGiD884 FJtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=VYavTWpR8kJi4uFcuxc3dx89IqJaQNv47WtMKTM4DOM=; b=WFg4UByBrQpbhSdZNpvGlt11AfySXg2Q/CLhB6EN9udoAWiyZW+DMsfTe1EeQS7QW9 e3hHiKnflARcf+R6NYm6mVZdXEYnVb1yx4iKuUdEwQZ25BDfzBl7jfuRgItdj9kvTvKM MeyGhbzlfhwo2ALm1xP44r5NqQGR4hklD+LxzjtmxU70oUjMldrYScoob4DdV64/u7Hk 9RRrHE+vrxJDAHkor+NYwo0l3+RxFM0gyo1Bms92/bCCEUgi+7IMq+qbxA6aQvcg+hJM acD/3FAgbz8xfoo++DfxaCfDNW6HLOhG9bZmu49LhYRCL7acyaXMFNDqA2sS4mj9wFV9 p1QQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g16si9685170ejm.310.2021.03.21.13.23.09; Sun, 21 Mar 2021 13:23:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230343AbhCUT40 (ORCPT + 99 others); Sun, 21 Mar 2021 15:56:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230250AbhCUTzb (ORCPT ); Sun, 21 Mar 2021 15:55:31 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::4]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C0502C061574; Sun, 21 Mar 2021 12:55:30 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id 2D41C92009C; Sun, 21 Mar 2021 20:55:27 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 274C992009B; Sun, 21 Mar 2021 20:55:27 +0100 (CET) Date: Sun, 21 Mar 2021 20:55:27 +0100 (CET) From: "Maciej W. Rozycki" To: linux-ide@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org cc: Jens Axboe , Christoph Hellwig Subject: [PATCH 2/3] pata_platform: Document `pio_mask' module parameter In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add MODULE_PARM_DESC documentation and a kernel-parameters.txt entry. Signed-off-by: Maciej W. Rozycki --- Documentation/admin-guide/kernel-parameters.txt | 7 +++++++ drivers/ata/pata_platform.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) linux-pata-platform-parm-desc.diff Index: linux-dolch/Documentation/admin-guide/kernel-parameters.txt =================================================================== --- linux-dolch.orig/Documentation/admin-guide/kernel-parameters.txt +++ linux-dolch/Documentation/admin-guide/kernel-parameters.txt @@ -3640,6 +3640,13 @@ By default set to 1 if CONFIG_PATA_WINBOND_VLB_MODULE, 0 otherwise. + pata_platform.pio_mask= [HW,LIBATA] + Format: + Supported PIO mode mask. Set individual bits to allow + the use of the respective PIO modes. Bit 0 is for + mode 0, bit 1 is for mode 1, and so on. Mode 0 only + allowed by default. + pause_on_oops= Halt all CPUs after the first oops has been printed for the specified number of seconds. This is to be used if Index: linux-dolch/drivers/ata/pata_platform.c =================================================================== --- linux-dolch.orig/drivers/ata/pata_platform.c +++ linux-dolch/drivers/ata/pata_platform.c @@ -24,6 +24,8 @@ #define DRV_VERSION "1.2" static int pio_mask = 1; +module_param(pio_mask, int, 0); +MODULE_PARM_DESC(pio_mask, "PIO modes supported, mode 0 only by default"); /* * Provide our own set_mode() as we don't want to change anything that has @@ -233,8 +235,6 @@ static struct platform_driver pata_platf module_platform_driver(pata_platform_driver); -module_param(pio_mask, int, 0); - MODULE_AUTHOR("Paul Mundt"); MODULE_DESCRIPTION("low-level driver for platform device ATA"); MODULE_LICENSE("GPL");