Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp749651pxa; Fri, 21 Aug 2020 21:43:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCtDVpWFNxuh+NKGWzCddTnInGyDNtmc1VpIrVVbR95iFKTtN5VBz61nlyA5xTlg9Lg6t4 X-Received: by 2002:aa7:d1cc:: with SMTP id g12mr5923362edp.385.1598071385874; Fri, 21 Aug 2020 21:43:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598071385; cv=none; d=google.com; s=arc-20160816; b=v6CwKOx3fZqrYrgHTKEdzJEYnrSBf/5nDEZ8Qn33PMr2OkK93t8kQFrgLxmNRxrInA roWM9su9oEQx8svMJ9c4GGKGzfC3daHhaHMTOyEfNVoVESZXGf1JAaHxghVy++ANUbMZ caH4Z5zJiHDI61AZjiQPNq5/2YnPlasBbR0YwTyQT7JG1d+Dn6HV17wAffEQUsmgLytc wl21tnCtfax64pcDojIORybVLWMQef42aG+WPhDuyppcAZoi/es4YgYlbYYgagAa4Fp1 HWq/lfxmHHnVxin2Dq8ro0V1MgPnmfwHFubjdCuqIgYrBIBUiAaZUogjqHvBTK0g+Xlq 4iqw== 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:ironport-sdr:ironport-sdr; bh=7e+ZJViiFp6rOeAGlLB5SoxDr54F4+rNiv7WtlXzH2M=; b=kQueXPPe0kFM9r7GlU95c7OMWx2XeHUYoLlqbwdq3sfxoKPuFbXS2KHb9G2aS5rSfg 3Q78uBEt91zz7hpHIA/UHyZ5u2EUuhNBa177tUpGk/+rmBr512hlkS78nuaVlhAfv1UA El4TyS8mTC5dY1sT3MOfoQvSA9uWimBIZ979eQubvaYM8YfQcmqQk8VC/Evsz0Y5RCR+ TwdA79adV9/diVNDeJSuGBOAUdorZdXbuqRulfx0CW1gKVlZngzZPDtv5kLWqQfuvFdU offsmYYfs1GNlyRMPhkE5e91gtd914KOkdRQkYEdBY0LHAJ5mjL1S683hlqiYvStvHgH lRfQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i6si2550452ejc.494.2020.08.21.21.42.41; Fri, 21 Aug 2020 21:43:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726580AbgHVEmD (ORCPT + 99 others); Sat, 22 Aug 2020 00:42:03 -0400 Received: from mga11.intel.com ([192.55.52.93]:62111 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725840AbgHVEmC (ORCPT ); Sat, 22 Aug 2020 00:42:02 -0400 IronPort-SDR: L5cWrMKeTLKA+Ql7C8AaxVuaFgEuQJe2/QT6SFAkOg5BTHZzkciTnp/ykw8j2GoZofVgWD9vsC Ob758+GcXEEw== X-IronPort-AV: E=McAfee;i="6000,8403,9720"; a="153275278" X-IronPort-AV: E=Sophos;i="5.76,339,1592895600"; d="scan'208";a="153275278" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Aug 2020 21:42:00 -0700 IronPort-SDR: /wRozzR/+pHnFL1sLFEhDuh29wmyHAaIIjcALqJySqFz31V/w+W3Lh2NcT1oZa6hhrPaDMdhMM grwt4A3mgmHQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,339,1592895600"; d="scan'208";a="327943115" Received: from glacier.sc.intel.com ([10.3.62.63]) by orsmga008.jf.intel.com with ESMTP; 21 Aug 2020 21:42:00 -0700 From: Rajmohan Mani To: Darren Hart , Andy Shevchenko , Mika Westerberg , Dmitry Torokhov , Lee Jones , Ayman Bagabas , Masahiro Yamada , Jithu Joseph , =?UTF-8?q?Bla=C5=BE=20Hrastnik?= , Srinivas Pandruvada , linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, Heikki Krogerus , Greg Kroah-Hartman , linux-usb@vger.kernel.org Cc: pmalani@chromium.org, bleung@chromium.org, Rajmohan Mani Subject: [PATCH v2 0/3] Add Intel Input Output Manager driver Date: Fri, 21 Aug 2020 21:05:05 -0700 Message-Id: <20200822040508.23510-1-rajmohan.mani@intel.com> X-Mailer: git-send-email 2.20.1 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 Hi, This patch series add support for Intel Input Output Manager (IOM) driver, which is leveraged by the Intel PMC USB mux control driver. changes from v1: - Included device role (UFP) support patch from Heikki to this series. - Addressed Greg's comments on v1 with below changes - Used per-instance variable for struct intel_iom - Removed struct device *dev inside probe function - Removed dev_set_drvdata() inside probe function - Added NULL pointer check on struct intel_iom * as well as members dev and regbar, inside intel_iom_port_status(), to protect against calls to this API before driver gets probed. - Limit support to only one IOM device - Removed intel_iom_get()/intel_iom_put() calls, as the dependency through Kconfig is enough to prevent the IOM driver from unloading, when used by callers. Heikki Krogerus (2): usb: typec: intel_pmc_mux: Check the port status before connect usb: typec: intel_pmc_mux: Support for device role (UFP) Rajmohan Mani (1): platform/x86: Add Intel Input Output Manager (IOM) driver drivers/platform/x86/Kconfig | 16 +++ drivers/platform/x86/Makefile | 1 + drivers/platform/x86/intel_iom.c | 95 +++++++++++++++ drivers/usb/typec/mux/Kconfig | 1 + drivers/usb/typec/mux/intel_pmc_mux.c | 124 ++++++++++++++------ include/linux/platform_data/x86/intel_iom.h | 49 ++++++++ 6 files changed, 251 insertions(+), 35 deletions(-) create mode 100644 drivers/platform/x86/intel_iom.c create mode 100644 include/linux/platform_data/x86/intel_iom.h -- 2.20.1