Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp39361rwl; Thu, 6 Apr 2023 12:51:42 -0700 (PDT) X-Google-Smtp-Source: AKy350YHDqhsxjfA+7Li/nv0TXE56lemRdFbQxlyFUhos38BldmcjuohjtGn6PWQiJ2uxf60pYLJ X-Received: by 2002:aa7:d4ca:0:b0:4fa:4b1c:5ea3 with SMTP id t10-20020aa7d4ca000000b004fa4b1c5ea3mr737374edr.23.1680810702326; Thu, 06 Apr 2023 12:51:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680810702; cv=none; d=google.com; s=arc-20160816; b=OgulGp07e+GfWrp8WmSIjycH3luFA2rITvijKrNRJS5UGmX2G7ZKwaCtlr7GXsUiS6 yNG3PbU3RNGIcTpLIj9ng4s2kxj9Ybj8qfFrUIKE+NUhlosK1p/ey3kA5bYCuhzEO9EE ZgM0w3KCkldC+ftSDy4yzdlIZpyru0Cu1lX1JHWBxjB98jqL8NDUlTtgTr+HsggOs0U1 JxwNcxBfWvMhtNZV1Oa8YaqMIePc35lpT2kDMJaWwkv7k4eoyd1o3Kckrv3khAZoOz99 Xb0VU4XWpcbLL0npsTDCsHz3GF7gp4fS+9x0iiPuLMUwDPYUDzTx7QLhkSI7ETZdg72j jUOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=oH731naMHHCPPklCz4RtKBMYpDrCLZ3z1aOmVume01Q=; b=VWo+Xx9Kx+FJ7X4vvJTFi88ODAC//5UGBoYW7geVQkpBs+FexAmm3Dak6u8bqSY63B eh+yxkJpBhF6e29pGADVix/HXkpeP5vmOCtF+Xh1LFQqCn/q/n8WVcpkZ3XVCYNOtBp3 B7sVcd/MPRttu0YbiEkXEPUgDjP5vPV/skA5NqDeumcv7p6nLWObFTjOTu5B8P7ChVjr lWd7JQpEl4ieAiEshyWizRQ9i4dmasiD4HGHeltUvM7Ke6FgcP8sf9tqNDa1IPbBLkUR MU735xfiH4umcmmbNVMpwBbq3cc+f2XOKFW5kWKH58JDcBPmQRUZtykYqjrvR9rZ0Wfr 7pgg== 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 w14-20020aa7da4e000000b004ced100b0b7si2082281eds.316.2023.04.06.12.51.16; Thu, 06 Apr 2023 12:51:42 -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; 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 S238082AbjDFTuF (ORCPT + 99 others); Thu, 6 Apr 2023 15:50:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237736AbjDFTtw (ORCPT ); Thu, 6 Apr 2023 15:49:52 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0A462C7; Thu, 6 Apr 2023 12:49:50 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id 2873992009C; Thu, 6 Apr 2023 21:49:50 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 197BA92009B; Thu, 6 Apr 2023 20:49:50 +0100 (BST) Date: Thu, 6 Apr 2023 20:49:50 +0100 (BST) From: "Maciej W. Rozycki" To: Randy Dunlap cc: linux-kernel@vger.kernel.org, Sudip Mukherjee , "David S. Miller" , sparclinux@vger.kernel.org, Sam Ravnborg , linux-parport@lists.infradead.org Subject: Re: [PATCH] parport_pc: don't allow driver for SPARC32 In-Reply-To: <20230406160548.25721-1-rdunlap@infradead.org> Message-ID: References: <20230406160548.25721-1-rdunlap@infradead.org> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=0.0 required=5.0 tests=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 Thu, 6 Apr 2023, Randy Dunlap wrote: > arch/sparc/kernel/ebus.o is only built for SPARC64. > ns87303_lock is only built for SPARC64. > arch/sparc/include/asm/parport.h says that it is for sparc64. > Various documentation on the internet says that ebus is for UltraSPARC > systems (64-bit). > > Therefore don't allow PARPORT_PC to be built for SPARC32. 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. Maciej