Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6628106ybe; Wed, 18 Sep 2019 06:38:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqzOn1V3l7HppSZzVdy2EcFF1IkBzl3R5TWz+oJzmjQ4ZnLgZghe6Q7zE33NPPK6wb0IBX84 X-Received: by 2002:a17:906:b6d0:: with SMTP id ec16mr9587082ejb.206.1568813928378; Wed, 18 Sep 2019 06:38:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568813928; cv=none; d=google.com; s=arc-20160816; b=SXF8wVDvx6n1Vx5KJFdE3fEyYC1PMb4un99b3wXuZFK2m6zEQBRGEgP35QYRfmYUuR GpozRISWVBnc/2kvC1QlsS3U+a1nsYSwiiGSfyJU1XK2EndPOlWqEy74DLYnxvqvvGpv 4TsnvLBZlOZ5Bkfi9pNmbuARaDfkCMFKt8CEym4oxIo381dJcaiVq5Z7GbchPFKuBsuE lSKLcsx6GxG2xrNvN2wIQIg1lUM0oPLUDluP0hY0wNr4e1KQ/WFQn4FO05oLOxma11EO HvPF/nBvT67K1zXhsLvvzcNvAxn+bdHT7XY0jFF7pJSH14E2yAAXoSOse2vJxZkl3iBg vcDA== 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=8PF5nIJ+jYt7X/oj9VI26YgDuXnqnvQElnGgf6PKBKU=; b=PDTK6fJs42quV/9KuNoX3GJOW/s1Ea5UZ2mLckt3GeYV/Pp3xKermDii670H5UnLrL bKIQA4uXLersRvnCDTeIvS8yWVMNFMsn8u1EbC3DMOrHNp+giS/zCDQCQFRvXMb61Ciu AOktYz7KeZf5Tp33P0uDtwKpWU9F1T++gEEDBNx3Qk9tM6E5bVgHeyIUrK+jbZUgmBpi v6//T+KtQ2rkIa9wgTXKYeOeJohzpxS7Q3Ud+rP7m1ywQ2GEFh9ZueK2aUCOQK6g+jHh QLXjtjz9MpxbFzhwT30JHoDe9OUC+9YV/H3Y385idZfLRHEmIjiMoH+SgZKpYI6UcGbW EbQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CptOw0hF; 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 s19si2757200ejd.277.2019.09.18.06.38.24; Wed, 18 Sep 2019 06:38:48 -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=CptOw0hF; 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 S1731314AbfIRNH1 (ORCPT + 99 others); Wed, 18 Sep 2019 09:07:27 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:45897 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727001AbfIRNH1 (ORCPT ); Wed, 18 Sep 2019 09:07:27 -0400 Received: by mail-pl1-f196.google.com with SMTP id u12so447465pls.12; Wed, 18 Sep 2019 06:07:26 -0700 (PDT) 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=8PF5nIJ+jYt7X/oj9VI26YgDuXnqnvQElnGgf6PKBKU=; b=CptOw0hFcRgsZzonPLlM5hp/DQ4fCfs36m+tm/qkQal+OHbaPwmbp0UGP0VGTdbS6/ 1N70hF12R5oe2JyYIMvPrK7nklhgd4gcrhjscYmIoGChtfShE9npcuFH0uPnU8a2BXv6 04PQVNIb4x6PX8v0dAZty2bnJvy1+FgB5iXgMaunYBNmy4h3YrUUqbX/QZK13FRByd3g BoXIbTMCiBLu/CphQwShGqjTZxhqFrky8MOxO9mLTZ8u3pWgT2AAKBHmhZObNuzV+EuL YKut4pMBr+n2tLT46NUdVaZiPovMimUCiLPtyJS/sQ0YnjmC0w1xZOcmtpnetdKJjVxs qdtA== 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=8PF5nIJ+jYt7X/oj9VI26YgDuXnqnvQElnGgf6PKBKU=; b=M8wTMH+fEzRvgSSg7IvXKCyQk86JHTxx1RzOJO1E9wjwsaqmYGo3VIylmpLhV+75o6 v9bTjMssrC/m/IGS3XK4RPr2a8hsy6I4o2YLkdioxqH21C999KEPLpieo3E4l+lnf86B 0JEmHYn1gkpSrM0Kw/qDjh9CXXwGgfYc3FmRR7o63aZ017/oNaM+bUF5BbCEkN7m1D4C cAj97r87aQvIXtgR9NmyH/M8tbZg7TkNFEXMzTnL9SjWfZTm0sa3pW7LUMqTTB7O2JaN tpS6OL3EYjNcAuQZPYgjg8jBvJxxdi1RYgZU3UgGIz7jh04JXrhoMHoPoAPM8A2iFIw+ 7UqA== X-Gm-Message-State: APjAAAVegng4HyAtiFzE6WMp8sDiu0yt1LZ6d3LEh/kYfe4YiTvYUi+0 PmWh5XQozHwwIeqWiBbd654PyZ8mg73z+ElF0cw= X-Received: by 2002:a17:902:968f:: with SMTP id n15mr4216536plp.18.1568812046476; Wed, 18 Sep 2019 06:07:26 -0700 (PDT) MIME-Version: 1.0 References: <20190917194507.14771-1-jekhor@gmail.com> <20190917194507.14771-2-jekhor@gmail.com> In-Reply-To: <20190917194507.14771-2-jekhor@gmail.com> From: Andy Shevchenko Date: Wed, 18 Sep 2019 16:07:15 +0300 Message-ID: Subject: Re: [PATCH v2 1/1] platform/x86/intel_cht_int33fe: Split code to USB TypeB and TypeC variants To: Yauhen Kharuzhy Cc: Darren Hart , Platform Driver , Hans de Goede , Linux Kernel Mailing List , Andy Shevchenko 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 Tue, Sep 17, 2019 at 10:45 PM 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. > > Split driver to intel_cht_int33fe_common.c and > intel_cht_int33fe_{typeb,typec}.c. Compile all this source to one .ko > module to make user experience easier. Before sending new version also check that you spell correctly "Type-C" everywhere (except variable / function names). -- With Best Regards, Andy Shevchenko