Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp3587892rwb; Sun, 30 Jul 2023 11:00:20 -0700 (PDT) X-Google-Smtp-Source: APBJJlG3h1sGesZnSUYwviC3us8p71o8rUdjEUCGBPVXXMll6dmQoXARG3wWZ72VQDa2i1gBiAjZ X-Received: by 2002:a05:6a20:729d:b0:13b:7757:d5b6 with SMTP id o29-20020a056a20729d00b0013b7757d5b6mr9747028pzk.57.1690740019907; Sun, 30 Jul 2023 11:00:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690740019; cv=none; d=google.com; s=arc-20160816; b=fopDujKQ0IqCY3S3g3AumddGs64zUMIlguyG6zCLbl9oY/UqqCmQrlO4VTfePskWxE eP2YBU2EomDujt59pCnDNlq2mgd70OIO+rylnpTdcD8Z7ZT14Y3624IPwTa16mIP/3kS LwlVG0Zsa5BHEGuyNWHkVlyVeRmISnKVPALiHPR75QreZfBWF1Fo0SZIfhNjwyDYDCCy xtY3y9dMKZc/buu0lUOqn7nW4/4FcyN+DRo7ifOlQPTL2rkQCA2es1rDrD9xsS898Nxn VbRFxL73QDEbVadvLaV3afMQg5xlu+0rPPkbuAT0N7lJBfpE7xv2HRqGErGcGLgxCkXQ WgQA== 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=nGP33OCz/CKZj6PIiaZJUvpNC2+KH9wN2QWZzTpD42A=; fh=BjFiqyGez2qVWmG0wu62etz5xuc32q53nQRda/35twg=; b=pHM4eHKSGpwZNBNO+emWESJip2JhGPxnskdp/6S3P4/tAWQstzxDaXbIt2poaCN0sZ rZOyAlLUX1t833tiHjJh1mSm/otUCdTpmNLEMg9FZoW9AHP2sZK84db+bRuP4VAJB7IH 9zPHYanKGp26Z55CIjcEZ2k1fEfcwrij7+8qi9Dr698jl6rjKvdQm1fa0krbYv/86mCS RrFLZgCVX0ajJhUioGweqZeJnt++cdLsJtwh8GM/TBf3/bGnFCcA9O1ge4qMyui+NzNA UdUwnz2BZYqz3cAm/Qn4kdlvbBIX8LraWIyWQf/FkDQ45gn/b66FfLvUqyU/XGW4dS+4 AxFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UveM2nWf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l34-20020a635b62000000b0055c51cc6265si5935652pgm.551.2023.07.30.11.00.07; Sun, 30 Jul 2023 11:00:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UveM2nWf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229776AbjG3Rtl (ORCPT + 99 others); Sun, 30 Jul 2023 13:49:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbjG3Rtk (ORCPT ); Sun, 30 Jul 2023 13:49:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18F3E103; Sun, 30 Jul 2023 10:49:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id ABAD760CEB; Sun, 30 Jul 2023 17:49:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7CB04C433C7; Sun, 30 Jul 2023 17:49:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690739378; bh=BFXGx1j2qWD6Pge+tz0jzNDQdNlCTwlDsesEGFQFsa8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UveM2nWfwnRQxqt+6BLNLWh9LKumKVq1Cfzl2SMTm5HBI2YMf62u5f/WmutilFPBY aTr6WpCV4i9FHgQlUAEnfXkbOWXWc3gn7qu/jEZ7dyhq9qeI6LS9YoRHS3d/PKWthZ obKOEbSgq9AHKcn1sxfIzGZGdlfhd+1ebbA1gupf+Hup06D0GSpdHy+Kfyg+ufsimI K5f+Yh3z/ktqtiqfpYmaxg3YTUfc7WBUL4QMoN7Bb+Jd6STGYZHKCVv6i8bKSADEV+ oX8/iU6Z3TGMXLLQAKVVaxWzkuhP6/EqIU+xhiFeBHfj8YoQP0qBFmkIUuh4d+1AFq 0SKAlbvr77vZw== Date: Sun, 30 Jul 2023 19:49:34 +0200 From: Andi Shyti To: Svyatoslav Ryhel Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Wolfram Sang , =?utf-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 0/2] GPIO-based hotplug i2c bus Message-ID: <20230730174934.vobmyhubi7jsqzjv@intel.intel> References: <20230729160857.6332-1-clamor95@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230729160857.6332-1-clamor95@gmail.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Hi Svyatoslav, On Sat, Jul 29, 2023 at 07:08:55PM +0300, Svyatoslav Ryhel wrote: > ASUS Transformers require this driver for proper work with their dock. > Dock is controlled by EC and its presence is detected by a GPIO. > > The Transformers have a connector that's used for USB, charging or > for attaching a keyboard (called a dock; it also has a battery and > a touchpad). This connector probably (I don't have the means to verify > that) has an I2C bus lines and a "detect" line (pulled low on the dock > side) among the pins. I guess there is either no additional chip or > a transparent bridge/buffer chip, but nothing that could be controlled > by software. For DT this setup could be modelled like an I2C gate or > a 2-port mux with enable joining two I2C buses (one "closer" to the > CPU as a parent). > > In this case it's hard to tell the difference if this is real or virtual > hardware. How did you test this device? > This patchset is a predecessor of a possible larger patchset which > should bring support for a asus-ec, an i2c mfd device programmed by > Asus for their Transformers tablet line. Similar approach is used in > Microsoft Surface RT for attachable Type Cover. Would be nice to have a driver using this support in the series, otherwise it looks like thrown there without any use. Do you have any use of it already? Even in your private repository just to take a look. Thanks, Andi