From patchwork Sun Jan 22 20:10:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ondrej Zary X-Patchwork-Id: 47007 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1289889wrn; Sun, 22 Jan 2023 12:20:55 -0800 (PST) X-Google-Smtp-Source: AMrXdXsYmea+PT67pUXORd+sujg9w0vYCuIssgqyM6M1H37LldwNB+bU7qX9I5RyH0xYjCZkjjws X-Received: by 2002:a05:6a00:1da0:b0:58d:f607:52f7 with SMTP id z32-20020a056a001da000b0058df60752f7mr16084606pfw.12.1674418855060; Sun, 22 Jan 2023 12:20:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674418855; cv=none; d=google.com; s=arc-20160816; b=o3o6xlFeCkCz7ZJ0LTvfg8v2J4e2PwcbtRg9Rh3QGkffygfRCcm4ch5PtC6rdDmn9U 5bpIL76jTe5CcqJ1bSfj2L6UHE7zIas4p7q89eML3g/JPEQ43g60w+4bckOS1wbM7Qhs 8+9bO8P49yEmxFucPtNyXpg8b4JAFMQufVXOX9Q1BaOsDXNifz9MNzTDJGqn29J7YInM vrI2Z/kQNuP2XvhAkdcsT2nu/lj2zhnGMZAAwv9eOFevOeG8jMaKPL60h+eFV+joTyPy yYJqUrZMBTqZpWLANnRpy/C0eDmkwIrqgH5i2x7AHCBHRZgHEUgYXyMVa276k4/qAAnB ZYwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=FbBxKNLeQ7wPUItNB95GOJjh/YKfZSWJffq8Efr3Y7k=; b=fwvXagHrv3lGovbtNZyZsRgtE/z0wKhopWc24z9a/IYHA/tS4HA749kdmynruQkcTX XHIBFOqipEzEjY8X3pi9TiPrLN0u4GjYKWHeQhlvyRViguuDijajc1rmHvs9eP7Egh08 hevwousUNWFNsHCxT/nLxtzWMK4S2Df2kz19JwJ/SSyFQPedw5QpyqKTnc4POg7qsnmC yS6iu8OdWTWdwd5257x+5A0VMyEmdm8/rQ1uNSYlDD3x0HitSsAsu9V8WDZVtiRTz4xl A65KHCZhAGvvMxCF+wYoAXtrtAJ4hgqS1p9B1r3B4O0rLT9DyyrzW9GNqu+89sUaCrRG rBpw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h5-20020aa79f45000000b0058bafc3894bsi30962399pfr.190.2023.01.22.12.20.43; Sun, 22 Jan 2023 12:20:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229971AbjAVUK6 (ORCPT + 99 others); Sun, 22 Jan 2023 15:10:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230131AbjAVUKz (ORCPT ); Sun, 22 Jan 2023 15:10:55 -0500 Received: from hosting.gsystem.sk (hosting.gsystem.sk [212.5.213.30]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7284B12F37; Sun, 22 Jan 2023 12:10:53 -0800 (PST) Received: from gsql.ggedos.sk (off-20.infotel.telecom.sk [212.5.213.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by hosting.gsystem.sk (Postfix) with ESMTPSA id A07C27A033B; Sun, 22 Jan 2023 21:10:52 +0100 (CET) From: Ondrej Zary To: Damien Le Moal Cc: Christoph Hellwig , Sergey Shtylyov , Jens Axboe , Tim Waugh , linux-block@vger.kernel.org, linux-parport@lists.infradead.org, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] paride: Mark PARIDE as deprecated, point to PATA_PARPORT Date: Sun, 22 Jan 2023 21:10:46 +0100 Message-Id: <20230122201046.1924-1-linux@zary.sk> X-Mailer: git-send-email 2.20.1 In-Reply-To: <89c5f007-3be3-f1d1-f6f3-c5c1923a9f2a@omp.ru> References: <89c5f007-3be3-f1d1-f6f3-c5c1923a9f2a@omp.ru> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755747990673328835?= X-GMAIL-MSGID: =?utf-8?q?1755755425270984105?= Add Kconfig and runtime deprecation warnings to PARIDE, pointing users to PATA_PARPORT. Signed-off-by: Ondrej Zary --- drivers/block/Kconfig | 4 +++- drivers/block/paride/paride.c | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig index a2184b428493..3a2065c6a4d7 100644 --- a/drivers/block/Kconfig +++ b/drivers/block/Kconfig @@ -104,7 +104,7 @@ config GDROM You can also build this as a module which will be called gdrom. config PARIDE - tristate "Parallel port IDE device support" + tristate "Parallel port IDE device support (DEPRECATED)" depends on PARPORT_PC help There are many external CD-ROM and disk devices that connect through @@ -130,6 +130,8 @@ config PARIDE "MicroSolutions backpack protocol", "DataStor Commuter protocol" etc.). + This driver is deprecated, replaced by libata-based PATA_PARPORT. + source "drivers/block/paride/Kconfig" source "drivers/block/mtip32xx/Kconfig" diff --git a/drivers/block/paride/paride.c b/drivers/block/paride/paride.c index 0e287993b778..a4a49da9d0d2 100644 --- a/drivers/block/paride/paride.c +++ b/drivers/block/paride/paride.c @@ -452,6 +452,8 @@ void *pi_register_driver(char *name) struct parport_driver *parp_drv; int ret; + pr_warn("PARIDE is deprecated. Use PATA_PARPORT instead.\n"); + parp_drv = kzalloc(sizeof(*parp_drv), GFP_KERNEL); if (!parp_drv) return NULL;