Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp483578rdb; Sat, 30 Sep 2023 12:18:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHMl7ROxb04LYMiII9RPxVXund/kccbcBEUUVY6VXlsis7x29VBvTuLtX9dcctDpuFOKnx0 X-Received: by 2002:a17:90b:50d:b0:273:83ac:5eb9 with SMTP id r13-20020a17090b050d00b0027383ac5eb9mr11899629pjz.4.1696101496339; Sat, 30 Sep 2023 12:18:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696101496; cv=none; d=google.com; s=arc-20160816; b=qazCjoL9yjPifEzD3+msw04oYoTXp3gDDzbgFTn9vS/Jd9EPdgsa/fDkfDdpUHuUxR 1LAM/G6GeInBrwD8u3olfPiKDGoXz0YeR8Q7oeaq34QHW+5BWDARegudPf+XARhh4kJr aiAOPCnGujkFjALhPGn4s2CIusVykXhbOnYL9r7QkIcdlpMRFaZdsQ2V/QGNIMdLrxZc Y/CzCoz5Lk/BAavK4RlVjEkI6eupJCwyEJ0XSh213cnR12P2lK82fc14D+Qv3hfY2NRX OYFdX8fOcichd7vZIVr4H5y3PcNe40emBhxthbW6tmhQpZ8xkbMI6HhLHAUdcBClK6Zq n8mg== 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 Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id cv15-20020a17090afd0f00b0026d0a89ad68si4116803pjb.43.2023.09.30.12.18.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Sep 2023 12:18:16 -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 921D780755C9; Sat, 30 Sep 2023 12:15:40 -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 S234750AbjI3TPf (ORCPT + 99 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 Content-Transfer-Encoding: 8bit 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:40 -0700 (PDT) Add missing ops->sff_set_devctl implementation. Signed-off-by: Ondrej Zary --- 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, -- Ondrej Zary