Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2100004rdb; Tue, 3 Oct 2023 10:07:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGlKMXB5b6vdB8hu79e6n3BbAS/8uLvBhqF272VVAPMvrwx2HPIs20Ve3GCuEGlCFApx5xW X-Received: by 2002:a9d:73d5:0:b0:6c4:b339:2528 with SMTP id m21-20020a9d73d5000000b006c4b3392528mr15268358otk.16.1696352877564; Tue, 03 Oct 2023 10:07:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696352877; cv=none; d=google.com; s=arc-20160816; b=r3Pb7ra5wALZgt1yU1dVtGAjdj01S8HTxsSenSAHh/11Znp0o4SiCEvIok9RK/pkw2 sqE8wepd+2j/E0B5yoNPFPiIfXt6CWovo7+njOOTEqe7WVFKu25cAxnTChwU90Nm+80x DaF5MZl7tu2rlw17G2Ix4jIuYaBKL7TTtuWr67McPylwax4NtOKsEqJnjBtl31BlTQ2F DI3u8I946cJZY5gsUUCiyyta9nt+kvvlBnywf+jfb1CvUWdmz45IN3y2Mp2noHlvm0n5 6sorWVy6ON0pHtkAnholMcT2UtRLMQZzJox9uXJMI7K5pPsDobTvFIc20wpU1/CVo4Yl iy8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:content-disposition :content-transfer-encoding:mime-version:in-reply-to:references:cc :user-agent:date:subject:to:from; bh=HuDcUdTD+JN7qjhch+i2aANV1Ne86qTPT4rK/KTcZe0=; fh=ErEQh0DEVuTf3hHo5b7IIjRuuSkIG7claKkHmPUFeIU=; b=Vyr7yjkx4XVx0oNgLHw7IHSgju1iQ+GzhH194mpAIaNTINwk4x6B92zTku5blyFk5b w5KgmtdUxFMVWmbsu/nZPftutkojseuG0KcsoEsOmsbbd0CQ6asUWYJ2XfGnPgTF9LCZ Fdb9FbGq4MjkbFYrDZPmJZHvmSSwLKkRdCbuEjybufTKEuvDl57URKIMDdPddfrP6jh7 Lv3I698KOqdwm3FBmNOLoOfOz1Og+qgd0QB63EjL0Of0X0C/MeOCtzHvQ0pBfHENG98M 9co5sS98IPU5Bz/EuigFewdt7TY127ODNb9GgvqDEvttIoEcnJLgh22z9n7QKDJKlt2x 2deQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id m5-20020a638c05000000b005637e28270fsi1755385pgd.243.2023.10.03.10.07.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 10:07:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 46A8A82DC623; Tue, 3 Oct 2023 10:07:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231368AbjJCRHy (ORCPT + 99 others); Tue, 3 Oct 2023 13:07:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229639AbjJCRHy (ORCPT ); Tue, 3 Oct 2023 13:07:54 -0400 Received: from hosting.gsystem.sk (hosting.gsystem.sk [212.5.213.30]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6E023A7; Tue, 3 Oct 2023 10:07:50 -0700 (PDT) Received: from [192.168.0.2] (chello085216244195.chello.sk [85.216.244.195]) (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 83FF57A0090; Tue, 3 Oct 2023 19:07:48 +0200 (CEST) From: Ondrej Zary To: Sergey Shtylyov Subject: Re: [PATCH 1/4] pata_parport: fix pata_parport_devchk Date: Tue, 3 Oct 2023 19:07:45 +0200 User-Agent: KMail/1.9.10 Cc: Damien Le Moal , Sudip Mukherjee , Christoph Hellwig , Tim Waugh , linux-parport@lists.infradead.org, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230930191511.24994-1-linux@zary.sk> <20230930191511.24994-2-linux@zary.sk> In-Reply-To: X-KMail-QuotePrefix: > MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <202310031907.45632.linux@zary.sk> X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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 (howler.vger.email [0.0.0.0]); Tue, 03 Oct 2023 10:07:56 -0700 (PDT) On Monday 02 October 2023 20:43:09 Sergey Shtylyov wrote: > Hello! > > On 9/30/23 10:15 PM, Ondrej Zary wrote: > > > There's a 'x' missing in 0x55 in pata_parport_devchk(), causing the > > detection to always fail. Fix it. > > > > Signed-off-by: Ondrej Zary > > I think we need a Fixes: tag here... > > > --- > > drivers/ata/pata_parport/pata_parport.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/ata/pata_parport/pata_parport.c b/drivers/ata/pata_parport/pata_parport.c > > index 1af64d435d3c..258d189f42e5 100644 > > --- a/drivers/ata/pata_parport/pata_parport.c > > +++ b/drivers/ata/pata_parport/pata_parport.c > > @@ -64,7 +64,7 @@ static bool pata_parport_devchk(struct ata_port *ap, unsigned int device) > > pi->proto->write_regr(pi, 0, ATA_REG_NSECT, 0xaa); > > pi->proto->write_regr(pi, 0, ATA_REG_LBAL, 0x55); > > > > - pi->proto->write_regr(pi, 0, ATA_REG_NSECT, 055); > > + pi->proto->write_regr(pi, 0, ATA_REG_NSECT, 0x55); > > Oh, Gawd! How did this ever work?! :-/ > This bug seems to predate the Big PARIDE move... This code was not present in PARIDE - it's my bug. The function is a clone of ata_devchk() without direct port access. It's called only from softreset so nobody notices the breakage until something goes wrong. The CD-865 drive needs a reset to start working. -- Ondrej Zary