Received: by 2002:ac8:156:0:b0:3e0:cd10:60c8 with SMTP id f22csp126205qtg; Thu, 6 Apr 2023 14:34:12 -0700 (PDT) X-Google-Smtp-Source: AKy350Zg8N2KSP6L4Qb/bBw3VXQcmtgyJJaEJ/RLHtXvvKMkhxPt5prhe9vfZ9DguR6JdU4WXXbZ X-Received: by 2002:a05:6a20:a89c:b0:dd:2577:4028 with SMTP id ca28-20020a056a20a89c00b000dd25774028mr776824pzb.10.1680816852521; Thu, 06 Apr 2023 14:34:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680816852; cv=none; d=google.com; s=arc-20160816; b=D5rNseE4Nq7ZEv9o/mJ6e9uJ00n3quqCEx6SE/KtWRBcjvPUcXNEQQIv3oJuPL+jO3 28AYK+xHkBxHSZnlB7fP8+RuJXzpbya0nUDyxn38OVjHiqX04jsuKTNt8Iz4H8Bsyyuf LBB0VCxkYL9qz/UtmQ3it6e1hanO4LAN1iBHIGw8kSFRNJEZnfS15oKH7SyfoxU2RYHI zadv6IB+SjymPEdNOLUARw9Ie5mi0UMag4zInMZmObT3vmeA9rrcXZE3v2K70F2Wt3rs LQtmLnDGZzf/l24/Y6PWuzbRacYaCvridJjO+zUtqQdsxuqRP9MNBvrn00gUvLOxi0Z0 shSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=chn8p8fTTOkPGyLbQXcT8NlPwb7SWv+j2mvpCDHidvg=; b=afn4sbCWAY0xkgG4A+CRq9cJDRqU2Fl4Ekf4iKpsu58DLBQ51X1KKIf0yIGprocnZ/ 88D2jc0J5esCllaML6Klo6lcnEqDocD6UpxOwX2TN75ZuHz0yYiyI53/dgxgagiZRyjg YQFrQlAdgZMi0z/KO1aE4ezvEjscIQP6wc8/ehiFqlIphLI2afAtSYhk5iTlNXt3ZX7r ZMFoOC4zAHJjNPeycXRc303ub80bJuwQ7/MHTJB4/Kb9zsYQz+3T2Ln94hiX2QmH1Bwh N4KgZgYNmeAY1x39D5k9ClEE+JEc28721VjGK6oRaXk/e8E5gFN8vayrCiVgPIZLmHYo SidA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=ASF7PERF; 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 k6-20020a634b46000000b00513fde6403bsi2023945pgl.456.2023.04.06.14.34.00; Thu, 06 Apr 2023 14:34:12 -0700 (PDT) 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; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=ASF7PERF; 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 S237725AbjDFVcR (ORCPT + 99 others); Thu, 6 Apr 2023 17:32:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236968AbjDFVcG (ORCPT ); Thu, 6 Apr 2023 17:32:06 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D110C61B0; Thu, 6 Apr 2023 14:32:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=chn8p8fTTOkPGyLbQXcT8NlPwb7SWv+j2mvpCDHidvg=; b=ASF7PERFMEDzrvNGEmjrCfqpBK yDDmjGou1lNRg0MTqgcURtjEC1azaLAepuxGBEMRxJ0Msj1Phlmp42/EiGPsVT7N+7ANNgNnWNh/G frL5rIllOtdDzgxLeW0VcMYfP9IPmKDUEGvTNE+EFisrPr3h4WPJQwLaCKgphg08X9wRl1ylr/cnb KWNNLUDQMjRKJRS6rm/B0izphz4t24OaxNHA4J5FUmABTYX5wxLPQHBFQGHK5YEPR5h3v6BiyNYOe KmpnWk7BuSPiFzrgUnxkqWbjKHu4U3KugwNciLlCvcdeRtmixHQxaeUVrDI+8KuUjYvHrhEPA/lPZ /DgnalHA==; Received: from [2601:1c2:980:9ec0::2764] by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1pkXD5-008dqf-1l; Thu, 06 Apr 2023 21:31:59 +0000 Message-ID: Date: Thu, 6 Apr 2023 14:31:58 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH] parport_pc: don't allow driver for SPARC32 Content-Language: en-US To: "Maciej W. Rozycki" , Sam Ravnborg Cc: linux-kernel@vger.kernel.org, Sudip Mukherjee , "David S. Miller" , sparclinux@vger.kernel.org, linux-parport@lists.infradead.org References: <20230406160548.25721-1-rdunlap@infradead.org> <20230406203207.GA1534216@ravnborg.org> From: Randy Dunlap In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 4/6/23 14:01, Maciej W. Rozycki wrote: > Hi Sam, > >>> This looks completely wrong to me, any ordinary PCI parallel port card >>> ought just to work as long as you have PCI (S390 is special I'm told). >>> What needs to be done is AFAICT just making `parport_pc_find_nonpci_ports' >>> in arch/sparc/include/asm/parport.h SPARC64-specific, i.e.: >>> >>> static int parport_pc_find_nonpci_ports(int autoirq, int autodma) >>> { >>> return (IS_ENABLED(CONFIG_SPARC64) && >>> platform_driver_register(&ecpp_driver)); >>> } >>> >>> or suchlike and let the optimiser get rid of all the unwanted unsupported >>> stuff. >> >> arch/sparc/include/asm/parport.h is sparc64 specific - and it will >> result in the wrong result if it is pulled in for sparc32 builds. >> This is what we see today. >> >> Randy's suggestion is fine, as we avoid building parport support >> for sparc32. If someone shows up and need parport support >> for sparc32 then we could look into how to enable it. >> Until then, we are better helped avoiding building the driver. > > I disagree. Why artificially prevent perfectly good hardware from > working with a perfectly good driver especially as the fix is just a > trivial exercise? And I offered a solution. > > I don't have a SPARC toolchain handy or I could even try and build it > (but I'm sure there are many people around who can do it without bending > backwards). https://mirrors.edge.kernel.org/pub/tools/crosstool/ -- ~Randy