Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5771017ybe; Tue, 17 Sep 2019 13:14:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqybDJTcbr55PZlgzRomOtP06h6x+k8+TE2Bd1z3wUCc+ZB8oWzYBSL6eWd3n7oRyQTXhMyM X-Received: by 2002:a50:b0c6:: with SMTP id j64mr6640663edd.267.1568751266738; Tue, 17 Sep 2019 13:14:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568751266; cv=none; d=google.com; s=arc-20160816; b=AjMkqlNPep6Mi+BqUx9bcs+g9ZhNet4+BnKeudqDSfIZEzwpTbSmyLSVCl7g1DVq9E jRcGZ6QyCSVWUG9cbfXEejH2AcEgVH3JIHtkmBCzbO5JqQpjJbw4E9GvA7eHVQrCyt/y RYVj2hRoSYfbsN3F2get9s5/0TJSoqBk2AnV98vxEPz7ErT3vOJidkL9bKivkr0JOAA0 xA0LFlTLrhT32E7N/hrDmWmoyaXQMxRNa/sgClPH+cKNWC7eT/9vlAhITAWTikGpQihB WItitDe4n8AX3QBApSSvLllPAZvR5B02eXoisx6Mh5I1hjnMQvxnGw7ghhpsFSbEERxT wDDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=glAfUtGhy1cDDW4ClQs75Rd7BWqQGXGFYsoau+F0hKg=; b=eKWpaIotrSmvu37gVA1rIoh5imVTLKyTHx79IqbCWHB6tSVG5AkS1BCcydVsuFl0eG e8KQNeLaPys3OghxzilFuPQe7nhIwMOaKooIyoTWcYSwZktKjEX19SNBSPQ1Vilm9xTj ai+XiZmOh2ocPaH6nF3R66Y+QNE3225j6MXvMTWwXuZcNQ9bteVN7OfYRCCxL6Rx4cnG Z+antR6+j5+v78TpQqllCLQiLe6UZL7itBgkQmlU95P8VtdYO4RFwYLTaHG5qY5kfRor GkTMlWhR5PVkzeczm+eSrvYDCEDOWTsEArzh7Vrh3cY4d04/VDFj3F9HwoW1Ztd8c9fb JZ5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dGq6Anxv; 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 v17si1973831eda.256.2019.09.17.13.14.01; Tue, 17 Sep 2019 13:14:26 -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=dGq6Anxv; 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 S1728404AbfIQTpT (ORCPT + 99 others); Tue, 17 Sep 2019 15:45:19 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:39711 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726475AbfIQTpT (ORCPT ); Tue, 17 Sep 2019 15:45:19 -0400 Received: by mail-lj1-f195.google.com with SMTP id s19so4805620lji.6; Tue, 17 Sep 2019 12:45:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=glAfUtGhy1cDDW4ClQs75Rd7BWqQGXGFYsoau+F0hKg=; b=dGq6AnxvlR0IfzSEL4Av8sUx/aIEfI9ZGPm/D5Ch1fqHUxZ6evZLRF+RlrWA7Z3+HG kUN0w+be+ThLC+YXchNLFITpZwJkKpmHxdx0+jFTUX48C/SZDYF6eZOL52DizPI8XHnh SpSZ2fQ6+iLAmli0VC8oZmNpfi9CduR6I116Avzn4ScSJBpS2h1hSXWvIPweWVk72coq tj5Z6k8Dk5q0KY/LOZ+CboORC5DdnxGX5bEsQCCxu+Slo7oW/+iR8nVdZ7OvIoEMe5Of cvZLn04eD52hAomQ0K1nS6yp4OVx3xH1qdpD8lkhVsyLIpNV5GZqjV/NnfA/ixMi5mpO AvaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=glAfUtGhy1cDDW4ClQs75Rd7BWqQGXGFYsoau+F0hKg=; b=AobkAente8Kyxf797A5yeqPatvMKomPfCxUkh4kYfAuRSpYCIpOQlMYKPVGeQEf0eH DxlNflrYEftzx30D9IerqVH1G+8tiqgAAf5hDFiAvS98/gAyCyKhLt33fICNBAuX7t3y o1loXuLJaoEaPrwRCYnZ0qS9mmankA/eQUdFl7pYfyAOQHsR5pIZeq6aPXZpESW8POSb ijZ4pULVj4O9OV/afjQno3YAkxSp6dmilwGCoMfrC3cFDjUkHPh2Ml9jwudOqI4dnGRF hmavmBfrLB+wvMKT63zYRrbNXePziDy53IDC6HN1Ilfl+l1jZiG+i0EQcp5Yufp/nOtz u/+A== X-Gm-Message-State: APjAAAUJ25aPdkqNw5B5hZvdID+XLD0dnMLmTqD07mPv1Aq1YEBsYtrb /QIrFtw4/XcnrpsCBXhlgMk= X-Received: by 2002:a2e:810e:: with SMTP id d14mr39911ljg.160.1568749515241; Tue, 17 Sep 2019 12:45:15 -0700 (PDT) Received: from localhost.localdomain ([46.216.138.44]) by smtp.gmail.com with ESMTPSA id k15sm614547ljg.65.2019.09.17.12.45.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Sep 2019 12:45:14 -0700 (PDT) Received: from jek by localhost.localdomain with local (Exim 4.92.1) (envelope-from ) id 1iAJPW-0003qz-UI; Tue, 17 Sep 2019 22:45:14 +0300 From: Yauhen Kharuzhy To: Darren Hart , platform-driver-x86@vger.kernel.org, Hans de Goede Cc: linux-kernel@vger.kernel.org, Andy Shevchenko , Yauhen Kharuzhy Subject: [PATCH v2 0/1] intel_cht_int33fe: Split code to USB TypeB and TypeC variants Date: Tue, 17 Sep 2019 22:45:06 +0300 Message-Id: <20190917194507.14771-1-jekhor@gmail.com> X-Mailer: git-send-email 2.23.0.rc1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Patch to support INT33FE ACPI pseudo-device on hardware with USB Type B connector. v2: Instead of defining two separated modules with two separated config options, compile {common,typeb,typec} sources into one .ko module. Call needed variant-specific probe function based after of hardware type detection in common code. Yauhen Kharuzhy (1): platform/x86/intel_cht_int33fe: Split code to USB TypeB and TypeC variants drivers/platform/x86/Kconfig | 14 +- drivers/platform/x86/Makefile | 4 + .../platform/x86/intel_cht_int33fe_common.c | 148 ++++++++++++++++++ .../platform/x86/intel_cht_int33fe_common.h | 44 ++++++ .../platform/x86/intel_cht_int33fe_typeb.c | 64 ++++++++ ...ht_int33fe.c => intel_cht_int33fe_typec.c} | 79 +--------- 6 files changed, 278 insertions(+), 75 deletions(-) create mode 100644 drivers/platform/x86/intel_cht_int33fe_common.c create mode 100644 drivers/platform/x86/intel_cht_int33fe_common.h create mode 100644 drivers/platform/x86/intel_cht_int33fe_typeb.c rename drivers/platform/x86/{intel_cht_int33fe.c => intel_cht_int33fe_typec.c} (83%) -- 2.20.1