Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1521927rdb; Mon, 2 Oct 2023 12:07:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEw1IzPRlrAAf3ELihZwVpmbgpmhu5IPIXOncUt9ZCrLa7fMPgqoe6yaPZ1zFiE24ECF6nW X-Received: by 2002:a05:6a20:3d90:b0:15e:10e:12f3 with SMTP id s16-20020a056a203d9000b0015e010e12f3mr13407547pzi.0.1696273664121; Mon, 02 Oct 2023 12:07:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696273664; cv=none; d=google.com; s=arc-20160816; b=AAx3wqsq3M54wJCcsJjhEnojxXQZVSAcQKeFziLfFQcrvND8MTzGWwwNiqowTK5c+4 v465wGiR5XFlwGUVaulQ33cobdsq4ewgDC5ySPqAw7XYkcwUdG2eGjMOP64w90KYk0+u meAGkY4KbG4EdByY0ZuehwXi4h0Gv66IKrhwlQ5NbHhHmalcRYZa2ZT7ompsgXEJqVaX 2ELGDVfAVc65oYTq7tu+xPzy6lk8AP+fL7hcgKuw9eTpkFks57DeM6BUomOO05j/9Sbg d57Yk8AMZl+GXrCnS0Z7hQfeWdAZ5Flu8V8p7LDqfQHaAQJMiDVsz++sf2K3SiuOSsMZ FQrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject; bh=aXYtnQk3sfS6XRslJU4Jyl7M6tL3Fxvcgjz/Ksxsc7g=; fh=0eQPtHXGm/+c7cbfr+DgnEzE/IWeFhGrWAOGzEZqwik=; b=nc0vGAhbTitjitAQcj19zZRPZUQYQmQXAQNEBgnMRsGz27qynCZL8iKHMJtKq58DGZ CUOawD5O8wHGD0vGLchd2XXrXeiBrFXRiFhJXFvGCjl4ofj7AwRPuLH2oRNHGoOdbUKR TB0GpGDuAlEPWdb1MP6fnPeqrYoJTHKKOMMe6e2eF575Ts5dLlYwMSZde8kuwQ1vFEbA FKec1g9z1clsvROpKAKhNE+rllnUxESRYcfzaA6RyIV3cE96/paT4Nx39k9OKlb5e1EJ iGKifhuJS4sBxr3Pp634RBIVOTF6IZDgsnNKoBVkwAV7OR+QBnXND0c1UC106A3SLpOU DA6Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id f4-20020a170902684400b001bbc855a8fcsi25882247pln.488.2023.10.02.12.07.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 12:07:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 20AA9809B0BB; Mon, 2 Oct 2023 11:43:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238769AbjJBSnT (ORCPT + 99 others); Mon, 2 Oct 2023 14:43:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232711AbjJBSnS (ORCPT ); Mon, 2 Oct 2023 14:43:18 -0400 Received: from mx01.omp.ru (mx01.omp.ru [90.154.21.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B416EAB; Mon, 2 Oct 2023 11:43:14 -0700 (PDT) Received: from [192.168.1.103] (178.176.75.5) by msexch01.omp.ru (10.188.4.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.986.14; Mon, 2 Oct 2023 21:43:10 +0300 Subject: Re: [PATCH 1/4] pata_parport: fix pata_parport_devchk To: Ondrej Zary , Damien Le Moal , Sudip Mukherjee CC: Christoph Hellwig , Jens Axboe , Tim Waugh , , , , References: <20230930191511.24994-1-linux@zary.sk> <20230930191511.24994-2-linux@zary.sk> From: Sergey Shtylyov Organization: Open Mobile Platform Message-ID: Date: Mon, 2 Oct 2023 21:43:09 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20230930191511.24994-2-linux@zary.sk> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [178.176.75.5] X-ClientProxiedBy: msexch01.omp.ru (10.188.4.12) To msexch01.omp.ru (10.188.4.12) X-KSE-ServerInfo: msexch01.omp.ru, 9 X-KSE-AntiSpam-Interceptor-Info: scan successful X-KSE-AntiSpam-Version: 5.9.59, Database issued on: 10/02/2023 18:24:27 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 59 X-KSE-AntiSpam-Info: Lua profiles 180294 [Oct 02 2023] X-KSE-AntiSpam-Info: Version: 5.9.59.0 X-KSE-AntiSpam-Info: Envelope from: s.shtylyov@omp.ru X-KSE-AntiSpam-Info: LuaCore: 535 535 da804c0ea8918f802fc60e7a20ba49783d957ba2 X-KSE-AntiSpam-Info: {rep_avail} X-KSE-AntiSpam-Info: {Tracking_from_domain_doesnt_match_to} X-KSE-AntiSpam-Info: {relay has no DNS name} X-KSE-AntiSpam-Info: {SMTP from is not routable} X-KSE-AntiSpam-Info: {Found in DNSBL: 178.176.75.5 in (user) b.barracudacentral.org} X-KSE-AntiSpam-Info: 127.0.0.199:7.1.2;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;omp.ru:7.1.1 X-KSE-AntiSpam-Info: FromAlignment: s X-KSE-AntiSpam-Info: {rdns complete} X-KSE-AntiSpam-Info: {fromrtbl complete} X-KSE-AntiSpam-Info: ApMailHostAddress: 178.176.75.5 X-KSE-AntiSpam-Info: Rate: 59 X-KSE-AntiSpam-Info: Status: not_detected X-KSE-AntiSpam-Info: Method: none X-KSE-AntiSpam-Info: Auth:dmarc=none header.from=omp.ru;spf=none smtp.mailfrom=omp.ru;dkim=none X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Heuristic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 10/02/2023 18:30:00 X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 10/2/2023 5:26:00 PM X-KSE-Attachment-Filter-Triggered-Rules: Clean X-KSE-Attachment-Filter-Triggered-Filters: Clean X-KSE-BulkMessagesFiltering-Scan-Result: InTheLimit X-Spam-Status: No, score=-3.1 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email 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 (pete.vger.email [0.0.0.0]); Mon, 02 Oct 2023 11:43:30 -0700 (PDT) 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... > pi->proto->write_regr(pi, 0, ATA_REG_LBAL, 0xaa); > > nsect = pi->proto->read_regr(pi, 0, ATA_REG_NSECT); > MBR, Sergey