Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3088776pxb; Mon, 24 Jan 2022 02:05:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJzYYlUlFp/nwVPIjsA+mqZItqQI2/guO3NkPmKn1FpMGGh89832irjEG+/8qh1T3QAjxZnQ X-Received: by 2002:a17:90b:38cc:: with SMTP id nn12mr1129332pjb.203.1643018702283; Mon, 24 Jan 2022 02:05:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643018702; cv=none; d=google.com; s=arc-20160816; b=NhmnwPU7TvIFaB/jdtOw9y4L2r1JpK0B7lOYiGfYayhME1EQAv0G3MQ9nPt2a0ygif suJk9ykRQ7ol9LiYyxQf9/EqqjNLlqmGgqxQLZUoMpiZINUgDNyjYAqFzYO32aBBBzBO ukvYQAfrtVDRsRVE69NhZqYqls3MNxKp+UPjiF56uOSoB595W1YMd95/eDb6HBeaCdeS VjOrCbaU116Yr/PQRCB2ofDvu2Rnn75pjAiUYSjbgZAfXrFQiTByAOZukdQTPE2+gLE5 ef9+bbGSjdDuz0yrI90AWrOSTNuL1nz6yobRFn0fbm7vexm2eJeDD5TZ8+t01GE186cG dluQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=Yvkc9O5onn498kihZ9xXxI5J2QNDoOCLT36t7XnE/bc=; b=0M3kNZ6/ZnT+YvpVUr9yBsgpcj9pqQPH2OgM0uMsa2Hvhhm5P8YIA7YEW7fpzG1/pO 61h9XD64O9+1ocgd3uOz46+xVWWc8zbwI8AGorvdsUnG3Yiw6H8+XLWFxcrw3U23e56K KZGzn7EKpuyApZBl141yncAXoYkFV4lGLrxfr51V+Hi4d4TDxij7CXLp3Ug+esqpMXuT HqM6vO4+Wz6EJLlYl1iioEqUoEl4bVMakxpcnxBdccy6/lB/Ravg2Y9s5dzylK5gmYXo 5gkNiIF87asqv0YpETIYzcOCb9Nn1KIPWXVFb+77XA1/V018DemhiThYowrMzIgoI8aJ yMCQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l190si7062283pge.482.2022.01.24.02.04.49; Mon, 24 Jan 2022 02:05:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238015AbiAWPor convert rfc822-to-8bit (ORCPT + 99 others); Sun, 23 Jan 2022 10:44:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235444AbiAWPoq (ORCPT ); Sun, 23 Jan 2022 10:44:46 -0500 Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [IPv6:2001:4b98:dc4:8::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEB4CC06173B for ; Sun, 23 Jan 2022 07:44:45 -0800 (PST) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 53F29100004; Sun, 23 Jan 2022 15:44:42 +0000 (UTC) Date: Sun, 23 Jan 2022 16:44:41 +0100 From: Miquel Raynal To: Jiasheng Jiang Cc: kyungmin.park@samsung.com, richard@nod.at, vigneshr@ti.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] mtd: onenand: Check for error irq Message-ID: <20220123164441.4ac98b08@xps13> In-Reply-To: <20220104162658.1988142-1-jiasheng@iscas.ac.cn> References: <20220104162658.1988142-1-jiasheng@iscas.ac.cn> Organization: Bootlin X-Mailer: Claws Mail 3.17.7 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jiasheng, jiasheng@iscas.ac.cn wrote on Wed, 5 Jan 2022 00:26:58 +0800: > For the possible failure of the platform_get_irq(), the returned irq > could be error number and will finally cause the failure of the > request_irq(). > Consider that platform_get_irq() can now in certain cases return > -EPROBE_DEFER, and the consequences of letting request_irq() effectively > convert that into -EINVAL, even at probe time rather than later on. > So it might be better to check just now. > > Fixes: 2c22120fbd01 ("MTD: OneNAND: interrupt based wait support") > Signed-off-by: Jiasheng Jiang > --- Applied to nand/next. Thanks, Miquèl