Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6722524imu; Wed, 14 Nov 2018 06:06:01 -0800 (PST) X-Google-Smtp-Source: AJdET5faUIu5jwfq908088e3NqwB2o3V7YydkyujmUNeXwyMfD+P3rH5o+nCLA+3EIfiOkjJao45 X-Received: by 2002:a63:ee0e:: with SMTP id e14mr1842720pgi.8.1542204361046; Wed, 14 Nov 2018 06:06:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542204361; cv=none; d=google.com; s=arc-20160816; b=LOGaDZYMI6CnyPnoA7TLJLDzNWjUAKqS0ZehFvZiiYKs7qbaSubAteJ7YQ/5ZJCE+Q HBEt4yCdGFnUC5LUvXfgSdN3Td1U85/jGEZ7fVFS7lBXPoHa8iTovxN+zcMd1TDKlDNK 9UvOGPEscgfgbNB1SjMbguSXpgvYmytsDaUS4H6zKUET6K6aE4B59nTIQWJgYFOlFnWQ YH74AgkFAfseF8czxw2YFx7gGsrAEXBCzi8phpRQONMtAPiKPXVqxD22JMt5rjI+iU/Y +juSX8ctA5/vNl2+s+9u0QeYuUAZ+bXniyVhPQPqO+t/F9/QdkW4vxrc9rPWg7Wb4J0u GzQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=0evwfVr5oz23JFffPTRBSjiLxYvlnzJuk2S/0AYyRIo=; b=RqIblmq6zaCUnYLdeowa8yhS5De7n8xuMpiACtR6V+eufnTin4cMWydYo5Y6OgUUSh rRoxSI3DlsjvXQCioqCV6VU7cErctbSWmMzx9clwMqOhvhaCXu9Sl4IUJPlD5oOVmr4D huLBTnpm9kWVURHyE+GSsw2mCfAq4vK3cwxcsSbRCBAE4V9cG5YEOCgf8/OUpm3XIYIN 2JJf+LpciA9k2OVr27oC7BqHBB8/Fe8Wsi8gmes212UXUdvEZ5C7rSA3D6a8FVDokjhk G3cMbw88mAYMtKo2tGfK7srrXA8WgIFURs2XpwtdY0ioUKj/rZ9RVCbXYznIiS82kYtj rvwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hfAw4SEI; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z5si13276031pgj.177.2018.11.14.06.05.26; Wed, 14 Nov 2018 06:06:01 -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=@gmail.com header.s=20161025 header.b=hfAw4SEI; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732238AbeKOAID (ORCPT + 99 others); Wed, 14 Nov 2018 19:08:03 -0500 Received: from mail-qk1-f195.google.com ([209.85.222.195]:40646 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726846AbeKOAIC (ORCPT ); Wed, 14 Nov 2018 19:08:02 -0500 Received: by mail-qk1-f195.google.com with SMTP id y16so25864049qki.7; Wed, 14 Nov 2018 06:04:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0evwfVr5oz23JFffPTRBSjiLxYvlnzJuk2S/0AYyRIo=; b=hfAw4SEIugyuR6HPAThnyOioF4fmmcM+h3N3hkdFgdb7jElzP66qUly+xw+TyhuERd XPlQ28+HeWJjszd7T0JhmTwujKgOM6BGUTcKkuV5O9IJ9lq3B43mozc5oXZjWJDIiRXB OCGi9e7lhAA4GY93/QePYQS5j42HJIyj4JuRXvAgxYZ6iXiTFU0W2TAzRVD4pK54m0dS N3YIwOjLb0bpIoY+9tf04m1LOeQYbZsKkoSSt4uES0x2JGAdp4fGjecGpr9slqvZV9mV ooeN4A9Cf3HwMIi2Y25clHQYrx70NBgoCwNkm+P4ZHPPLPKokBwgPqe9YNUZVr3KcK7o JWEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0evwfVr5oz23JFffPTRBSjiLxYvlnzJuk2S/0AYyRIo=; b=i5zWngSqiuio7UmG5vJmNsaJ/mxbbcWWW15IntijywG2hDIBQ8x+BbS9a70JnXx3mB WZbOLEOtj0CNDpy81ozs40J6B8IVon2expD1XSh+jXetVEMofnRnDQvLeejMK+5MsbAH P0Q5m+gGI8KgXtI400xI0c8WFKJOmj/YSMOXIWD1c2jEkEVWkBE57Vov+ZCLW8/BIgco PY6q8fNpZA8CrH2kH/EL/VyE9e5FZvItCzmNuVbtih8hxaeOovRvgACFj92Yp9MoXnNJ oyzOdb9kWPcMhXBrFgZFuYGgHSQIwkyPyR13NQe4SQjMYWuEReeIEpmfWu0nBwVt1aHu Hr6Q== X-Gm-Message-State: AGRZ1gIteN+qyaJZWBKQBsh1c+hrwdwiHUyUu+NkEECE7Cp+SGQF9I0z NfffEZ3E9WgNeIPChOSPjDYjzRl1OwLhiJvM7/Y= X-Received: by 2002:a0c:c2ce:: with SMTP id c14mr1971511qvi.7.1542204278283; Wed, 14 Nov 2018 06:04:38 -0800 (PST) MIME-Version: 1.0 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> <5BEBEF7C.7060003@samsung.com> <5BEC018E.8020102@samsung.com> In-Reply-To: From: Andy Shevchenko Date: Wed, 14 Nov 2018 16:04:26 +0200 Message-ID: Subject: Re: [PATCH v1 2/5] extcon: Return -EPROBE_DEFER when extcon device is not found To: Chanwoo Choi 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 14, 2018 at 1:17 PM Andy Shevchenko wrote: > On Wed, Nov 14, 2018 at 1:05 PM Chanwoo Choi wrote: > > > Changing NULL to -ENODEV is a trading bad to worse. > P.S. I still disagree with your arguments in relation to de facto use of an API. I spoke to colleagues of mine and they are agree that semantically -EPROBE_DEFER is a wrong error code from API that matches against some list. On the other hand, they agree with me that changing NULL to -ENODEV is a trading bad to worse. So, I withdraw mine complaints against API. -- With Best Regards, Andy Shevchenko