Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp5706618rwb; Wed, 9 Aug 2023 08:07:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHEk2bnRZ3HxbynhIZQRHGidwYf7zKqH7RcL1Z6LYO7sv8QaUStviS12kGl5UXrhNBDmhTF X-Received: by 2002:a17:902:b90a:b0:1bc:1df2:4c07 with SMTP id bf10-20020a170902b90a00b001bc1df24c07mr2617470plb.63.1691593654460; Wed, 09 Aug 2023 08:07:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691593654; cv=none; d=google.com; s=arc-20160816; b=AhB8uhLbdPLWvNzx3MiKPOAlKtv2cEal7BstO4+l1BHZdeiMbrO9n23V6VQ8YvPGQV /12tm+2Xw4h/YpcRISjcISz6fW3fGp5KtUpOCtaIZVDHobUTddl8AMRaj/9LadKMSXm0 wKYLcaKpGuMVl69gQiXc1gGYnJ8Hfw3jr5b+1e9TuDzlHeQX23AqQGVkguC+p9lvZBBO 7RYbvftNYf55kb/OcTwd4fTd2L9S4iViBaF6Zf78qKo6idmNH6O4zXNP6MjV92tcWSbt +btjHd6tGS1gdPHuGAx5uvPOvgKCMsz5GkHi6THIr1UCjEMt5nc/aPWyAQGdwLq5Y328 xyCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=aN+FplIKKK7RYr0Y31cgi1AbLRZ5VPs2/8SsV3oWXZ0=; fh=gH0DSMsnhcVEGScJyOsbWjVTwdAhpFPsWEEdzECHU7I=; b=HkaAnIg17Gb6nuJgfemsBekWqAHBXgUb8+gJr1mS0UEvqr6nS+Xd8GHl017JNRbBwS F0G3GYdkeyjnqu/4WgJnAWvSmwMTueZ0RPbJsyL01TADl1yIhoQ71mCvk2Asd1cC0bTk g0LHoWHlE41cLLOJMPfYY3gZsfLEHjPp0jZIRuX3os6ng88DlAf6QmSq63K81P9YqkUq p4vIytGwPWv+G+TdX0OvpxGTJV4A9R7nFzuV2kIpAGAWV6qnOGmkR64Tj44ND6VaoiSw 3iC5sDHXgOPY11QQVFsCQpg68Hr/wgT6tRJkd//aFlXSlzM0ENiK2B3ji6eaECh0NrZo kXgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XVvtPgbV; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bi10-20020a170902bf0a00b001b20e2ba8e1si9118130plb.23.2023.08.09.08.07.18; Wed, 09 Aug 2023 08:07:34 -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=@linaro.org header.s=google header.b=XVvtPgbV; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231185AbjHINmg (ORCPT + 99 others); Wed, 9 Aug 2023 09:42:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230457AbjHINme (ORCPT ); Wed, 9 Aug 2023 09:42:34 -0400 Received: from mail-yb1-xb2c.google.com (mail-yb1-xb2c.google.com [IPv6:2607:f8b0:4864:20::b2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19C972109 for ; Wed, 9 Aug 2023 06:42:32 -0700 (PDT) Received: by mail-yb1-xb2c.google.com with SMTP id 3f1490d57ef6-d4b74a4a6daso4488928276.2 for ; Wed, 09 Aug 2023 06:42:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691588551; x=1692193351; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=aN+FplIKKK7RYr0Y31cgi1AbLRZ5VPs2/8SsV3oWXZ0=; b=XVvtPgbVgOyiC6hrUMe13eiOP5fztIj6UZuel4GtNUav1ZdcVI+k7jUSIw9lAWvO4m VRblgx1Nlzqjmj7xxk1IoKYfWbtSJrEsmfYogXqqfNTf9c6ATu7k7toI60t4kUygarYz C8zzNw2bKzwsaleAH5izLEPSlkqLFMhYK5Y+Khn+W2uzToQ8CJ4qQZLl2UZky3Xu5SB7 /WNHjoQv7xTiQhmD2/Ym/ilaqsrBUbmeEoAKGPmAq5RWzemzSi/ZUVvxUni5LqcaPdwh 0+V2Xp5yWHnFDCNNvFK792wRdujD1zk/q8WjZ8qL8YyVDlscsikAcLV7216z8KRqGewr XQZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691588551; x=1692193351; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=aN+FplIKKK7RYr0Y31cgi1AbLRZ5VPs2/8SsV3oWXZ0=; b=C1onGenk0Bb9NHyb3ofqzEUj3a8/hMKXx/iERLtfLoaywnrlkhT+AJNHMDvJj0LfHf gR78XaqGOY4ZIK3LyD2cakKP9Dhjg1yI1pfLZ/0q9OHjU6Vp0JsNKKo0eUzKNDMGuLzq Zc1aZHTCKICEDcD7CD8sQ9ca1oKcFakSLZSEA5hvHkcNyKe7JNElmUpBc7qgOmpjfTOR +cK6rVFqL65csn4mlEFgxEPB93JSOZYIpCflk4Oz2/5AnNE1LIBpIKpFxazc6+PJ5p0C hYBoFLRsb3zTpX+9nhnt8aB0vwow+K9zRxOmrvddP+7eGF+BFUBScIxL237qQuu+dBfG 35KA== X-Gm-Message-State: AOJu0Yxlw8oCbiJKUdvwXrBmaqPdOTyRj7TVizYROqTZ1FLf+nEpd+Kr ihz63g6pV2mcQUxez6VmYVajEVEzhVznQ6MGkI9WsANixy1ML+W2 X-Received: by 2002:a25:69cc:0:b0:c4e:3060:41f5 with SMTP id e195-20020a2569cc000000b00c4e306041f5mr2520373ybc.33.1691588551254; Wed, 09 Aug 2023 06:42:31 -0700 (PDT) MIME-Version: 1.0 References: <20230809071812.547229-1-harshit.m.mogalapalli@oracle.com> <20230809071812.547229-2-harshit.m.mogalapalli@oracle.com> <9c7a69b1-9ee3-4676-8d3e-9f12e39b37af@kadam.mountain> In-Reply-To: <9c7a69b1-9ee3-4676-8d3e-9f12e39b37af@kadam.mountain> From: Ulf Hansson Date: Wed, 9 Aug 2023 15:41:55 +0200 Message-ID: Subject: Re: [PATCH next v2 2/2] mmc: sunplus: Fix platform_get_irq() error checking To: Dan Carpenter Cc: Harshit Mogalapalli , tonyhuang.sunplus@gmail.com, lhjeff911@gmail.com, arnd@arndb.de, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, error27@gmail.com, kernel-janitors@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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, 9 Aug 2023 at 13:51, Dan Carpenter wrote: > > On Wed, Aug 09, 2023 at 01:33:51PM +0200, Ulf Hansson wrote: > > On Wed, 9 Aug 2023 at 09:19, Harshit Mogalapalli > > wrote: > > > > > > The platform_get_irq() function returns negative error codes on failure. > > > > > > Fixes: 4e268fed8b18 ("mmc: Add mmc driver for Sunplus SP7021") > > > Reported-by: Dan Carpenter > > > Closes: https://lore.kernel.org/all/a3829ed3-d827-4b9d-827e-9cc24a3ec3bc@moroto.mountain/ > > > Signed-off-by: Harshit Mogalapalli > > > > Applied for fixes and by adding a stable tag, thanks! > > It's not really a fix. The platform_get_irq() function can't actually > return zero. > > I asked Arnd about this and he said that there were some arches where > zero was a valid IRQ but they're not in the upstream kernel any more and > we're hopefully not going to do that again. Alright, I moved this to the next branch and dropped the fixes and stable tags. Kind regards Uffe