From: Lee Jones Date: Fri, 27 Jul 2018 07:11:37 +0000 (+0100) Subject: Merge branches 'ib-mfd-4.19', 'ib-mfd-gpio-pinctrl-4.19', 'ib-mfd-i915-media-platform... X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=e5ff19cf75f33a4654fc54631577146a1162d527;p=openwrt%2Fstaging%2Fblogic.git Merge branches 'ib-mfd-4.19', 'ib-mfd-gpio-pinctrl-4.19', 'ib-mfd-i915-media-platform-4.19' and 'ib-mfd-regulator-4.19', tag 'ib-platform-chrome-mfd-move-cros-ec-transport-for-4.19' into ibs-for-mfd-merged Immutable branch (mfd, chrome) due for the v4.19 window Immutable Branch which moves the cros_ec_i2c and cros_ec_spi transport drivers from mfd to platform/chrome. Changes in arm are a simple rename in defconfigs. Change in input is a rename in help text. --- e5ff19cf75f33a4654fc54631577146a1162d527 diff --cc MAINTAINERS index 9d5eeff51b5f,fecfbd9e45df,9d5eeff51b5f,9d5eeff51b5f,07d1576fc766..2c1c6aef7d74 --- a/MAINTAINERS +++ b/MAINTAINERS @@@@@@ -4360,12 -4344,11 -4360,12 -4360,12 -4364,7 +4380,7 @@@@@@ L: iommu@lists.linux-foundation.or T: git git://git.infradead.org/users/hch/dma-mapping.git W: http://git.infradead.org/users/hch/dma-mapping.git S: Supported ---- F: lib/dma-debug.c ---- F: lib/dma-direct.c - -- F: lib/dma-noncoherent.c ---- F: lib/dma-virt.c ---- F: drivers/base/dma-mapping.c ---- F: drivers/base/dma-coherent.c ++++ F: kernel/dma/ F: include/asm-generic/dma-mapping.h F: include/linux/dma-direct.h F: include/linux/dma-mapping.h @@@@@@ -11800,17 -11670,10 -11800,17 -11800,17 -11814,17 +11830,17 @@@@@@ F: Documentation/devicetree/bindings/me F: Documentation/media/v4l-drivers/qcom_camss.rst F: drivers/media/platform/qcom/camss-8x16/ + QUALCOMM CPUFREQ DRIVER MSM8996/APQ8096 + M: Ilia Lin + L: linux-pm@vger.kernel.org + S: Maintained + F: Documentation/devicetree/bindings/opp/kryo-cpufreq.txt + F: drivers/cpufreq/qcom-cpufreq-kryo.c + QUALCOMM EMAC GIGABIT ETHERNET DRIVER ---- M: Timur Tabi ++++ M: Timur Tabi L: netdev@vger.kernel.org ---- S: Supported ++++ S: Maintained F: drivers/net/ethernet/qualcomm/emac/ QUALCOMM HEXAGON ARCHITECTURE diff --cc drivers/mfd/Makefile index e9fd20dba18d,4d0dfd065706,e9fd20dba18d,e9fd20dba18d,d13e859d7c1e..2852a6042ecf --- a/drivers/mfd/Makefile +++ b/drivers/mfd/Makefile @@@@@@ -13,9 -13,10 -13,9 -13,9 -13,7 +13,7 @@@@@@ obj-$(CONFIG_MFD_ASIC3) += asic3.o tmi obj-$(CONFIG_MFD_BCM590XX) += bcm590xx.o obj-$(CONFIG_MFD_BD9571MWV) += bd9571mwv.o cros_ec_core-objs := cros_ec.o - cros_ec_core-$(CONFIG_ACPI) += cros_ec_acpi_gpe.o obj-$(CONFIG_MFD_CROS_EC) += cros_ec_core.o ---- obj-$(CONFIG_MFD_CROS_EC_I2C) += cros_ec_i2c.o ---- obj-$(CONFIG_MFD_CROS_EC_SPI) += cros_ec_spi.o obj-$(CONFIG_MFD_CROS_EC_CHARDEV) += cros_ec_dev.o obj-$(CONFIG_MFD_EXYNOS_LPASS) += exynos-lpass.o diff --cc drivers/mfd/cros_ec_dev.c index 1dd00337d903,eafd06f62a3a,1e2049f7229e,306e1fd109bd,306e1fd109bd..5502bccd69ff --- a/drivers/mfd/cros_ec_dev.c +++ b/drivers/mfd/cros_ec_dev.c @@@@@@ -377,14 -383,6 -377,14 -377,10 -377,10 +377,18 @@@@@@ error kfree(msg); } ++ ++static const struct mfd_cell cros_ec_cec_cells[] = { ++ ++ { .name = "cros-ec-cec" } ++ ++}; ++ ++ + static const struct mfd_cell cros_ec_rtc_cells[] = { + { .name = "cros-ec-rtc" } + }; + ++++static const struct mfd_cell cros_usbpd_charger_cells[] = { ++++ { .name = "cros-usbpd-charger" } ++++}; ++++ static int ec_device_probe(struct platform_device *pdev) { int retval = -ENOMEM; @@@@@@ -423,30 -422,6 -423,30 -419,18 -419,18 +427,42 @@@@@@ if (cros_ec_check_features(ec, EC_FEATURE_MOTION_SENSE)) cros_ec_sensors_register(ec); ++ ++ /* Check whether this EC instance has CEC host command support */ ++ ++ if (cros_ec_check_features(ec, EC_FEATURE_CEC)) { ++ ++ retval = mfd_add_devices(ec->dev, PLATFORM_DEVID_AUTO, ++ ++ cros_ec_cec_cells, ++ ++ ARRAY_SIZE(cros_ec_cec_cells), ++ ++ NULL, 0, NULL); ++ ++ if (retval) ++ ++ dev_err(ec->dev, ++ ++ "failed to add cros-ec-cec device: %d\n", ++ ++ retval); ++ ++ } ++ ++ + /* Check whether this EC instance has RTC host command support */ + if (cros_ec_check_features(ec, EC_FEATURE_RTC)) { + retval = mfd_add_devices(ec->dev, PLATFORM_DEVID_AUTO, + cros_ec_rtc_cells, + ARRAY_SIZE(cros_ec_rtc_cells), + NULL, 0, NULL); + if (retval) + dev_err(ec->dev, + "failed to add cros-ec-rtc device: %d\n", + retval); + } + ++++ /* Check whether this EC instance has the PD charge manager */ ++++ if (cros_ec_check_features(ec, EC_FEATURE_USB_PD)) { ++++ retval = mfd_add_devices(ec->dev, PLATFORM_DEVID_AUTO, ++++ cros_usbpd_charger_cells, ++++ ARRAY_SIZE(cros_usbpd_charger_cells), ++++ NULL, 0, NULL); ++++ if (retval) ++++ dev_err(ec->dev, ++++ "failed to add cros-usbpd-charger device: %d\n", ++++ retval); ++++ } ++++ /* Take control of the lightbar from the EC. */ lb_manual_suspend_ctrl(ec, 1);