From patchwork Sun Jan 22 18:14:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ondrej Zary X-Patchwork-Id: 46988 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1255512wrn; Sun, 22 Jan 2023 10:22:45 -0800 (PST) X-Google-Smtp-Source: AMrXdXvpPcQCpU1Cvo+o4aMKeei0Yrosv/B+GpfZangetWl6T9M3SjsEuh0IcMRMJRhDVps9UHsl X-Received: by 2002:a62:6492:0:b0:58d:90ae:495c with SMTP id y140-20020a626492000000b0058d90ae495cmr20831903pfb.11.1674411764929; Sun, 22 Jan 2023 10:22:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674411764; cv=none; d=google.com; s=arc-20160816; b=EGoA48x3xn4VJwcyWTo2WuxniLxgOZhO7MVAH64mUplDxCDB1fiOszXNC2gIyaapmj lp6SwvObxK9TdYCCEUWlBNOQMdwkw+AqxZnn897Bk9uoldHxj0TINQIcv9DxyuFc2LYO YCi4IQwflUFmxhoesZqWfj+4C90TFBo1O1KJUiGj1CbsYf8UBFZWZsRFNIHdIbpo0mTs gUpL9XMe2agqVUuDl7ADKrqA5NLTRD8JeilmP4YyOJ2zCjolFtftgJuj6Fgl186EkaLw nIAjjCHxNQfowtEHq+lQES04fUFujYm1emeiCn5h61PRfsDI/f38s0IZ8QWlFZNeCQUS PHwA== 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=9iyQmG6Jd0Ji4xTOT5o44SvEpZLmIZkMKSOXGnSR2Y8=; b=DfB2h+fdsYr/hULCTP2ncFpUkwzEQfPUZTRkborFyP14UHRT1i3DO/gF/RJVtf70D5 XTJyDSaSWYRIajnc0QQv/C4tgNmMQkhNpJBGMM8rPEcLQi2cCczDCWhYHcAcJfBjwEmD 757CqH/KtcwzBuGX1uYfCqnGylQGgBWuU1fS4yRycuHqzlkZmTwaxTcrLWwBKQGYP+s2 cX8l1GTNMEnIc5gcDaAxPwdmVT3TqcoXmDIZtOYEds1NRS0/rn6haeSisX5NQM6FV5n0 cZtHLFHZIhfgbZwZPQ2I9wd0vohB0/bx2QpTG0DBsChzoH0Zq0YRJFTtoJRjD9cEeXq1 x/4g== 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 t31-20020a056a00139f00b0056e4c95266bsi28438997pfg.77.2023.01.22.10.22.32; Sun, 22 Jan 2023 10:22:44 -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 S231489AbjAVSOZ (ORCPT + 99 others); Sun, 22 Jan 2023 13:14:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230034AbjAVSOX (ORCPT ); Sun, 22 Jan 2023 13:14:23 -0500 Received: from hosting.gsystem.sk (hosting.gsystem.sk [212.5.213.30]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1D6C110250; Sun, 22 Jan 2023 10:14:22 -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 310517A033B; Sun, 22 Jan 2023 19:14:21 +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] paride: Mark PARIDE as deprecated, point to PATA_PARPORT Date: Sun, 22 Jan 2023 19:14:15 +0100 Message-Id: <20230122181415.21031-1-linux@zary.sk> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230122075710.GA4046@lst.de> References: <20230122075710.GA4046@lst.de> 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?1755747990673328835?= Add Kconfig and runtime deprecation warnings to PARIDE, pointing users to PATA_PARPORT. Signed-off-by: Ondrej Zary Reviewed-by: Hannes Reinecke --- 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..010daf605728 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; + printk(KERN_WARNING "PARIDE is deprecated. Use PATA_PARPORT instead.\n"); + parp_drv = kzalloc(sizeof(*parp_drv), GFP_KERNEL); if (!parp_drv) return NULL;