Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6609981ybe; Wed, 18 Sep 2019 06:21:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4TSbaq7WkJNZZ8d2Uh4JTq3V0BCC/KObyGHGeQqG3dZLzJTUlQKAtKJ76VqwueJfkiNVY X-Received: by 2002:a05:6402:1f4:: with SMTP id i20mr10303658edy.137.1568812901838; Wed, 18 Sep 2019 06:21:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568812901; cv=none; d=google.com; s=arc-20160816; b=HvswhOSDMgjSHAPKAresdCzVdQ2041x5TQDX2c+mBYw25IsjQ5jYHHpHT06GqluEEY QncaaOhWsUXdHGdzhD46bBDvd6VzUKMm6trlKtA01y3kRg03SreePfHLte0oOZOoYodk XdIBTbETJM2MBtHPoNvHG/dQ9bXgqnEZPw8lqkZBJMKb6sM+CmKUxixS37989GcL9Gg4 paz1gu8C4eGGj5zh9SIzsHaJdjnllGD3+6X/v0fdxqX/LdF+rkXuZzQB1WaLgIh5RnzP TU8bCPxANH1Q5nzAinAXVHzg2JtPWwo15k2nblQyzKWjtqhPx4PKXudpmnZO5gYXyqI/ 0sKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=cymeMj7ZGM8MDmBXapGMRRNr8BctclgyiDGVRif1ROc=; b=MwheiBFUwg4LaHljQUqrnvl29dm+kzMhPix9QD6hOXKwwiuFBtogxKM8AkiNv9QtaE jlBku66+D9M8TPbMonxXfuURjiRgwT34ABu/3hszXCuNR15Vy6zdicqwX1qJICKtmLcT 1imaMN1z2xxLi+nsBo43jWZsTg0jOeBX5v+YdEsY/Jl/Q1kDtQiukDMlCFmkGR1g0Jkr bx7XlL19Jj0x3C4fWiP2Kh+nQmPSp5GVX6zI1ip/RbW8mrKOzsAdwjNPI5eWG5/DNfoN lXhJ3gEisGcn2xfE87aKIGn7YrWQkqbJaMKf5ZIp0Gxuw0TQGSFsUkIVVSEGz+F+BNmx 7yxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oBQDE9Xv; 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 o49si3349564edc.261.2019.09.18.06.21.18; Wed, 18 Sep 2019 06:21:41 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oBQDE9Xv; 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 S1727565AbfIRLww (ORCPT + 99 others); Wed, 18 Sep 2019 07:52:52 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:40592 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726038AbfIRLww (ORCPT ); Wed, 18 Sep 2019 07:52:52 -0400 Received: by mail-wm1-f67.google.com with SMTP id b24so2232593wmj.5; Wed, 18 Sep 2019 04:52:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=cymeMj7ZGM8MDmBXapGMRRNr8BctclgyiDGVRif1ROc=; b=oBQDE9XvO+22bQtg8FT3U1/6ouTb+CFjtaQ/Py34IGPxYxOUCcUgnYnte7kl8FL4NV APdK+X8XPot9IgtKobxUeFZ8BO0FPEWzh9jP/s9kMvqx61VzsIZx+J9x9hcDl4x0uxq6 2RSx80kkhyJ9uBtjI7WBn9gkkIk3h7RFhh91Wg7kAyvdVN8y9KmhQhS66OIZqUj6lkMH bljo1SYesmIUycVNnx/UiZJ6XkBqISo4pp4O37cWeDt8Nw5MkoSTtGU5XyAvsI2+Cyta xAyc/OuZS5UqNnLJATzRgHCqLNZ1IM0p8PF3Wu/AaP0e/7s7D9684n2gDqne8YzoHJkA s0Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=cymeMj7ZGM8MDmBXapGMRRNr8BctclgyiDGVRif1ROc=; b=V3zFxagRND62h1QMbWIbuh+SXzNokBly7ytABUY0S8+mtFv2rVR42J6vOvRpqBNO0f YJ6OV5J7CT/tYW38pRiRYJunEOsdxePHghY/stD9hpEs1EbS/qVRIorT78IGEyV/MuaU IO4ZNNirtNkl3ifK+mNqykxr64WL3BrjmUY1yatJR/W/E9iLQ/5IFw9shSWrBPUgfH3s T8pNZJZZDPHubgErbas9srzeut+sSw2p9JT38Heja7hHUyaeMieltXxs+tiJwC1z/a65 aE8r9mRaZbRMA1dwEQv0TXNZnaVtqO+ozsn7H+F9bRCypRxuvv/zQUpqrigaStiVzSCn ZYzA== X-Gm-Message-State: APjAAAWQu1YBeR6nA65zDXB4lPTJ/LU29QfVKYUMmtfRxUq2bfAZPQQD pg7mTOPRZmviyIfsli3GcG4= X-Received: by 2002:a05:600c:28d:: with SMTP id 13mr2594242wmk.84.1568807569891; Wed, 18 Sep 2019 04:52:49 -0700 (PDT) Received: from localhost.localdomain (dynamic-vpdn-93-125-15-224.telecom.by. [93.125.15.224]) by smtp.gmail.com with ESMTPSA id b144sm3667279wmb.3.2019.09.18.04.52.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2019 04:52:49 -0700 (PDT) Received: from [127.0.0.1] (helo=jeknote.loshitsa1.net) by localhost.localdomain with esmtp (Exim 4.92.1) (envelope-from ) id 1iAYVv-0007bj-Gr; Wed, 18 Sep 2019 14:52:51 +0300 Date: Wed, 18 Sep 2019 14:52:51 +0300 From: Yauhen Kharuzhy To: Heikki Krogerus Cc: Darren Hart , platform-driver-x86@vger.kernel.org, Hans de Goede , linux-kernel@vger.kernel.org, Andy Shevchenko Subject: Re: [PATCH v2 1/1] platform/x86/intel_cht_int33fe: Split code to USB TypeB and TypeC variants Message-ID: <20190918115251.GA28946@jeknote.loshitsa1.net> References: <20190917194507.14771-1-jekhor@gmail.com> <20190917194507.14771-2-jekhor@gmail.com> <20190918113835.GA16243@kuha.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190918113835.GA16243@kuha.fi.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 18, 2019 at 02:38:35PM +0300, Heikki Krogerus wrote: > On Tue, Sep 17, 2019 at 10:45:07PM +0300, Yauhen Kharuzhy wrote: > > Existing intel_cht_int33fe ACPI pseudo-device driver assumes that > > hardware has TypeC connector and register related devices described as > > I2C connections in the _CRS resource. > > > > There is at least one hardware (Lenovo Yoga Book YB1-91L/F) with micro > > USB B connector exists. It has INT33FE device in the DSDT table but > > there are only two I2C connection described: PMIC and BQ27452 battery > > fuel gauge. > > > > Splitting existing INT33FE driver allow to maintain code for USB type B > > (AB) connector variant separately and make it simpler. > > Sorry, but "Type B" is even more confusing here. Type B refers to the > Standard-B USB connector, so _not_ the micro connector family. You can > check the connector definitions from the latest USB 3.2 specification. > The standard-b definition goes something like this: > > "The standard _Type-B_ connector defined by the USB x specification." > > Note that all the five supported connectors are listed in ch5 > "Mechanical": > > Standard-A > Standard-B > Micro-B > Micro-AB > Type-C > > So what was the problem with names that refer to the micro connector > family, for example "micro-ab" or "micro-b"? Only one problem: there is no difference between micro B, micro AB, mini B or Standard-B types of connectors from this driver point of view – all of them can be used for device charging. Now we have only two kind of hardware with INT33FE pseudo-device: with Micro-B and Type-C connectors but other kind may exist. TypeB is not standartized but it seemed to me a good generalization of "USB connectors to charger connection but not Type-C". No problem to change it to other suitable name, 'simple', 'dumb', 'non-TypeC' or 'micro-B'. All this names are not ideal. -- Yauhen Kharuzhy