From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Google-Smtp-Source: ACJfBosCaBIJJuT938rp+udFldd+sqNq8pgvyMvIKNm4oB85+Ae9LSlnnTUH00KV6mIJUwAltx65 ARC-Seal: i=1; a=rsa-sha256; t=1516206333; cv=none; d=google.com; s=arc-20160816; b=m6sQizbJMcchpVDFQnSr1LgNE8PBKFp0bT+VvTVS6ScsVtJZ5NfsO4wrEvzgeMJrxj irwii9kN/BDYgp16PB/DCqP/Lz6lGEgpeCtnVf4lYqYeQc1AitweNrRMOqOYWzz75Sg/ 2kClAH7JKIuQ53iCHPYBZDjja2ocqcKF67f8Uikp3NRTuZwSvhssFG3Ckzad2ignK2Yw KwDt7NkAwWihkHpnL4MDmpVPrKj1fPwUU6IxBXXlskytxR3g3y/PB5NKFgXbISd1Kz4q TMH9yxtUKH7fIHcoS4c4NpxXslRVjVighVOPWVr5nows8K/ywpNcyogCRcLFW/paUToN cQPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:arc-authentication-results; bh=zVfXCw2CbK0+XIQsymqyowWoWnBxdADY2gHcxnW/KFw=; b=L8vQAIq/DJu965+QRTBlzVSr9V/cjFfXU1b8itoC3zjMUEw8BDz8ouyNiqLdH60rEX 9K4/OO+wWVhYky2Li0g8/+3TzogL02OB2B3OSIDGzRUIvcEHH9SS6C9D0gIALTucyRbn 9m7IbLgPsx8uOpeyY1sVwQ/Zv2xe3Siht0zOBG0+SBsVvKfKZBjazKgwYVeFNkyHSuVu lwh1etqWJdRGvC5hlVaxU5XbrCoCWod75eXXbMj/o4Yed5x4h8LFuQ0xuAJ1K/M18KXa Gld5D77TgG8WUdVVH8BzKx9wahOwPecU02AKul1paYTu8YVfpW1doMFWVkyqBBmlSL6c DvHA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of vadimp@mellanox.com designates 193.47.165.129 as permitted sender) smtp.mailfrom=vadimp@mellanox.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Authentication-Results: mx.google.com; spf=pass (google.com: domain of vadimp@mellanox.com designates 193.47.165.129 as permitted sender) smtp.mailfrom=vadimp@mellanox.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com From: Vadim Pasternak To: dvhart@infradead.org, andy.shevchenko@gmail.com, gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, jiri@resnulli.us, Vadim Pasternak Subject: [patch v9 0/4] drivers/platform: Replace module x86/mlxcpld-hotplug with mellanox/mlxreg-hotplug Date: Wed, 17 Jan 2018 18:21:52 +0000 Message-Id: <1516213316-32278-1-git-send-email-vadimp@mellanox.com> X-Mailer: git-send-email 2.1.4 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1589857572197066942?= X-GMAIL-MSGID: =?utf-8?q?1589857572197066942?= X-Mailing-List: linux-kernel@vger.kernel.org List-ID: The patchset: - replaces modules include/linux/platform_data/mlxcpld-hotplug.h and drivers/platform/x86/mlxcpld-hotplug.c with the modules include/linux/platform_data/mlxreg.h and drivers/platform/mellanox/mlxreg-hotplug.c; relevant Makefile and Kconfig are updated; - modifies Mellanox hotplug driver for making it architecture independent. Drivers has been tested for x86 and ARM based systems. - includes code cleanup; - introduces regmap interface for mlxreg-hotplug driver to allow hotplug event functionality over programmable devices logic, when these devices can be attached to different interfaces types, like I2C, LPC, SPI; driver drivers/platform/x86/mlx-platform.c is updated according to new interface. Vadim Pasternak (4): platform/x86: Move Mellanox hardware platform hotplug driver to platform/mellanox platform/mellanox: mlxreg-hotplug: Allow driver for ARM architecture platform/mellanox: mlxreg-hotplug: Code cleanup platform/mellanox: mlxreg-hotplug: Modify to use a regmap interface MAINTAINERS | 7 +- drivers/platform/Kconfig | 2 + drivers/platform/Makefile | 1 + drivers/platform/mellanox/Kconfig | 26 ++ drivers/platform/mellanox/Makefile | 6 + drivers/platform/mellanox/mlxreg-hotplug.c | 622 ++++++++++++++++++++++++++ drivers/platform/x86/Kconfig | 8 - drivers/platform/x86/Makefile | 1 - drivers/platform/x86/mlx-platform.c | 237 +++++++--- drivers/platform/x86/mlxcpld-hotplug.c | 515 --------------------- include/linux/platform_data/mlxcpld-hotplug.h | 99 ---- include/linux/platform_data/mlxreg.h | 144 ++++++ 12 files changed, 990 insertions(+), 678 deletions(-) create mode 100644 drivers/platform/mellanox/Kconfig create mode 100644 drivers/platform/mellanox/Makefile create mode 100644 drivers/platform/mellanox/mlxreg-hotplug.c delete mode 100644 drivers/platform/x86/mlxcpld-hotplug.c delete mode 100644 include/linux/platform_data/mlxcpld-hotplug.h create mode 100644 include/linux/platform_data/mlxreg.h -- 2.1.4