Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5579055pxb; Mon, 28 Mar 2022 14:29:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrR+PAReHGMN9asOBW7kU9Uliih3SkS+5AbZDEH3wwtaPVKhwt47w5F5K1t9p88L+CzAI2 X-Received: by 2002:a17:902:9307:b0:154:78ba:ed40 with SMTP id bc7-20020a170902930700b0015478baed40mr27552584plb.92.1648502964245; Mon, 28 Mar 2022 14:29:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648502964; cv=none; d=google.com; s=arc-20160816; b=qR10vfzT3N2lNX1VwwXv5Dx5ZisjbLIuu9ZZw9yOFEkgDumK2XLsrkGd7M2eaEkO+G sps+yY44j3zZoKyOvWvz4V32JNP+ZXBYWquoqKgO3wPnC4B2RuNS2TMXrCnqXZKqsvNz HVjOPDkVTlMVRTnE7/z+RuzG/Z949arJVJgcuJrXdViL9Uk0qJf77PK+Ll4MnKQe3GfC iGJ2V4D09UiKpP/g3w8nNl0gorSMhKcGF4qJDxVU/7HSG9x/Fz6QRKOUC2rG/TyUqMxR Dv+HgnkczKFvjVd8FO4IJyAv732VJHzQYPxnTA9uxHpCYkKj+rWbMb0pHcyZcbjU19Bh bTZQ== 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 :references:cc:to:from:subject:dkim-filter; bh=c9YzD2gO+qb+UbJhml4XvQt5PcYo4YvxbQkta2irFMM=; b=xBuv2TF1j/iDAdAla5T/NdZ3j6UgSvOeqH1Vobu2Nbjor5I9P4MR+Kn8GL5tdarBL/ wuCOFFfC702JoNQwwC+r6d4uvp5MHSpWrdw5CnbkokUfVF/ThC8SA2JhkSD9IfO2MQa/ Ibn+oexsPbSkmd/Yixxi7fs8JOptpoY2dzHldpge9GkewPQwPQ3+78sR63LnTb0RQ517 TuHcjxQgAvGHntzb4fjl6NcbAhiHQn2SUUpgN99WbHSpAlu1ALbKbfhUifTwuoZHiY3u zbw2rUHpwFbY3Zz+ezBsAMTKu7X7s1QDESeOIYAMUdmdq3Llk5rdnvGoZeBJ/8FQDnhr Hbtg== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id o1-20020aa79781000000b004faa67abb7fsi13786572pfp.46.2022.03.28.14.29.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Mar 2022 14:29:24 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D4864580D9; Mon, 28 Mar 2022 14:12:47 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238814AbiC1Hbz (ORCPT + 99 others); Mon, 28 Mar 2022 03:31:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234268AbiC1Hby (ORCPT ); Mon, 28 Mar 2022 03:31:54 -0400 Received: from mxout01.lancloud.ru (mxout01.lancloud.ru [45.84.86.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C55F4833A for ; Mon, 28 Mar 2022 00:30:07 -0700 (PDT) Received: from LanCloud DKIM-Filter: OpenDKIM Filter v2.11.0 mxout01.lancloud.ru 61C0720CCE2E Received: from LanCloud Received: from LanCloud Received: from LanCloud Subject: Re: [PATCH v2] platform: finally disallow IRQ0 in platform_get_irq() and its ilk From: Sergey Shtylyov To: Greg Kroah-Hartman , "Rafael J. Wysocki" CC: , Marc Zyngier References: <025679e1-1f0a-ae4b-4369-01164f691511@omp.ru> Organization: Open Mobile Platform Message-ID: Date: Mon, 28 Mar 2022 10:30:02 +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: <025679e1-1f0a-ae4b-4369-01164f691511@omp.ru> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.11.198] X-ClientProxiedBy: LFEXT01.lancloud.ru (fd00:f066::141) To LFEX1907.lancloud.ru (fd00:f066::207) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no 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 Hello! On 3/11/22 10:35 PM, Sergey Shtylyov 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 > > --- > The patch is against the 'driver-core-next' branch of Greg Kroah-Hartman's > 'driver-core.git' repo. > > Changes in version 2: > - added Marc's ACK. Greg, are you going to finally merge this? MBR, Sergey