Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp396321ybb; Fri, 10 Apr 2020 02:15:28 -0700 (PDT) X-Google-Smtp-Source: APiQypLLBbyxqT6V5Ew/5yXE+vF/jKj7cCGPaUDY35+gPY6xI+k0Bpukj4RDxcKBN8ZZAHh2D8d1 X-Received: by 2002:a37:4b86:: with SMTP id y128mr2959314qka.95.1586510128802; Fri, 10 Apr 2020 02:15:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586510128; cv=none; d=google.com; s=arc-20160816; b=RWDit4UM2fKpxje7NFcBEsCqv8OWNRyTdhTbLJmds6K5JA45tXmr2Kf3pgG6QVfTr1 sP3z7PUFlxqWpUUr8hFXTO9Uw4XWdUJy+dprzrsCnb+YHYzb4VQI9VNIYjs4pmHc6WLD lRzulcxzyu6LHu26mS5HAPTuN2OXQa8KLqg121yN5YztTs2VBnp3R34UPuhbdmpLHYiO R/7WluQBajTBuoqJSoceU1mGK2ozx9UJBHD3VBlUFCEqfqH3qYfQwE2HDvCHaSY5rnAL bwXoq71VBEt41dpJMqvCVtSr2MtVJvOk1qRSIB2hSFMOc4jekf8YjpKB9LpeeAdxgzIA mPgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=MNPqV3So5KKwPnyTrpnDyStQubhdzieK92DuJZo9LGQ=; b=shY03SI7vKRO7vFsNrnHhj9duLUJA3pqrvfFySaHsaeiNSyN0kvOvqwLN69RpJBCCu Hz9wikhqEmplwFu2srH1dF1N1hrB3K4ZFrlrcuXHPsNDV71DTktpAUHd+xil5BSlrQna 1A2V/S+efLMVzjqkKb59AEvSk4wiOYV7/AYhx1cIs1JuKnf3dsX/CHJjNQ2gPVFzU3rP C5CALhVFIfBzZHRTeuZvzHNMTS8Uidh8zHxu529Oi6+wUWz9xplO+yBv8FTTSg3iRQ6X as+c5IAFT+2uIz09Gcvzx5YEZ2VvcpayXpIhS5g+78PND44fPwVcZvtcO3uDENSGaKYE XRoQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a26si1034078qko.258.2020.04.10.02.15.12; Fri, 10 Apr 2020 02:15:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726145AbgDJJO0 (ORCPT + 99 others); Fri, 10 Apr 2020 05:14:26 -0400 Received: from cmccmta2.chinamobile.com ([221.176.66.80]:8825 "EHLO cmccmta2.chinamobile.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725897AbgDJJO0 (ORCPT ); Fri, 10 Apr 2020 05:14:26 -0400 Received: from spf.mail.chinamobile.com (unknown[172.16.121.15]) by rmmx-syy-dmz-app06-12006 (RichMail) with SMTP id 2ee65e9038cea20-02a24; Fri, 10 Apr 2020 17:13:51 +0800 (CST) X-RM-TRANSID: 2ee65e9038cea20-02a24 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from [172.20.21.224] (unknown[112.25.154.146]) by rmsmtp-syy-appsvr08-12008 (RichMail) with SMTP id 2ee85e9038ce8b0-29025; Fri, 10 Apr 2020 17:13:51 +0800 (CST) X-RM-TRANSID: 2ee85e9038ce8b0-29025 Subject: Re: usb: gadget: fsl: Fix a wrong judgment in fsl_udc_probe() To: Markus Elfring , linux-usb@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Cc: Li Yang , Greg Kroah-Hartman , Felipe Balbi , Shengju Zhang , LKML , kernel-janitors@vger.kernel.org References: <20200410015832.8012-1-tangbin@cmss.chinamobile.com> <0b718268-d330-dfc1-aca3-3dd3203363d7@cmss.chinamobile.com> From: Tang Bin Message-ID: Date: Fri, 10 Apr 2020 17:15:39 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Markus: On 2020/4/10 16:30, Markus Elfring wrote: >> Hardware experiments show that the negative return value is not just "-EPROBE_DEFER". > How much will this specific error code influence our understanding > of the discussed software situation? > From my superficial knowledge, I think we should not  think about it too complicated. The return value is just zero or negative, and for these negative return value, such as "-ENODEV"、"-ENXIO"、"-ENOENT"、“EPROBE_DEFER”,may be the same effect。But“-EPROBE_DEFER”has another  importment function: Driver requested deferred probing,which is used in cases where the dependency resource is not ready during the driver initialization process. >>>> +        ret = udc_controller->irq ? : -ENODEV; >>> Will it be clearer to specify values for all cases in such a conditional operator >>> (instead of leaving one case empty)? >> I don't know what you mean of "instead of leaving one case empty". > I suggest to reconsider also the proposed specification “… ? : …”. What you mean is the way I'm written? I have provided two ways of patching, both functional can be verified on hardware. Thanks for your patience. Tang Bin