Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4545088pxb; Tue, 22 Feb 2022 00:46:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJzlJWFWEwHyFpaiEvmE6ORQFQ4VcSMKWXVjit240wXI+3kU9FYrUVjrXJD4gw/HCrmGekeb X-Received: by 2002:a17:906:a152:b0:6cd:3098:18c9 with SMTP id bu18-20020a170906a15200b006cd309818c9mr18550876ejb.422.1645519594265; Tue, 22 Feb 2022 00:46:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645519594; cv=none; d=google.com; s=arc-20160816; b=Oy9gpYnu5OP0JZXfLtP9rhObwLjlFvLIaKBhBMwTQmJqm1Jtz+McyVtcYNniu800RQ hAOwNUnWd/cPi73AbcAzrzdrmj9I6OPyMGPJIZMpgSFc5814XEdaEafIlYQjwJ4/XQF8 lLT9pIwfptkmdWnINNHWFCAGAu7lIdh4OkBcPdp3nmWG3d1eNtrJrX1K+VgWTF7Xap7v qPAAV1wz/npgsiTFZqDeklOcvvaTWuMXhk6p1miAFo8B+wUdwJdqTZ5T5TF+3V5IJfy7 IxdO/qiW2xxCriNoTONiLSMTqFmgAZT30YljBJgMpvXrwjVVKSHOtcPvBAL2QVZfMYdb a2cA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=IZoABJEmoXtiBujQG9In6e4sIjApSwUlmQ5pmlXekDg=; b=KfErNzGDdnbLVpLDScKQXPoztz0RBs/Y6+PzccCewCuZfwUvb5embLNvUG3lBNP/qh US5N622UZ22uKiXP/OIMPd0piogAuE8S9g08XDvVo4uZm3ymd9xO/5hEBQ79DhmloBRG 20HWAaCIuOBEAzT7pfbFdsWUzEM9LjE/N5X6orzm6uLElKWqMDwXGnEb1x12+fMjxFDy Fttr7oiiBaWc93/Pzo5/0hQc4QMwoJZJrgl6f/s7gnSpsjr47kVe+xw/nmeDbweyXZIL tFvav2uJgDXdba3oTPoKa3b5Y6ucYFFKQNqvsj19cdtRbBewDCopIf76IyWwfTZ7GfQV VFBw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id el9si11241113ejc.500.2022.02.22.00.46.11; Tue, 22 Feb 2022 00:46:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229877AbiBVIf4 (ORCPT + 99 others); Tue, 22 Feb 2022 03:35:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229870AbiBVIfy (ORCPT ); Tue, 22 Feb 2022 03:35:54 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78326159281; Tue, 22 Feb 2022 00:35:29 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id 0512868AA6; Tue, 22 Feb 2022 09:35:26 +0100 (CET) Date: Tue, 22 Feb 2022 09:35:25 +0100 From: Christoph Hellwig To: Ondrej Zary Cc: Damien Le Moal , Christoph Hellwig , 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: Re: [PATCH] pata_parport: second preview Message-ID: <20220222083525.GB5899@lst.de> References: <20220220224909.8032-1-linux@zary.sk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220220224909.8032-1-linux@zary.sk> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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 On Sun, Feb 20, 2022 at 11:49:09PM +0100, Ondrej Zary wrote: > Protocol registration could be improved - I don't like protocols[] and > protocol numbers, devices should probably be created by protocol name. > Also the LPT port base addresses should probably be replaced by port names > (like parport0). > > The bpck driver seems to need to know if a CD drive is attached (weird) but > I doubt that I can get such info from libata. You can check adev->class == ATA_DEV_ATAPI, there's a bunch of drivers that already do that. I'll try to take a look at the actual patch once I find a bit of time.