Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp1798358ybj; Sun, 22 Sep 2019 12:09:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqw5G0rKnRuOKfMK4GUuSeTu63sPtqPDDKeO4m7VIuVwdk9/Fp45PRNnHqOMqDhDKL4wk71S X-Received: by 2002:a50:eb8b:: with SMTP id y11mr32352649edr.200.1569179393180; Sun, 22 Sep 2019 12:09:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569179393; cv=none; d=google.com; s=arc-20160816; b=jYCQvwtr+PX07hMIpdEhQhfcaDFf0YyX4QR0yu/zhlFVpog/B9vUO2jRh9twfqlX8B iZG5ath1B+05EZn7ekSE68Vw0roYktZvj/awMwj5kESe8fzrXpvhP7Axut7U0hciPZh7 adsQDw1MejSs3HV2u3fZ61lmEdMiHx3vkIgVduSc7BXawt7rng9thnKJvKNPFfXGCirS Izl84Gub+3fOt1mihzmYdtSM9CKxQzIB/h+rZbAnCIQjwRGtR9JIpi2hJ4BO/ovuJfCk tVQVSMJNDGA0TRYzSUuGpVvWiU3JhNKSRHr0Oby+ub3IwVqmCNPQxR9DvfOAQ718h1NF yxHg== 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=Q8WJRi0w+JucyJTQXwPEtHORhuJYf52VkHY1/4TQuJ0=; b=kVwxObuJ7ZWFhbr0AocNJeNxlk+fsg3aUltRfHknOzVIu5+9Y5Hp2oS8k0p0WAXIp3 f2G800zs7wVi6vkxNq1zOUswTc6jhHeJXs8dzn/zMieMVvlGOwViK+GFGHc/bE9LBOkH wsQ27m0ilQUcShoguM4PvUQeBvbNdv6G+a97v5yEKBC2z7fgVc8Tlax5PP1NEfaHde87 iIY4ngpajFARvtCD+o9/7bJCFrZuG1tzSCogFJ2oKuxZ5Q6PcFQ2DAids2GMzNq24QB7 iyiWXxbdPtF6wwL3XeyI3gx/RaEUCjGBrapt80xRNVyDY0Bpv5Nnfz/UDDWEoVlS/S6v KwcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RIP03jqO; 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 e43si5633855eda.296.2019.09.22.12.09.29; Sun, 22 Sep 2019 12:09:53 -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=RIP03jqO; 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 S2405799AbfITWeA (ORCPT + 99 others); Fri, 20 Sep 2019 18:34:00 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:39814 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405584AbfITWeA (ORCPT ); Fri, 20 Sep 2019 18:34:00 -0400 Received: by mail-lj1-f195.google.com with SMTP id y3so7121367ljj.6; Fri, 20 Sep 2019 15:33:57 -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=Q8WJRi0w+JucyJTQXwPEtHORhuJYf52VkHY1/4TQuJ0=; b=RIP03jqOK9ZmW9aHHxlQmvzYwx997Ittiv7mAGej6BkrYqKSvhMCo0yy7Tg0yJ8yfh pQF0uCKIv9h3b+DjNtobjUyfSHPsRPvBErn515YHIDUWyHIZBt+BCSCY+ZbEvjRJ9FBb miSTZ041bKpGpdfDVtf9bw7w9IcM6oV25N7asuTbGeQKsipA7y9LWIH4xciVu6HszpFr CQKKnDIUYTAH/2m0Vx8U4tdfn9LksFOfRSqlcukVwXyPRKWDoXLgQn+YHYv4NyeCbxqV hHPYJqy80sY3nNPPCUi2w5gZxoHsBqhy4O2Mit8fQLn5I55Ox2+KA4NmoSJYOxyadcRv RnPQ== 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=Q8WJRi0w+JucyJTQXwPEtHORhuJYf52VkHY1/4TQuJ0=; b=kYE6xRbb3z2BEQ+NcpVUReYvwpBSc9P+NI4FBuc7hkN0viu9nzJjTjYtvcnARjjZvS bcFcDBXeY+zV6qEG0PwcrdIuU0rrNsBS0pmsD1agEstoDQKHG9tFYZy7xXD0T//cHnej WvNQaSv2FdK/uQNZkumbOlxhBvJpnDTDD495UCTN7GQ9U0UMwryKtN4pDn8UY7GyUI1F 0D/qlkybLV8dW3o3biA5t+Qck9Qk5bpzdLQYtFpHjyCN9XkOH59zTwArc5+dKFQJ6c15 wW2BSp/X9nznHees/49Gh+ojNZWW7jPvuTbUuKdmx5PJVQ8O4APOPdXH8PiyAzelo98X B1YQ== X-Gm-Message-State: APjAAAVloDPzENZbRvvCxb2ucieD4/Qn4KhSW5zOuKDtiMsH1jmgAVHN ogdfwKzOH7bQOsgiapJsWIM= X-Received: by 2002:a2e:934f:: with SMTP id m15mr10585420ljh.101.1569018836483; Fri, 20 Sep 2019 15:33:56 -0700 (PDT) Received: from localhost.localdomain ([46.216.138.44]) by smtp.gmail.com with ESMTPSA id r6sm741725lfn.29.2019.09.20.15.33.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Sep 2019 15:33:55 -0700 (PDT) Received: from jek by localhost.localdomain with local (Exim 4.92.1) (envelope-from ) id 1iBRTT-0001jc-Cz; Sat, 21 Sep 2019 01:33:59 +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 v5 0/1] intel_cht_int33fe: Split code to USB Micro-B and Type-C variants Date: Sat, 21 Sep 2019 01:33:55 +0300 Message-Id: <20190920223356.6622-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 Micro-B connector. v5: - Spelling corrections in Kconfig, commit description and comments; - Micro-B code: Remove warning at fuel gauge registration failure and use PTR_ERR_OR_ZERO() for simplicity. v4: - Micro-B variant: Don't print error to the kernel log if i2c_acpi_new_device() has returned -EPROBE_DEFER. v3: - Rename TypeB variant to Micro-B (we have only one such device for now and it has Micro-B connector) - Rebase on current linus/master - Remove empty lines and replace "TypeC" by "Type-C" 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 Micro-B and Type-C variants drivers/platform/x86/Kconfig | 10 +- drivers/platform/x86/Makefile | 4 + .../platform/x86/intel_cht_int33fe_common.c | 147 ++++++++++++++++++ .../platform/x86/intel_cht_int33fe_common.h | 41 +++++ .../platform/x86/intel_cht_int33fe_microb.c | 57 +++++++ ...ht_int33fe.c => intel_cht_int33fe_typec.c} | 78 +--------- 6 files changed, 265 insertions(+), 72 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_microb.c rename drivers/platform/x86/{intel_cht_int33fe.c => intel_cht_int33fe_typec.c} (82%) -- 2.23.0.rc1