Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp333656iob; Thu, 28 Apr 2022 03:36:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxIbQi9LtWSudEPEAkhAleMVu4VliIuqF/fuKlTkgfPkZ6afK8VjLV+P7fb20jAgawpM9k X-Received: by 2002:a05:6402:27d1:b0:426:29ee:c689 with SMTP id c17-20020a05640227d100b0042629eec689mr2380463ede.290.1651142193873; Thu, 28 Apr 2022 03:36:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651142193; cv=none; d=google.com; s=arc-20160816; b=G4w1zHJsuDp9UHSfddFug6ZIdJokW5xdMBn/7VgFaImUPQ63VdJlQrz1Oka0gSK0DI AWXnBf8tPtKIiUehzFQsztYIfbHyGf/O5OKE9shHpsOdnYiMWCO8xWpm/j0nTFPBx6bI DTrQZvH+97fX/MbKHHSJeu4zGtb/9xm5FMtdtuadNTFi5NMyVddoi0fMxQcTM5y06XV8 HUbUpO9ol/9OHp/UrgeWSMFD6pUhyri4ipsqpdvQCjVULI9O9QMuWffPJBP1ksXQIWvL uCdqRrzXw5TEQ9yhOKrbvbIlFp/CyIrRPVw4WPpMKOorRMAWvEiLLANOd+u2zYQmkDT7 tODw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=JfuwvexsGlxeqIAvaXAqotSD/+HeYbV14aKZjl6O6YY=; b=d9L31zN4bilWOvTZ3h6f7N46VON88xtiUhBjwPPjVaBVoYcgr3941RIca4xYHEmnn8 RyLJjwQFz8Q5ldVCUv8S1NqyuIiLYejxB8Sx4qk0srysktOZqV2qvy4d5BtVkQ0HQJur GGBNhYrN1SJJGiHsrrRVSQVQ8hSBih0gsC6c2RHLrDtdeYU5VWBOcIlOeIMkFaKRipoC qI+7uy3mkabUWCLFnXu8l/y8QUeACnmxEue2G/VI6ewCaauUpU9Jeh09C2w8ESC9G4rV RR1CJwzK2dPJ43rau/QlhS8YaYWeFU4B08FY/kVTx3sClOrXbkHj5o0yyBu6ojV/maJM MACA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MM4aou7b; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k12-20020a508acc000000b00425b57c4593si3566008edk.163.2022.04.28.03.36.00; Thu, 28 Apr 2022 03:36:33 -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=@linuxfoundation.org header.s=korg header.b=MM4aou7b; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243244AbiD1GRF (ORCPT + 99 others); Thu, 28 Apr 2022 02:17:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231479AbiD1GRD (ORCPT ); Thu, 28 Apr 2022 02:17:03 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C6E621257 for ; Wed, 27 Apr 2022 23:13:50 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 2A13AB82B2B for ; Thu, 28 Apr 2022 06:13:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7CD9CC385A0; Thu, 28 Apr 2022 06:13:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1651126427; bh=oipGbngq1gZo295e2cSvyLZBfjBxWVkQIRHYavIJvKk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MM4aou7b6uTZ8Z7TnesdkB8nOuHoPrBWBuvAazpJnPQCr9vbr9CInsUpBX/wfnyQ1 S7ya2jmiUULQvXRL2R4Hf+VFZbAysoanFKFuDUuJ9aT/z6/8HJOb2CEudCSkOVqf1z xpMiqzJaTkBTCLVcw9CrZ4qEgYiSb/08NHL3ggWc= Date: Thu, 28 Apr 2022 08:13:41 +0200 From: Greg Kroah-Hartman To: Sergey Shtylyov Cc: "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, Marc Zyngier Subject: Re: [PATCH v2] platform: finally disallow IRQ0 in platform_get_irq() and its ilk Message-ID: References: <025679e1-1f0a-ae4b-4369-01164f691511@omp.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Wed, Apr 27, 2022 at 09:59:41PM +0300, Sergey Shtylyov wrote: > Hello! > > On 4/26/22 1:46 PM, Greg Kroah-Hartman wrote: > > >> The commit a85a6c86c25b ("driver core: platform: Clarify that IRQ 0 is > >> invalid") only calls WARN() when IRQ0 is about to be returned, however > >> using IRQ0 is considered invalid (according to Linus) outside the arch/ > >> code where it's used by the i8253 drivers. Many driver subsystems treat > >> 0 specially (e.g. as an indication of the polling mode by libata), so > >> the users of platform_get_irq[_byname]() in them would have to filter > >> out IRQ0 explicitly and this (quite obviously) doesn't scale... > >> Let's finally get this straight and return -EINVAL instead of IRQ0! > >> > >> Fixes: a85a6c86c25b ("driver core: platform: Clarify that IRQ 0 is invalid") > >> Signed-off-by: Sergey Shtylyov > >> Acked-by: Marc Zyngier > > [...] > > > Ok, let's try this now. > > Well, better late than never! :-) > > > Worst case, we revert it later :) > > Please just don't revert it outright on the 1st issue report -- give me time > to look at the issue(s) reported... > BTW, I've CC'ed you on the SH patch that avoids using IRQ0. Please help to > merge it (v1/v2 were posted on February 11th and there was no motion since then)! I can't merge that until a sh maintainer acks it. Is that arch even still alive? thanks, greg k-h