Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp5536147rwb; Wed, 9 Aug 2023 05:51:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFV0Bx3xjzLYJu/YAr6jVeFbLZSosh4b1wZ/+H/YdsfH2BRIfIr5pSKeFOh4o4LNFnCGNzl X-Received: by 2002:a05:6808:7ca:b0:3a7:3881:d6f4 with SMTP id f10-20020a05680807ca00b003a73881d6f4mr2445962oij.35.1691585481680; Wed, 09 Aug 2023 05:51:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691585481; cv=none; d=google.com; s=arc-20160816; b=AcGkJVscvaskMpckZ7px+9F6xlkPWJX0NWnYeG+6UYEEdNROL9StRnOfwgb7KTrofq QPgqcjoW/VP39ttJ4mrvmaQejBOdpw72lGAi8jvaNgz5Cy7H+W9fE0QZmYiZ35kW+bzd 1uMAgFkjTXsRahPDE+lPm6+8zMWtdOwq1Hi13UWSaTla8vrjzLash9RhBpA4rie8MckW swuzv4x6s9hrDNX+v7xjqb7jzJhrRfKiMBVkef3tJGLn83bBnvE5RZelMqmIN/0bk9ix oSZ8Owi3NBWSrYlFUDc5Dg71p5bjzLecQVlranyrQf0uHWl+8ytWZzPU/91TDnDYFL+5 qzgQ== 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=YoLJg3uyNcm/pmOxJC3Fq4ZGphQKyXSORQ4ZI59PwTw=; fh=JlN9o7cz2/h2oJZPTwSX0Q1A/xVMCFOq3aui4i0OL6M=; b=ue12MwRlpu8og9wwIvXLE4jmkTHQplJ3K/FCJa2mug6ET+8ZBsdJmV0AArAMm4rYpE sQutJBDJKAzYklgs/kWhXhWpg2Dpt1zsY0kPxr/yNmUDekKaRrOFBWpV/X0SjMUYWRWz OE6pwZwVsqOkJAS8+CuRNxPr6HUeq1EfbqvmwHVoLtvJujozg4Gsg+4Z6W7Qskwz9KtF Kmt5Qy+I4CiXBEO9aUE1Q8FpQx3bvbeWiTqZMFH4eqxTZuWLYIkZQzARbgdV4/iPQ9zw biD1GUCmToOXUH18nzo32x+U/qZxNAmCnrGo8/dbcINxhMWcE+TZl8aH95ifRsl0m6Vs jbjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Shh2Zd48; 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 b4-20020a170902d50400b001bc5fa2566fsi6573125plg.502.2023.08.09.05.51.08; Wed, 09 Aug 2023 05:51:21 -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=Shh2Zd48; 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 S230432AbjHILvn (ORCPT + 99 others); Wed, 9 Aug 2023 07:51:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231476AbjHILvj (ORCPT ); Wed, 9 Aug 2023 07:51:39 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AE6D268C for ; Wed, 9 Aug 2023 04:51:19 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-3fe1fc8768aso64601035e9.1 for ; Wed, 09 Aug 2023 04:51:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691581863; x=1692186663; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=YoLJg3uyNcm/pmOxJC3Fq4ZGphQKyXSORQ4ZI59PwTw=; b=Shh2Zd48mx3fxiY+RfLxt9LreMcopPayjdhzWCsQ0aOlpMt+DEgm7CHOogbnMTpiNF rGU7UN4wv5Z5VNhAfuSu9kHzWnySIEP3QJPByVXvQr2SpfzPSuEkGcan2U3ecsSyY/+F FxrPDUtGFcdf0BFe5a6+B6It4wpEtLNxmW9qLtlVgx2aaljsUAbhQ27IpXqiEpi6xA7H wZ87wojZDTPqd7DQK9dTg6PU/ox8Y8RTDmTquySxABH9B0ZFCT/GrbHFNcIuEXvDPnQz KNLVxuiC6KFf6mTP2hAFrvz2frKZXifRphR1NbQ5FfcKOt2Y7rt3phELOHpAkiABes82 zmPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691581863; x=1692186663; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=YoLJg3uyNcm/pmOxJC3Fq4ZGphQKyXSORQ4ZI59PwTw=; b=BX5OvdFkVhxu0n9B8DovX1lGPBHu7eQ759xyPnCtjnEA/krPqiPoDniEBgjLItuFG9 kYjUpGyME1JGnudDYfC0oPfVn5hYrv9P4lSXlUlrCG0nEFA36cOx/FootEpLqz/WN4eJ ml/+jDYHslnHvWHlzXemNB8n5J2/+YhMTGsAsrkF3cGchSXNvAjhXgQ/fcjl66RkBjDY otxE3czSlDKH8C0Ng/Ptz5+j3qnass8LUDP/TkdCl03dr8gnuyYRtoJ7FehtIGU9/Oyq DCaMmK6KU1xiJbyY2x3qz/ASksZxo/iVIM9lCxRdXV+x5UDdPDM2taMm2cM7ICEfMRSZ cp+Q== X-Gm-Message-State: AOJu0YxDyB1CFvObdWQ/YWsE/SekDFGbNepu3QUw8dqQRzJ6AddZ2R/S uudKl4RgcTUXpSqccMkkJwoVGA== X-Received: by 2002:adf:dccf:0:b0:314:3740:7f69 with SMTP id x15-20020adfdccf000000b0031437407f69mr1671678wrm.37.1691581862922; Wed, 09 Aug 2023 04:51:02 -0700 (PDT) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id r15-20020adfdc8f000000b00317909f9985sm16547116wrj.113.2023.08.09.04.51.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 04:51:02 -0700 (PDT) Date: Wed, 9 Aug 2023 14:51:00 +0300 From: Dan Carpenter To: Ulf Hansson 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 Subject: Re: [PATCH next v2 2/2] mmc: sunplus: Fix platform_get_irq() error checking Message-ID: <9c7a69b1-9ee3-4676-8d3e-9f12e39b37af@kadam.mountain> References: <20230809071812.547229-1-harshit.m.mogalapalli@oracle.com> <20230809071812.547229-2-harshit.m.mogalapalli@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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, 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. regards, dan carpenter