Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp98496pxb; Thu, 14 Jan 2021 00:34:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJwYZo07XQkBA/lxF1hrTFkgp48hpUrNcaHuMDjzoR+nzVlH8i2lCQmVooCXtmb0HhJB/ARM X-Received: by 2002:a05:6402:31b5:: with SMTP id dj21mr5052274edb.90.1610613249819; Thu, 14 Jan 2021 00:34:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610613249; cv=none; d=google.com; s=arc-20160816; b=q3XwKn64daNQ6q0OE/X1qCpm2nkUB7cN1IQrf0aK55bhQ0N66EB2UMMnxXQcT7lf6g R9Cn6L7dLg5PwtGW9Zjjq30QyRLJSn5+F4JHvPVkgxnC9qaprG4/SOFasisduuT1TRph FHHNk+ypKPga01aDcfc/mSjW9oKkIQm7yIOfr/ufXr8JVZNquxKQFATGDXQVECvJsfRM 6ekrlHkGeazQefD0EIkwV8NLOW/UgSA9XO5BUwIeOs/1gseBnFgbUrrpUOnKAQ4wokSF pJA+XyFKLTHmCvwDnu1uRCnl6AfM7Nnb6DrSl/ZYdwj50YN7ev6AhbdiFjqIZSlDH2Tq o0rQ== 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 :from:references:cc:to:subject:dkim-signature; bh=+hsu23vaNxsHj1VJoWn/rTScTN7qk/saqdbNWiS5lUM=; b=x3yctr8DoBKVu9UYKNKQXTNNkyZZN1NARAMfc9Vp4Zk/a8XHECyxqHv7MB0GnN5nNa S5stc2vdzRe2lfC6fAvOF58GvLbGD3Rz6DM2hyP2F+i3dZrxBQd32jHxWbPtJhClKRts Ne4d2PKUDr2FP//3XWi365b5QLNZBH7pJv8O6B3WTJmsR0+h0j4nh8ht25jIY37m3Y6K gV2Gd3pAoUqUYRWJYEZ/g3X8QbnaiJviLQwjLyyY26juUR4dpybjGG41LAhgS0lQu7iC fUSbRwKzEjVoQbNvGZUHDXmjPeC3WUN0Vi3MAkyvAvEluMYJcajuCjMkL9qkPl0mn/cL wI0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ussEO7Ql; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a5si2013003ejv.428.2021.01.14.00.33.46; Thu, 14 Jan 2021 00:34:09 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ussEO7Ql; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728065AbhANIay (ORCPT + 99 others); Thu, 14 Jan 2021 03:30:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726055AbhANIay (ORCPT ); Thu, 14 Jan 2021 03:30:54 -0500 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89E6CC061575; Thu, 14 Jan 2021 00:30:13 -0800 (PST) Received: by mail-lf1-x12f.google.com with SMTP id o10so6822668lfl.13; Thu, 14 Jan 2021 00:30:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=+hsu23vaNxsHj1VJoWn/rTScTN7qk/saqdbNWiS5lUM=; b=ussEO7QlNXLIjpnlSMpEGFwCuwx6l0utPxd/w/8v6Z5nakcfY6jwTFn4fZRaAHfZ6e 0wf91wHPETJlf5wWplYwJE80RrmURFhIM71ctcZC82ME4wuh6RC6dRAM+iq4vIudyS6F 1csSm1qYDt2CogO+CkuN/vT5tEiXJ92lQI13Kf37nCq7B1C3zW4TrY1RudRJSQY2SXm8 aaC6lS0IUA2oUphnd/O7C+VapgwrQEkTsKQkB35vtDuEFcZgrmoutHP8jlp5k32DVhz0 VQ322vPikF1URIQdqc9id30M6q/SXJTuQQDHpxNUbAjtJ5ni54CyAkg+Hva5t+g6sCCT x6lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=+hsu23vaNxsHj1VJoWn/rTScTN7qk/saqdbNWiS5lUM=; b=kFV1fD5YromLDWUIJcK3h+QpwzFTeXa1zB9hDvAqN1w82h3zYsB0ZcEUNufuTJ8iEy JYDp80tz2PRSC6fmQ66Vam3wHgg1TmJzBXcbHeImnqvVUDxUmxRzSS/Tt+myKLZZ8RXI KrnktCiELjYlu5qvVUhTgeMSd+bqH3v8pVb/dF7w1kwMjh+cwNWWc9ktMWCTba0tP/jT ZzWtksm/L2gdl8c+tFEVAyCEICSxWfaPXaQ4PZqwyNbaV1CW+7SioX7dYm73URzDtsFL rMLGAyrkYka0a5B2AduEDZU1xS6YpfVinTdTDsGUAG0YqtapH2DRah+HWzjYON7CmVED X+iQ== X-Gm-Message-State: AOAM533noeJ3yLJbxDpS/2uhQlDksG3UAG3Xq+eq5wQPq72Rt9HnU5MH Gl0UiwA1m28e4IcPjIeO7hU= X-Received: by 2002:a05:6512:2202:: with SMTP id h2mr2752495lfu.392.1610613012123; Thu, 14 Jan 2021 00:30:12 -0800 (PST) Received: from [192.168.1.100] ([178.176.79.115]) by smtp.gmail.com with ESMTPSA id n18sm477520lfh.37.2021.01.14.00.30.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Jan 2021 00:30:11 -0800 (PST) Subject: Re: [PATCH] ata: remove redundant error print in rb532_pata_driver_probe To: Menglong Dong , axboe@kernel.dk Cc: linux-ide@vger.kernel.org, LKML , Menglong Dong References: <20210112023619.5713-1-dong.menglong@zte.com.cn> <33bb1cd2-c202-0fd5-733d-b44e7e8fa92c@gmail.com> From: Sergei Shtylyov Organization: Brain-dead Software Message-ID: <2b6dcfbf-d534-4a2a-53e0-c942a9120a0f@gmail.com> Date: Thu, 14 Jan 2021 11:29:57 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello! On 13.01.2021 17:04, Menglong Dong wrote: [...] >>> irq = platform_get_irq(pdev, 0); >>> - if (irq <= 0) { >>> - dev_err(&pdev->dev, "no IRQ resource found\n"); >>> + if (irq <= 0) >>> return -ENOENT; >> >> This still beaks the probe deferral. :-( >> But that's another problem... >> >> [...] >> >> MBR, Sergei > > What does this 'MBR' mean? I am a novice~~~ Generally speaking, Master Boot Record. But I also use it to send you My Best Regards. :-) > So, is it better to replace 'platform_get_irq' with > 'platform_get_irq_optional' here? No. You should stop overriding the result to -ENOENT and pass the result up the call chain instead. In order to do it, you should only check for (irq < 0). > -- > Best Regards > Menglong Dong MBR, Sergei