Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp143109iob; Tue, 17 May 2022 21:42:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkU76taF4KEN1K5by3TZkvVGBlNpLGQAl902/J/PAkXiL4fVzY/YOEaqdwEoRNx1oZHioY X-Received: by 2002:a63:5a23:0:b0:3f2:678b:8de8 with SMTP id o35-20020a635a23000000b003f2678b8de8mr12084721pgb.226.1652848944552; Tue, 17 May 2022 21:42:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652848944; cv=none; d=google.com; s=arc-20160816; b=BC6ZKMYfZVXIRLyQxTCFqQoa+mitQpfIzpilKEZUjWGpNPmbAKjjFdXcoChj2CKtkV YiVr0gBWU1+9WVST2FZTaRm9KQbjMHRY8lSO8uIb2CjrxNUiKYu0dXG2Grcqi5s2jIjU u+Yrv10pGiK6NTnZXcVzRDC4hmp1WZM4pw+9AywE8Fb4Xz+2LKE5AkEomx7TPRmvtq3W gOeslVlg96k29vV7DCjFKWdvoCdSjqWe4FSZUOndlQDSdp86KqRp4mmuZAvKtYSbKuMg 99TRUwBrnTrjLe2qXBN9JqWUwT/CdUgzRI23Kp+Y8IdXDcescKJHXdVJ9wi7NUZgyhnT SUyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WcK2JUZcjleYQ+ehJoqWZx1V98FwapKGFaS6k/OLh8g=; b=bgvHa44UAwjbDxcJOyu8HBGgDjr3GL4OJ6N1KvQOCU4DYUfeSbvHLB8zt4wmGVzvxU xZr6Dtqu5BeMWS/jFOg/vRgkkhY1TvP40zFKbJxHF9clZAUW9ZYpUFHQHKbSEPkHKTzl hkyIX8ldiIe08+ZWL9VHlUG+Yc1eFMnwzHMDTr0jFdq+cgp4lSRUPGQTglttR4eixmFk K3mI57eVkGJUVIoWDoY5pQrJnSZ+35TY/8p87vm3S0MTVoY9eCeB0KfZ0NjhZS/SsWmN TijLyc0UcNJMCvgSzjSwJ3Ienhp4QtTrAJWPQli9EGzyMqZg5miGuCUQ61w0HOqQw5Q8 9PBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b=H0nNjK82; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=bewilderbeest.net Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u8-20020a17090341c800b0015d9e665a81si1561025ple.521.2022.05.17.21.42.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 21:42:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b=H0nNjK82; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=bewilderbeest.net Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 24D14AE60; Tue, 17 May 2022 20:56:34 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229630AbiEQBDY (ORCPT + 99 others); Mon, 16 May 2022 21:03:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237037AbiEQBDS (ORCPT ); Mon, 16 May 2022 21:03:18 -0400 Received: from thorn.bewilderbeest.net (thorn.bewilderbeest.net [71.19.156.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3267244A18 for ; Mon, 16 May 2022 18:03:16 -0700 (PDT) Received: from hatter.bewilderbeest.net (174-21-163-222.tukw.qwest.net [174.21.163.222]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: zev) by thorn.bewilderbeest.net (Postfix) with ESMTPSA id 8233147B; Mon, 16 May 2022 18:03:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bewilderbeest.net; s=thorn; t=1652749396; bh=WcK2JUZcjleYQ+ehJoqWZx1V98FwapKGFaS6k/OLh8g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=H0nNjK825o6tRHWW3XPRoKEtGmyN5Wx2qzJJMWtd3360P2BOJH/AcfQMpVkQT5B7Z UQodwU6YcypPd5D/F1Kch895CPbtyFjodwOgNHCd+BZoT0mnoP4SiaWum/MIQjDkvN Mjta35KAfqlIWuOkJAnFF2730JxVOYJQ16OBOPc4= Date: Mon, 16 May 2022 18:03:12 -0700 From: Zev Weiss To: Mark Brown Cc: Chanwoo Choi , Liam Girdwood , MyungJoo Ham , Chanwoo Choi , linux-kernel@vger.kernel.org, Greg Kroah-Hartman , openbmc@lists.ozlabs.org, Sebastian Reichel Subject: Re: [PATCH v2 2/2] extcon: Add extcon-regulator driver Message-ID: References: <20220505232557.10936-1-zev@bewilderbeest.net> <20220505232557.10936-3-zev@bewilderbeest.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [Adding Sebastian for drivers/power discussion] On Mon, May 09, 2022 at 08:24:16AM PDT, Mark Brown wrote: > On Mon, May 09, 2022 at 09:24:39PM +0900, Chanwoo Choi wrote: > > Hi Zev, > > > > I checked this patch. But, it doesn't look like the extcon provider > > driver. Because basically, extcon provider driver need the circuit > > in order to detect the kind of external connector. But, there are > > no any code for detection. Just add the specific sysfs attribute > > for only this driver. It is not standard interface. > > OTOH it's something where if I look at the physical system with the > hardware there's a clearly visible external connector that I can point > to - it just happens to not support hotplug. It's not clear what other > system it would sit in, and it seems like an application that displays > external connections on a system in a UI would be able to do something > sensible with it. Chanwoo, any further thoughts on Mark's reasoning above? I certainly understand the reluctance to add an extcon driver that doesn't really do anything with the extcon API, and I have no idea when we might end up enhancing it to do something more meaningful with that API (I don't know of any hardware at the moment that would need it). That said, as Mark points out, the hardware *is* ultimately an "external connector" (if a very simplistic one). Do you have any other ideas for where this functionality could go? Greg wasn't enthusiastic about a previous revision that had it in drivers/misc -- though now a fair amount of what was in that version is now going to be in the regulator core, so maybe that could be reconsidered? Or maybe something under drivers/power, though it's not really a supply or a reset device...drivers/power/output.c or something? Personally I don't have any terribly strong opinions on this, I'd just like to reach a mutually-agreeable consensus on a place for it to live. Thanks, Zev