Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2803031rdb; Wed, 4 Oct 2023 11:53:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEXRv0dwZQH/fGj1KRYnDAeQ2YE8LIaplWyxpPAzZiAh3lh95HBv3Wydmp4rbQ/0N65HY8v X-Received: by 2002:a17:90a:bc92:b0:263:fbe5:2125 with SMTP id x18-20020a17090abc9200b00263fbe52125mr2958946pjr.15.1696445611712; Wed, 04 Oct 2023 11:53:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696445611; cv=none; d=google.com; s=arc-20160816; b=HDEfYpNKUrVPmmCx2EG5ihSRiFMZrsbfmMGaOVPoH9JqghhBTgs/KCwDNXCpc2WHzn 5goz8uhQMyyldroImPMlDVLAmxQ7BpccyW0nPH18EmsPlzveFJuwYOiVwAdyyQrNrD7C amKeSeypgTfhIRwG99dxmxX/1nAUl3t8wdOCryxrRZuhIY6C218annKm1D7osyWTVxu6 6dZRTTR2SqTKXIhuUGZJqCQS0EVC2rAyVkrPdTqTZbVHGzNolDUwmtQ+/SWwoz/C8sYs 7tsg4hPpMG6ZK2rNQop/0ueES/dSeLcVWGRQR0KBZm0sYR9oxMZyChWLg+zCmIAVGBHt JDCQ== 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=4lqZ8PHjbkjq1dLhJLmf4HFUK26YsM51zmaiDBjQJHY=; fh=0Kn3fvtcnx6vVXAlmep6T/Q5RzgM4nGjbgzeaq8HuW4=; b=zTWX6LU+x0OE1t4IOc1LT0y1cLy4gaVGhuieR2mIlxJelbxODAYsYlF7YT9qWI9deK qgG36EihNrLWj3C0Re2IBWxj21xGGjOm6UhtHSdfCpnE07DAuo7uEB7o4W0vgWWaJViO mpCqILTUlXCQFqGQCLlBPIUq3mFBZdSi9OcJ1Q3AzKNFrdikYjhXUrd0Ysif9YAH8Sgh wEoKKT9F+EHp8ZUyh3OThh1+xv4DlZw2EJgSsSIn9yZ2JJ+Lv00wOjk6tqL9LYNM3mYP A5WhLLXUTgbI7GBn+vE8kqmk8XNbAe8rzgZJYrrhJd+bKywG9rb/BZv9W/RM1eMzAoyO qqCQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id bf20-20020a17090b0b1400b0027491203b43si1920275pjb.189.2023.10.04.11.53.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 11:53:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 D11B281352A0; Wed, 4 Oct 2023 11:53:30 -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 S244601AbjJDSxW (ORCPT + 99 others); Wed, 4 Oct 2023 14:53:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244502AbjJDSxM (ORCPT ); Wed, 4 Oct 2023 14:53:12 -0400 Received: from hosting.gsystem.sk (hosting.gsystem.sk [212.5.213.30]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 360EEEC; Wed, 4 Oct 2023 11:52:46 -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 76F507A0648; Wed, 4 Oct 2023 20:52:45 +0200 (CEST) From: Ondrej Zary To: Damien Le Moal , Sudip Mukherjee Cc: Christoph Hellwig , Sergey Shtylyov , Tim Waugh , linux-parport@lists.infradead.org, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] ata: pata_parport: implement set_devctl Date: Wed, 4 Oct 2023 20:52:33 +0200 Message-Id: <20231004185235.27417-3-linux@zary.sk> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20231004185235.27417-1-linux@zary.sk> References: <20231004185235.27417-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, RCVD_IN_DNSWL_BLOCKED,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]); Wed, 04 Oct 2023 11:53:30 -0700 (PDT) Add missing ops->sff_set_devctl implementation. Fixes: 246a1c4c6b7f ("ata: pata_parport: add driver (PARIDE replacement)") Reviewed-by: Sergey Shtylyov 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