From patchwork Sat Sep 30 19:15:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ondrej Zary X-Patchwork-Id: 146965 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp544215vqb; Sat, 30 Sep 2023 12:18:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEM1ORQfdp4WoM+SerNitn8PEr9NYxI+kSmxyg1Qt5UDK8EeFhX19SZOtlAlE6pzTr/4K7h X-Received: by 2002:a05:6a00:428f:b0:68f:cdb8:ae33 with SMTP id bx15-20020a056a00428f00b0068fcdb8ae33mr12432502pfb.10.1696101499546; Sat, 30 Sep 2023 12:18:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696101499; cv=none; d=google.com; s=arc-20160816; b=XXD1CDZfdd96Qvq4Qv9VzxYHZHm7ZvDguRg6tprgTZELiFzQIYmM74iFPa7rVIGunL 3OXd6Mbso4WWSWu/KotJVsjBr/44nweuMS10AtOxgSKRH5O0Y9u2wKmmFIIzBjfGhWOG 6cGaG4s8VedkNlluz+PHVJR0bL7agSka/iSJS7CCFc59m6YVaP6cDcnDb5P9PD2tbc8T 9vqh3+jM9Sor2cwYU4plzTjwDbC1ky0ydy+FWzhR+0Ti8IDhYeQFT8vuB7Mu5POaG3mV QEKJA/csZHyWm0KXs2zwoF0BV7ftktNpyPVo15FU4oGMMZZc/ym5Qv/eCCdlFgEXj5c9 X/qw== 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=6VL/uVbb1MYeGZ4I2z/rsdUvh0HFuEu+FMj/oJYWyoo=; fh=HCzElfjdAw79VJwTPuLT/8QZsv7MtPddOgpBiXtV6sA=; b=kOH/Q4FHp3Sh3V7+EAHrLarEoDdtW9VMkumY/+3ZxE4HUplTpdhMyn0bJcWh9ZxtrP SeXy5XgMRO4MkTl/G6ShTe/7JLXMDvjqbCiFeayB+iK2oMUeliwL8KMRfsJBOwojkTy3 WV47r4XgoVRDEIrVmRhOLmLGjhBOFewnjmIZouThtwi9bnBgMXbWaHo7ZhZQ39Q5NS7f TAzdMxu8/FwFEFqh6Qjx1HD7W2TP1rUsi1L5zThZcwaBAB5KgCmMnAOW+qgOTpAM58UT 63/wvLh5jDFH6YDjgA4PA5BM42XQ/J3Oy4ORXCQ8AO6aBg1o58yOYYnV8QSY8CXABf2j fX+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id f20-20020a637554000000b00565dd3fbfdfsi23527843pgn.214.2023.09.30.12.18.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Sep 2023 12:18:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id D2AB38025737; Sat, 30 Sep 2023 12:15:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234751AbjI3TPf (ORCPT + 20 others); Sat, 30 Sep 2023 15:15:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231603AbjI3TPd (ORCPT ); Sat, 30 Sep 2023 15:15:33 -0400 Received: from hosting.gsystem.sk (hosting.gsystem.sk [212.5.213.30]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2CA15D3 for ; Sat, 30 Sep 2023 12:15:30 -0700 (PDT) Received: from gsql.ggedos.sk (off-20.infotel.telecom.sk [212.5.213.20]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by hosting.gsystem.sk (Postfix) with ESMTPSA id 03CF57A01C5; Sat, 30 Sep 2023 21:15:28 +0200 (CEST) From: Ondrej Zary To: Damien Le Moal , Sudip Mukherjee 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 2/4] pata_parport: implement set_devctl Date: Sat, 30 Sep 2023 21:15:09 +0200 Message-Id: <20230930191511.24994-3-linux@zary.sk> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230930191511.24994-1-linux@zary.sk> References: <20230930191511.24994-1-linux@zary.sk> 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 30 Sep 2023 12:15:55 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778491326348778620 X-GMAIL-MSGID: 1778491326348778620 Add missing ops->sff_set_devctl implementation. Signed-off-by: Ondrej Zary Reviewed-by: Sergey Shtylyov --- drivers/ata/pata_parport/pata_parport.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/ata/pata_parport/pata_parport.c b/drivers/ata/pata_parport/pata_parport.c index 258d189f42e5..cf87bbb52f1f 100644 --- a/drivers/ata/pata_parport/pata_parport.c +++ b/drivers/ata/pata_parport/pata_parport.c @@ -51,6 +51,13 @@ static void pata_parport_dev_select(struct ata_port *ap, unsigned int device) ata_sff_pause(ap); } +static void pata_parport_set_devctl(struct ata_port *ap, u8 ctl) +{ + struct pi_adapter *pi = ap->host->private_data; + + pi->proto->write_regr(pi, 1, 6, ctl); +} + static bool pata_parport_devchk(struct ata_port *ap, unsigned int device) { struct pi_adapter *pi = ap->host->private_data; @@ -252,6 +259,7 @@ static struct ata_port_operations pata_parport_port_ops = { .hardreset = NULL, .sff_dev_select = pata_parport_dev_select, + .sff_set_devctl = pata_parport_set_devctl, .sff_check_status = pata_parport_check_status, .sff_check_altstatus = pata_parport_check_altstatus, .sff_tf_load = pata_parport_tf_load,