Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6467052imu; Wed, 14 Nov 2018 01:50:04 -0800 (PST) X-Google-Smtp-Source: AJdET5cQsySXx6RlNdjDIiwOGvELp7OVd8bSEx7Wb0sqjHngYZe1bzhQjZYEuf1i8Tpe/9iYxBwB X-Received: by 2002:a63:6506:: with SMTP id z6-v6mr20857pgb.219.1542189003895; Wed, 14 Nov 2018 01:50:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542189003; cv=none; d=google.com; s=arc-20160816; b=bwPvkf3/nuoMHlgCXOYWBpSur5z6FzA3poQkhl7w+UquqiEqc1DAyZ4vZpYS4xdvom lAKHgfbEcAAIfjC6N334D4Myxd0oRfWY4bViK4XVY055nsuAB3uj5A93ZXGCznErZyk6 gFUD2aRYkGhDdkUKiKjpNy/m5KwgUUZawWk+gKMmlhwEbX5nQ2kG2PgLteXaT8itQnh/ 25zb+uKolPayFubaSXnJIZl8Cs8YNEC2GmXkIcOpUF+u8hRNOsCXEEuKdfg3RmSg3GTc LvrLF1V8+Vgs7jPwjuEwrQyemALTSZaNd849QjkfwpydnlCN94BJcltyo8kM5irODLOY gXsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:dlp-filter:cms-type :in-reply-to:subject:cc:to:user-agent:organization:from:date :message-id:content-transfer-encoding:mime-version:dkim-signature :dkim-filter; bh=lJ9ZwXaM24ZxHFgxUGFQNaxGJR8v/GfIWNWLQ5Pwz6Y=; b=uhqqkvCWluh5azsfyjYweMHrPLmFlahTf/AIrJw4uozt74100LJg4kvIMcicGm4s6B KhUjqyIEsNf8ViBeJEPb0vFgNnJr9+QQdORcS7kQdWSocrO3IvMTR4xVDpRar34TkVTw YBRz2D9iuH+rmbeK8xq9OSQmF0ONm4xCgaojrsW6TJhokn1P0QJLX/tBO/geuq54LlGH GIWPtBHyrkhNhYAN8rH8qD0SHb3CCDsP+FXw5ZN0sIl1uU/MoLnJVKQ2DluIc00kId6x PPbC8vRHrfO8Cfz5fmexLhx04Jr8qbupNAaSlpjNRGRClAua9bfTqieYT50gM+04mwt5 +jvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=mdadp71S; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a21-v6si13991841pls.13.2018.11.14.01.49.48; Wed, 14 Nov 2018 01:50:03 -0800 (PST) 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; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=mdadp71S; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732608AbeKNTvX (ORCPT + 99 others); Wed, 14 Nov 2018 14:51:23 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:47693 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727595AbeKNTvX (ORCPT ); Wed, 14 Nov 2018 14:51:23 -0500 Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20181114094849epoutp02a4a6f5e2c55c6e8b5506835f70265a18~m9KkOhHGx2013220132epoutp02Y; Wed, 14 Nov 2018 09:48:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20181114094849epoutp02a4a6f5e2c55c6e8b5506835f70265a18~m9KkOhHGx2013220132epoutp02Y DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1542188929; bh=lJ9ZwXaM24ZxHFgxUGFQNaxGJR8v/GfIWNWLQ5Pwz6Y=; h=Date:From:To:Cc:Subject:In-reply-to:References:From; b=mdadp71SSA7bu8Mp1gIBGJOVpPl62Halch9eXSGwNE2ceJlzi5mxP/C7yRfUamwkg AZn3hCyxLfBShetXHE6gRb5yAv8EMCidXV1ifjkBcReDW3O04yo5N4Y9DSJCxA2cHs aVXf818oVPxmyjds7OkFnipo0j+XUWi/aKxYJGFE= Received: from epsmges1p4.samsung.com (unknown [182.195.40.154]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20181114094845epcas1p1371a40307d8a273e74ebe3a3d7c926f4~m9Kg1skDY0149001490epcas1p1m; Wed, 14 Nov 2018 09:48:45 +0000 (GMT) Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p4.samsung.com (Symantec Messaging Gateway) with SMTP id 16.66.04149.D7FEBEB5; Wed, 14 Nov 2018 18:48:45 +0900 (KST) Received: from epsmgms2p1new.samsung.com (unknown [182.195.42.142]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20181114094845epcas1p27da469100fc5f3f78e67154fa6e3df89~m9KgRv79b0359303593epcas1p2I; Wed, 14 Nov 2018 09:48:45 +0000 (GMT) X-AuditID: b6c32a38-653ff70000001035-37-5bebef7d2a6f Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p1new.samsung.com (Symantec Messaging Gateway) with SMTP id EF.38.03701.C7FEBEB5; Wed, 14 Nov 2018 18:48:45 +0900 (KST) MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset="utf-8" Received: from [10.113.63.77] by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PI600CGBGL89U00@mmp1.samsung.com>; Wed, 14 Nov 2018 18:48:44 +0900 (KST) Message-id: <5BEBEF7C.7060003@samsung.com> Date: Wed, 14 Nov 2018 18:48:44 +0900 From: Chanwoo Choi Organization: Samsung Electronics User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 To: Andy Shevchenko Cc: MyungJoo Ham , USB , Felipe Balbi , Guenter Roeck , "Krogerus, Heikki" , rogerq@ti.com, Linux PM , "Rafael J. Wysocki" , Sebastian Reichel , Linux OMAP Mailing List , Darren Hart , Platform Driver , Greg Kroah-Hartman , Linux Kernel Mailing List , Chen-Yu Tsai , Hans de Goede Subject: Re: [PATCH v1 2/5] extcon: Return -EPROBE_DEFER when extcon device is not found In-reply-to: <20181114093652.GK10650@smile.fi.intel.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrLJsWRmVeSWpSXmKPExsWy7bCmnm7t+9fRBqc2qlm8nHCY0eJY2xN2 i66FBhbNi9ezWbw5Pp3Jomv1ThaLy7vmsFnMXtLPYvG59wijxaJlrcwWTxaeYbK43biCzWL1 nhfMFnO/TGW26HmkZXF6d4nFz0PnmRwEPTY8Ws3qsXPWXXaPzSu0PDat6mTzmHcy0GP/3DXs Hu/3XWXz2Pm9gd2jb8sqRo/jN7YzeXzeJBfAHZVtk5GamJJapJCal5yfkpmXbqvkHRzvHG9q ZmCoa2hpYa6kkJeYm2qr5OIToOuWmQP0kZJCWWJOKVAoILG4WEnfzqYov7QkVSEjv7jEVim1 ICWnwLJArzgxt7g0L10vOT/XytDAwMgUqDAhO+PXBteCf7wVm24oNTAu4u5i5OSQEDCReLLj FnsXIxeHkMAORomJH19BOd8ZJSbNXsIMU3Vo2UqoxG5Gia/P+sESvAKCEj8m32PpYuTgYBaQ lzhyKRskzCygKfHiyyQWiPq7jBIPFzyCqteS2PrxOCuIzSKgKnH+w0OwOBtQfP+LG2wgNr+A osTVH48ZQWxRgQiJnfO/AS1m5xAR0JfYXwYxfiarxKtn7iC2sECUxLmLe8CqOQUsJI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Q7pyFcOcCRuZVjJKpBcW56bnFRgWGeanlesWJucWleel6yfm5mxiBUbft sFbfDsb7S+IPMQpwMCrx8FrcfhUtxJpYVlyZe4hRgoNZSYTXP/p1tBBvSmJlVWpRfnxRaU5q 8SFGaQ4WJXHe23nHIoUE0hNLUrNTUwtSi2CyTBycUg2M1TrHcqKt/lZ+NHeRW/FBPO9a2kJh UfMfX/VmfZJ/b/ht0YSfkvMd0ktEsq5V5v4SOunD4ttYvf1CeNrNTw82Rss7zNOPXVZiNOf1 99xE25QDNw38cgOC/0zPORibavvs8o435bMf7dJxtZfLbziREP1TQln5y9uELS+/quSovl28 UkcukGeyEktxRqKhFnNRcSIAuL0bKLYCAAA= X-CMS-MailID: 20181114094845epcas1p27da469100fc5f3f78e67154fa6e3df89 X-Msg-Generator: CA CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20181110181155epcas2p1ac9bffb2dc7dd6337db5c37f8a87bd5e References: <20181110181101.24557-1-andriy.shevchenko@linux.intel.com> <20181110181101.24557-2-andriy.shevchenko@linux.intel.com> <5BE8C821.5080002@samsung.com> <5BEB63C3.1020504@samsung.com> <5BEBE741.6050101@samsung.com> <20181114093652.GK10650@smile.fi.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018년 11월 14일 18:36, Andy Shevchenko wrote: > On Wed, Nov 14, 2018 at 06:13:37PM +0900, Chanwoo Choi wrote: >> On 2018년 11월 14일 17:35, Andy Shevchenko wrote: >>> On Wed, Nov 14, 2018 at 1:53 AM Chanwoo Choi wrote: >>> >>>> I was thinking about again to change from NULL to EPROBE_DEFER. >>>> >>>> extcon_get_extcon_dev() function was almost called in the probe function. >>>> But, this function might be called on other position instead of probe. >>> >>> *Might be* sounds like a theoretical thing, care to share what is in you mind? >>> Current users and more important the new coming one are *all* doing the same. >>> >>>> ENODEV is more correct error instead of EPROBE_DEFER. >>> >>> So, you are proposing to continue duplicating conversion from ENODEV >>> to EPROBE_DEFER in *each* caller? >> >> The extcon core don't know the caller situation is in either probe() or other position >> in the caller driver. The caller driver should decide the kind of error value >> by using the return value of extcon_get_extcon_dev(). >> >> extcon_get_extcon_dev() function cannot be modified for only one case. >> If some device driver call extcon_get_extcon_dev() out of probe() fuction, >> EPROBE_DEFER is not always correct. > > I agree with this, but look at the current state of affairs. All users do the same. > If we need to have another case we may consider this later. Because we know the potential wrong case of this change, I can't agree this change. If extcon_get_extcon_dev() returns ENODEV instead of EPROBE_DEFER, it is clear and then there are no problem on both current and future. > > API inside the kernel are not carved in the stone. > > -- Best Regards, Chanwoo Choi Samsung Electronics