summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThorsten Leemhuis <fedora@leemhuis.info>2017-10-16 19:47:10 +0200
committerThorsten Leemhuis <fedora@leemhuis.info>2017-10-16 19:47:10 +0200
commit09b78e3ed7a04019a9d0de9eff38904f6ebb5884 (patch)
tree5502d4e1d890ce6694536a6f5d0ad828e02efcad
parent0375febcd1591c9c85537833b6108a3cf5b5501f (diff)
parent9c446fd4e87fdca1e4579c4a80550d56d91aef1c (diff)
downloadkernel-09b78e3ed7a04019a9d0de9eff38904f6ebb5884.tar.gz
kernel-09b78e3ed7a04019a9d0de9eff38904f6ebb5884.tar.xz
kernel-09b78e3ed7a04019a9d0de9eff38904f6ebb5884.zip
Merge remote-tracking branch 'origin/master' into rawhide-user-thl-vanilla-fedora
-rw-r--r--arm-exynos-fix-usb3.patch411
-rw-r--r--baseconfig/CONFIG_BT_LEGACY_IOCTL1
-rw-r--r--baseconfig/CONFIG_PHY_MVEBU_CP110_COMPHY2
-rw-r--r--baseconfig/arm/CONFIG_SUNXI_SRAM (renamed from baseconfig/arm/armv7/CONFIG_SUNXI_SRAM)0
-rw-r--r--baseconfig/arm/arm64/CONFIG_PHY_MVEBU_CP110_COMPHY1
-rw-r--r--kernel-aarch64-debug.config2
-rw-r--r--kernel-aarch64.config2
-rw-r--r--kernel-armv7hl-debug.config3
-rw-r--r--kernel-armv7hl-lpae-debug.config3
-rw-r--r--kernel-armv7hl-lpae.config3
-rw-r--r--kernel-armv7hl.config3
-rw-r--r--kernel-i686-PAE.config3
-rw-r--r--kernel-i686-PAEdebug.config3
-rw-r--r--kernel-i686-debug.config3
-rw-r--r--kernel-i686.config3
-rw-r--r--kernel-ppc64-debug.config3
-rw-r--r--kernel-ppc64.config3
-rw-r--r--kernel-ppc64le-debug.config3
-rw-r--r--kernel-ppc64le.config3
-rw-r--r--kernel-s390x-debug.config3
-rw-r--r--kernel-s390x.config3
-rw-r--r--kernel-x86_64-debug.config3
-rw-r--r--kernel-x86_64.config3
-rw-r--r--kernel.spec5
24 files changed, 436 insertions, 36 deletions
diff --git a/arm-exynos-fix-usb3.patch b/arm-exynos-fix-usb3.patch
new file mode 100644
index 000000000..cb5828acf
--- /dev/null
+++ b/arm-exynos-fix-usb3.patch
@@ -0,0 +1,411 @@
+From patchwork Mon Oct 9 12:00:50 2017
+Content-Type: text/plain; charset="utf-8"
+MIME-Version: 1.0
+Content-Transfer-Encoding: 7bit
+Subject: [PATCHv4,1/2] drivers: phy: add calibrate method
+From: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
+X-Patchwork-Id: 9992829
+Message-Id: <1507550451-21324-2-git-send-email-andrzej.p@samsung.com>
+To: linux-samsung-soc@vger.kernel.org, linux-usb@vger.kernel.org,
+ linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org
+Cc: Mark Rutland <mark.rutland@arm.com>, Felipe Balbi <balbi@kernel.org>,
+ Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>,
+ Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
+ Russell King <linux@armlinux.org.uk>,
+ Krzysztof Kozlowski <krzk@kernel.org>,
+ Kishon Vijay Abraham I <kishon@ti.com>,
+ Rob Herring <robh+dt@kernel.org>, Kukjin Kim <kgene@kernel.org>,
+ Andrzej Pietrasiewicz <andrzej.p@samsung.com>,
+ Marek Szyprowski <m.szyprowski@samsung.com>
+Date: Mon, 09 Oct 2017 14:00:50 +0200
+
+Some quirky UDCs (like dwc3 on Exynos) need to have their phys calibrated e.g.
+for using super speed. This patch adds a new phy_calibrate() method.
+When the calibration should be used is dependent on actual chip.
+
+In case of dwc3 on Exynos the calibration must happen after usb_add_hcd()
+(while in host mode), because certain phy parameters like Tx LOS levels
+and boost levels need to be calibrated further post initialization of xHCI
+controller, to get SuperSpeed operations working. But an hcd must be
+prepared first in order to pass it to usb_add_hcd(), so, in particular, dwc3
+registers must be available first, and in order for the latter to happen
+the phys must be initialized. This poses a chicken and egg problem if
+the calibration were to be performed in phy_init(). To break the circular
+dependency a separate method is added which can be called at a desired
+moment after phy intialization.
+
+Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
+---
+ drivers/phy/phy-core.c | 15 +++++++++++++++
+ include/linux/phy/phy.h | 10 ++++++++++
+ 2 files changed, 25 insertions(+)
+
+diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c
+index a268f4d..b4964b0 100644
+--- a/drivers/phy/phy-core.c
++++ b/drivers/phy/phy-core.c
+@@ -372,6 +372,21 @@ int phy_reset(struct phy *phy)
+ }
+ EXPORT_SYMBOL_GPL(phy_reset);
+
++int phy_calibrate(struct phy *phy)
++{
++ int ret;
++
++ if (!phy || !phy->ops->calibrate)
++ return 0;
++
++ mutex_lock(&phy->mutex);
++ ret = phy->ops->calibrate(phy);
++ mutex_unlock(&phy->mutex);
++
++ return ret;
++}
++EXPORT_SYMBOL_GPL(phy_calibrate);
++
+ /**
+ * _of_phy_get() - lookup and obtain a reference to a phy by phandle
+ * @np: device_node for which to get the phy
+diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h
+index e694d40..87580c8 100644
+--- a/include/linux/phy/phy.h
++++ b/include/linux/phy/phy.h
+@@ -39,6 +39,7 @@ enum phy_mode {
+ * @power_off: powering off the phy
+ * @set_mode: set the mode of the phy
+ * @reset: resetting the phy
++ * @calibrate: calibrate the phy
+ * @owner: the module owner containing the ops
+ */
+ struct phy_ops {
+@@ -48,6 +49,7 @@ struct phy_ops {
+ int (*power_off)(struct phy *phy);
+ int (*set_mode)(struct phy *phy, enum phy_mode mode);
+ int (*reset)(struct phy *phy);
++ int (*calibrate)(struct phy *phy);
+ struct module *owner;
+ };
+
+@@ -141,6 +143,7 @@ static inline void *phy_get_drvdata(struct phy *phy)
+ int phy_power_off(struct phy *phy);
+ int phy_set_mode(struct phy *phy, enum phy_mode mode);
+ int phy_reset(struct phy *phy);
++int phy_calibrate(struct phy *phy);
+ static inline int phy_get_bus_width(struct phy *phy)
+ {
+ return phy->attrs.bus_width;
+@@ -262,6 +265,13 @@ static inline int phy_reset(struct phy *phy)
+ return -ENOSYS;
+ }
+
++static inline int phy_calibrate(struct phy *phy)
++{
++ if (!phy)
++ return 0;
++ return -ENOSYS;
++}
++
+ static inline int phy_get_bus_width(struct phy *phy)
+ {
+ return -ENOSYS;
+From patchwork Mon Oct 9 12:00:51 2017
+Content-Type: text/plain; charset="utf-8"
+MIME-Version: 1.0
+Content-Transfer-Encoding: 7bit
+Subject: [PATCHv4,
+ 2/2] phy: exynos5-usbdrd: Calibrate LOS levels for exynos5420/5800
+From: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
+X-Patchwork-Id: 9992809
+Message-Id: <1507550451-21324-3-git-send-email-andrzej.p@samsung.com>
+To: linux-samsung-soc@vger.kernel.org, linux-usb@vger.kernel.org,
+ linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org
+Cc: Mark Rutland <mark.rutland@arm.com>, Felipe Balbi <balbi@kernel.org>,
+ Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>,
+ Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
+ Russell King <linux@armlinux.org.uk>,
+ Krzysztof Kozlowski <krzk@kernel.org>,
+ Kishon Vijay Abraham I <kishon@ti.com>,
+ Rob Herring <robh+dt@kernel.org>, Kukjin Kim <kgene@kernel.org>,
+ Andrzej Pietrasiewicz <andrzej.p@samsung.com>,
+ Marek Szyprowski <m.szyprowski@samsung.com>
+Date: Mon, 09 Oct 2017 14:00:51 +0200
+
+From: Vivek Gautam <gautam.vivek@samsung.com>
+
+Adding phy calibration sequence for USB 3.0 DRD PHY present on
+Exynos5420/5800 systems.
+This calibration facilitates setting certain PHY parameters viz.
+the Loss-of-Signal (LOS) Detector Threshold Level, as well as
+Tx-Vboost-Level for Super-Speed operations.
+Additionally we also set proper time to wait for RxDetect measurement,
+for desired PHY reference clock, so as to solve issue with enumeration
+of few USB 3.0 devices, like Samsung SUM-TSB16S 3.0 USB drive
+on the controller.
+
+We are using CR_port for this purpose to send required data
+to override the LOS values.
+
+On testing with USB 3.0 devices on USB 3.0 port present on
+SMDK5420, and peach-pit boards should see following message:
+usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd
+
+and without this patch, should see below shown message:
+usb 1-1: new high-speed USB device number 2 using xhci-hcd
+
+[Also removed unnecessary extra lines in the register macro definitions]
+
+Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
+[adapted to use phy_calibrate as entry point]
+Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
+---
+ drivers/phy/samsung/phy-exynos5-usbdrd.c | 183 +++++++++++++++++++++++++++++++
+ drivers/usb/dwc3/core.c | 7 +-
+ 2 files changed, 188 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/phy/samsung/phy-exynos5-usbdrd.c b/drivers/phy/samsung/phy-exynos5-usbdrd.c
+index 22c68f5..9e83c15 100644
+--- a/drivers/phy/samsung/phy-exynos5-usbdrd.c
++++ b/drivers/phy/samsung/phy-exynos5-usbdrd.c
+@@ -90,7 +90,17 @@
+ #define PHYCLKRST_COMMONONN BIT(0)
+
+ #define EXYNOS5_DRD_PHYREG0 0x14
++#define PHYREG0_SSC_REF_CLK_SEL BIT(21)
++#define PHYREG0_SSC_RANGE BIT(20)
++#define PHYREG0_CR_WRITE BIT(19)
++#define PHYREG0_CR_READ BIT(18)
++#define PHYREG0_CR_DATA_IN(_x) ((_x) << 2)
++#define PHYREG0_CR_CAP_DATA BIT(1)
++#define PHYREG0_CR_CAP_ADDR BIT(0)
++
+ #define EXYNOS5_DRD_PHYREG1 0x18
++#define PHYREG1_CR_DATA_OUT(_x) ((_x) << 1)
++#define PHYREG1_CR_ACK BIT(0)
+
+ #define EXYNOS5_DRD_PHYPARAM0 0x1c
+
+@@ -119,6 +129,25 @@
+ #define EXYNOS5_DRD_PHYRESUME 0x34
+ #define EXYNOS5_DRD_LINKPORT 0x44
+
++/* USB 3.0 DRD PHY SS Function Control Reg; accessed by CR_PORT */
++#define EXYNOS5_DRD_PHYSS_LOSLEVEL_OVRD_IN (0x15)
++#define LOSLEVEL_OVRD_IN_LOS_BIAS_5420 (0x5 << 13)
++#define LOSLEVEL_OVRD_IN_LOS_BIAS_DEFAULT (0x0 << 13)
++#define LOSLEVEL_OVRD_IN_EN (0x1 << 10)
++#define LOSLEVEL_OVRD_IN_LOS_LEVEL_DEFAULT (0x9 << 0)
++
++#define EXYNOS5_DRD_PHYSS_TX_VBOOSTLEVEL_OVRD_IN (0x12)
++#define TX_VBOOSTLEVEL_OVRD_IN_VBOOST_5420 (0x5 << 13)
++#define TX_VBOOSTLEVEL_OVRD_IN_VBOOST_DEFAULT (0x4 << 13)
++
++#define EXYNOS5_DRD_PHYSS_LANE0_TX_DEBUG (0x1010)
++#define LANE0_TX_DEBUG_RXDET_MEAS_TIME_19M2_20M (0x4 << 4)
++#define LANE0_TX_DEBUG_RXDET_MEAS_TIME_24M (0x8 << 4)
++#define LANE0_TX_DEBUG_RXDET_MEAS_TIME_25M_26M (0x8 << 4)
++#define LANE0_TX_DEBUG_RXDET_MEAS_TIME_48M_50M_52M (0x20 << 4)
++#define LANE0_TX_DEBUG_RXDET_MEAS_TIME_62M5 (0x20 << 4)
++#define LANE0_TX_DEBUG_RXDET_MEAS_TIME_96M_100M (0x40 << 4)
++
+ #define KHZ 1000
+ #define MHZ (KHZ * KHZ)
+
+@@ -527,6 +556,151 @@ static int exynos5_usbdrd_phy_power_off(struct phy *phy)
+ return 0;
+ }
+
++static int crport_handshake(struct exynos5_usbdrd_phy *phy_drd,
++ u32 val, u32 cmd)
++{
++ u32 usec = 100;
++ unsigned int result;
++
++ writel(val | cmd, phy_drd->reg_phy + EXYNOS5_DRD_PHYREG0);
++
++ do {
++ result = readl(phy_drd->reg_phy + EXYNOS5_DRD_PHYREG1);
++ if (result & PHYREG1_CR_ACK)
++ break;
++
++ udelay(1);
++ } while (usec-- > 0);
++
++ if (!usec) {
++ dev_err(phy_drd->dev,
++ "CRPORT handshake timeout1 (0x%08x)\n", val);
++ return -ETIME;
++ }
++
++ usec = 100;
++
++ writel(val, phy_drd->reg_phy + EXYNOS5_DRD_PHYREG0);
++
++ do {
++ result = readl(phy_drd->reg_phy + EXYNOS5_DRD_PHYREG1);
++ if (!(result & PHYREG1_CR_ACK))
++ break;
++
++ udelay(1);
++ } while (usec-- > 0);
++
++ if (!usec) {
++ dev_err(phy_drd->dev,
++ "CRPORT handshake timeout2 (0x%08x)\n", val);
++ return -ETIME;
++ }
++
++ return 0;
++}
++
++static int crport_ctrl_write(struct exynos5_usbdrd_phy *phy_drd,
++ u32 addr, u32 data)
++{
++ int ret;
++
++ /* Write Address */
++ writel(PHYREG0_CR_DATA_IN(addr),
++ phy_drd->reg_phy + EXYNOS5_DRD_PHYREG0);
++ ret = crport_handshake(phy_drd, PHYREG0_CR_DATA_IN(addr),
++ PHYREG0_CR_CAP_ADDR);
++ if (ret)
++ return ret;
++
++ /* Write Data */
++ writel(PHYREG0_CR_DATA_IN(data),
++ phy_drd->reg_phy + EXYNOS5_DRD_PHYREG0);
++ ret = crport_handshake(phy_drd, PHYREG0_CR_DATA_IN(data),
++ PHYREG0_CR_CAP_DATA);
++ if (ret)
++ return ret;
++
++ ret = crport_handshake(phy_drd, PHYREG0_CR_DATA_IN(data),
++ PHYREG0_CR_WRITE);
++
++ return ret;
++}
++
++/*
++ * Calibrate few PHY parameters using CR_PORT register to meet
++ * SuperSpeed requirements on Exynos5420 and Exynos5800 systems,
++ * which have 28nm USB 3.0 DRD PHY.
++ */
++static int exynos5420_usbdrd_phy_calibrate(struct exynos5_usbdrd_phy *phy_drd)
++{
++ unsigned int temp;
++ int ret = 0;
++
++ /*
++ * Change los_bias to (0x5) for 28nm PHY from a
++ * default value (0x0); los_level is set as default
++ * (0x9) as also reflected in los_level[30:26] bits
++ * of PHYPARAM0 register.
++ */
++ temp = LOSLEVEL_OVRD_IN_LOS_BIAS_5420 |
++ LOSLEVEL_OVRD_IN_EN |
++ LOSLEVEL_OVRD_IN_LOS_LEVEL_DEFAULT;
++ ret = crport_ctrl_write(phy_drd,
++ EXYNOS5_DRD_PHYSS_LOSLEVEL_OVRD_IN,
++ temp);
++ if (ret) {
++ dev_err(phy_drd->dev,
++ "Failed setting Loss-of-Signal level for SuperSpeed\n");
++ return ret;
++ }
++
++ /*
++ * Set tx_vboost_lvl to (0x5) for 28nm PHY Tuning,
++ * to raise Tx signal level from its default value of (0x4)
++ */
++ temp = TX_VBOOSTLEVEL_OVRD_IN_VBOOST_5420;
++ ret = crport_ctrl_write(phy_drd,
++ EXYNOS5_DRD_PHYSS_TX_VBOOSTLEVEL_OVRD_IN,
++ temp);
++ if (ret) {
++ dev_err(phy_drd->dev,
++ "Failed setting Tx-Vboost-Level for SuperSpeed\n");
++ return ret;
++ }
++
++ /*
++ * Set proper time to wait for RxDetect measurement, for
++ * desired reference clock of PHY, by tuning the CR_PORT
++ * register LANE0.TX_DEBUG which is internal to PHY.
++ * This fixes issue with few USB 3.0 devices, which are
++ * not detected (not even generate interrupts on the bus
++ * on insertion) without this change.
++ * e.g. Samsung SUM-TSB16S 3.0 USB drive.
++ */
++ switch (phy_drd->extrefclk) {
++ case EXYNOS5_FSEL_50MHZ:
++ temp = LANE0_TX_DEBUG_RXDET_MEAS_TIME_48M_50M_52M;
++ break;
++ case EXYNOS5_FSEL_20MHZ:
++ case EXYNOS5_FSEL_19MHZ2:
++ temp = LANE0_TX_DEBUG_RXDET_MEAS_TIME_19M2_20M;
++ break;
++ case EXYNOS5_FSEL_24MHZ:
++ default:
++ temp = LANE0_TX_DEBUG_RXDET_MEAS_TIME_24M;
++ break;
++ }
++
++ ret = crport_ctrl_write(phy_drd,
++ EXYNOS5_DRD_PHYSS_LANE0_TX_DEBUG,
++ temp);
++ if (ret)
++ dev_err(phy_drd->dev,
++ "Failed setting RxDetect measurement time for SuperSpeed\n");
++
++ return ret;
++}
++
+ static struct phy *exynos5_usbdrd_phy_xlate(struct device *dev,
+ struct of_phandle_args *args)
+ {
+@@ -538,11 +712,20 @@ static struct phy *exynos5_usbdrd_phy_xlate(struct device *dev,
+ return phy_drd->phys[args->args[0]].phy;
+ }
+
++static int exynos5_usbdrd_phy_calibrate(struct phy *phy)
++{
++ struct phy_usb_instance *inst = phy_get_drvdata(phy);
++ struct exynos5_usbdrd_phy *phy_drd = to_usbdrd_phy(inst);
++
++ return exynos5420_usbdrd_phy_calibrate(phy_drd);
++}
++
+ static const struct phy_ops exynos5_usbdrd_phy_ops = {
+ .init = exynos5_usbdrd_phy_init,
+ .exit = exynos5_usbdrd_phy_exit,
+ .power_on = exynos5_usbdrd_phy_power_on,
+ .power_off = exynos5_usbdrd_phy_power_off,
++ .calibrate = exynos5_usbdrd_phy_calibrate,
+ .owner = THIS_MODULE,
+ };
+
+diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
+index 03474d3..224e0dd 100644
+--- a/drivers/usb/dwc3/core.c
++++ b/drivers/usb/dwc3/core.c
+@@ -156,9 +156,10 @@ static void __dwc3_set_mode(struct work_struct *work)
+ } else {
+ if (dwc->usb2_phy)
+ otg_set_vbus(dwc->usb2_phy->otg, true);
+- if (dwc->usb2_generic_phy)
++ if (dwc->usb2_generic_phy) {
+ phy_set_mode(dwc->usb2_generic_phy, PHY_MODE_USB_HOST);
+-
++ phy_calibrate(dwc->usb2_generic_phy);
++ }
+ }
+ break;
+ case DWC3_GCTL_PRTCAP_DEVICE:
+@@ -955,6 +956,8 @@ static int dwc3_core_init_mode(struct dwc3 *dwc)
+ dev_err(dev, "failed to initialize host\n");
+ return ret;
+ }
++ if (dwc->usb2_generic_phy)
++ phy_calibrate(dwc->usb2_generic_phy);
+ break;
+ case USB_DR_MODE_OTG:
+ INIT_WORK(&dwc->drd_work, __dwc3_set_mode);
diff --git a/baseconfig/CONFIG_BT_LEGACY_IOCTL b/baseconfig/CONFIG_BT_LEGACY_IOCTL
deleted file mode 100644
index e2349cdee..000000000
--- a/baseconfig/CONFIG_BT_LEGACY_IOCTL
+++ /dev/null
@@ -1 +0,0 @@
-# CONFIG_BT_LEGACY_IOCTL is not set
diff --git a/baseconfig/CONFIG_PHY_MVEBU_CP110_COMPHY b/baseconfig/CONFIG_PHY_MVEBU_CP110_COMPHY
index 1902b0c1f..8c104689f 100644
--- a/baseconfig/CONFIG_PHY_MVEBU_CP110_COMPHY
+++ b/baseconfig/CONFIG_PHY_MVEBU_CP110_COMPHY
@@ -1 +1 @@
-CONFIG_PHY_MVEBU_CP110_COMPHY=m
+# CONFIG_PHY_MVEBU_CP110_COMPHY is not set
diff --git a/baseconfig/arm/armv7/CONFIG_SUNXI_SRAM b/baseconfig/arm/CONFIG_SUNXI_SRAM
index 526bd5868..526bd5868 100644
--- a/baseconfig/arm/armv7/CONFIG_SUNXI_SRAM
+++ b/baseconfig/arm/CONFIG_SUNXI_SRAM
diff --git a/baseconfig/arm/arm64/CONFIG_PHY_MVEBU_CP110_COMPHY b/baseconfig/arm/arm64/CONFIG_PHY_MVEBU_CP110_COMPHY
new file mode 100644
index 000000000..1902b0c1f
--- /dev/null
+++ b/baseconfig/arm/arm64/CONFIG_PHY_MVEBU_CP110_COMPHY
@@ -0,0 +1 @@
+CONFIG_PHY_MVEBU_CP110_COMPHY=m
diff --git a/kernel-aarch64-debug.config b/kernel-aarch64-debug.config
index 2a9a75a85..509338931 100644
--- a/kernel-aarch64-debug.config
+++ b/kernel-aarch64-debug.config
@@ -669,7 +669,6 @@ CONFIG_BT_HCIVHCI=m
CONFIG_BT_HIDP=m
CONFIG_BT_HS=y
CONFIG_BT_LEDS=y
-# CONFIG_BT_LEGACY_IOCTL is not set
CONFIG_BT_LE=y
CONFIG_BT=m
CONFIG_BT_MRVL=m
@@ -5517,6 +5516,7 @@ CONFIG_SUNRPC=m
CONFIG_SUNRPC_XPRT_RDMA=m
CONFIG_SUNXI_CCU=y
CONFIG_SUNXI_RSB=m
+CONFIG_SUNXI_SRAM=y
CONFIG_SUNXI_WATCHDOG=m
# CONFIG_SURFACE_3_BUTTON is not set
CONFIG_SUSPEND=y
diff --git a/kernel-aarch64.config b/kernel-aarch64.config
index 7cc63e99c..224a04444 100644
--- a/kernel-aarch64.config
+++ b/kernel-aarch64.config
@@ -669,7 +669,6 @@ CONFIG_BT_HCIVHCI=m
CONFIG_BT_HIDP=m
CONFIG_BT_HS=y
CONFIG_BT_LEDS=y
-# CONFIG_BT_LEGACY_IOCTL is not set
CONFIG_BT_LE=y
CONFIG_BT=m
CONFIG_BT_MRVL=m
@@ -5494,6 +5493,7 @@ CONFIG_SUNRPC=m
CONFIG_SUNRPC_XPRT_RDMA=m
CONFIG_SUNXI_CCU=y
CONFIG_SUNXI_RSB=m
+CONFIG_SUNXI_SRAM=y
CONFIG_SUNXI_WATCHDOG=m
# CONFIG_SURFACE_3_BUTTON is not set
CONFIG_SUSPEND=y
diff --git a/kernel-armv7hl-debug.config b/kernel-armv7hl-debug.config
index 2539e2423..3b837e2ef 100644
--- a/kernel-armv7hl-debug.config
+++ b/kernel-armv7hl-debug.config
@@ -710,7 +710,6 @@ CONFIG_BT_HCIVHCI=m
CONFIG_BT_HIDP=m
CONFIG_BT_HS=y
CONFIG_BT_LEDS=y
-# CONFIG_BT_LEGACY_IOCTL is not set
CONFIG_BT_LE=y
CONFIG_BT=m
CONFIG_BT_MRVL=m
@@ -4338,7 +4337,7 @@ CONFIG_PHY_MESON8B_USB2=m
# CONFIG_PHY_MESON_GXL_USB2 is not set
CONFIG_PHY_MIPHY28LP=m
# CONFIG_PHY_MIPHY365X is not set
-CONFIG_PHY_MVEBU_CP110_COMPHY=m
+# CONFIG_PHY_MVEBU_CP110_COMPHY is not set
CONFIG_PHY_MVEBU_SATA=y
# CONFIG_PHY_PXA_28NM_HSIC is not set
# CONFIG_PHY_PXA_28NM_USB2 is not set
diff --git a/kernel-armv7hl-lpae-debug.config b/kernel-armv7hl-lpae-debug.config
index feb02ba3b..40a6ab085 100644
--- a/kernel-armv7hl-lpae-debug.config
+++ b/kernel-armv7hl-lpae-debug.config
@@ -686,7 +686,6 @@ CONFIG_BT_HCIVHCI=m
CONFIG_BT_HIDP=m
CONFIG_BT_HS=y
CONFIG_BT_LEDS=y
-# CONFIG_BT_LEGACY_IOCTL is not set
CONFIG_BT_LE=y
CONFIG_BT=m
CONFIG_BT_MRVL=m
@@ -4114,7 +4113,7 @@ CONFIG_PHYLIB=y
CONFIG_PHYLINK=m
CONFIG_PHY_MESON8B_USB2=m
# CONFIG_PHY_MESON_GXL_USB2 is not set
-CONFIG_PHY_MVEBU_CP110_COMPHY=m
+# CONFIG_PHY_MVEBU_CP110_COMPHY is not set
CONFIG_PHY_MVEBU_SATA=y
# CONFIG_PHY_PXA_28NM_HSIC is not set
# CONFIG_PHY_PXA_28NM_USB2 is not set
diff --git a/kernel-armv7hl-lpae.config b/kernel-armv7hl-lpae.config
index 06bb6e6b1..926247542 100644
--- a/kernel-armv7hl-lpae.config
+++ b/kernel-armv7hl-lpae.config
@@ -685,7 +685,6 @@ CONFIG_BT_HCIVHCI=m
CONFIG_BT_HIDP=m
CONFIG_BT_HS=y
CONFIG_BT_LEDS=y
-# CONFIG_BT_LEGACY_IOCTL is not set
CONFIG_BT_LE=y
CONFIG_BT=m
CONFIG_BT_MRVL=m
@@ -4093,7 +4092,7 @@ CONFIG_PHYLIB=y
CONFIG_PHYLINK=m
CONFIG_PHY_MESON8B_USB2=m
# CONFIG_PHY_MESON_GXL_USB2 is not set
-CONFIG_PHY_MVEBU_CP110_COMPHY=m
+# CONFIG_PHY_MVEBU_CP110_COMPHY is not set
CONFIG_PHY_MVEBU_SATA=y
# CONFIG_PHY_PXA_28NM_HSIC is not set
# CONFIG_PHY_PXA_28NM_USB2 is not set
diff --git a/kernel-armv7hl.config b/kernel-armv7hl.config
index 0554bb20e..35dcc48ef 100644
--- a/kernel-armv7hl.config
+++ b/kernel-armv7hl.config
@@ -709,7 +709,6 @@ CONFIG_BT_HCIVHCI=m
CONFIG_BT_HIDP=m
CONFIG_BT_HS=y
CONFIG_BT_LEDS=y
-# CONFIG_BT_LEGACY_IOCTL is not set
CONFIG_BT_LE=y
CONFIG_BT=m
CONFIG_BT_MRVL=m
@@ -4317,7 +4316,7 @@ CONFIG_PHY_MESON8B_USB2=m
# CONFIG_PHY_MESON_GXL_USB2 is not set
CONFIG_PHY_MIPHY28LP=m
# CONFIG_PHY_MIPHY365X is not set
-CONFIG_PHY_MVEBU_CP110_COMPHY=m
+# CONFIG_PHY_MVEBU_CP110_COMPHY is not set
CONFIG_PHY_MVEBU_SATA=y
# CONFIG_PHY_PXA_28NM_HSIC is not set
# CONFIG_PHY_PXA_28NM_USB2 is not set
diff --git a/kernel-i686-PAE.config b/kernel-i686-PAE.config
index ea6108c66..7454cb4dd 100644
--- a/kernel-i686-PAE.config
+++ b/kernel-i686-PAE.config
@@ -578,7 +578,6 @@ CONFIG_BT_HCIVHCI=m
CONFIG_BT_HIDP=m
CONFIG_BT_HS=y
CONFIG_BT_LEDS=y
-# CONFIG_BT_LEGACY_IOCTL is not set
CONFIG_BT_LE=y
CONFIG_BT=m
CONFIG_BT_MRVL=m
@@ -3901,7 +3900,7 @@ CONFIG_PERSISTENT_KEYRINGS=y
# CONFIG_PHY_CPCAP_USB is not set
CONFIG_PHYLIB=y
CONFIG_PHYLINK=m
-CONFIG_PHY_MVEBU_CP110_COMPHY=m
+# CONFIG_PHY_MVEBU_CP110_COMPHY is not set
# CONFIG_PHY_PXA_28NM_HSIC is not set
# CONFIG_PHY_PXA_28NM_USB2 is not set
# CONFIG_PHY_QCOM_USB_HSIC is not set
diff --git a/kernel-i686-PAEdebug.config b/kernel-i686-PAEdebug.config
index c3dd1bfd3..cc64f9559 100644
--- a/kernel-i686-PAEdebug.config
+++ b/kernel-i686-PAEdebug.config
@@ -579,7 +579,6 @@ CONFIG_BT_HCIVHCI=m
CONFIG_BT_HIDP=m
CONFIG_BT_HS=y
CONFIG_BT_LEDS=y
-# CONFIG_BT_LEGACY_IOCTL is not set
CONFIG_BT_LE=y
CONFIG_BT=m
CONFIG_BT_MRVL=m
@@ -3921,7 +3920,7 @@ CONFIG_PERSISTENT_KEYRINGS=y
# CONFIG_PHY_CPCAP_USB is not set
CONFIG_PHYLIB=y
CONFIG_PHYLINK=m
-CONFIG_PHY_MVEBU_CP110_COMPHY=m
+# CONFIG_PHY_MVEBU_CP110_COMPHY is not set
# CONFIG_PHY_PXA_28NM_HSIC is not set
# CONFIG_PHY_PXA_28NM_USB2 is not set
# CONFIG_PHY_QCOM_USB_HSIC is not set
diff --git a/kernel-i686-debug.config b/kernel-i686-debug.config
index 6df9e7c00..6eb455f49 100644
--- a/kernel-i686-debug.config
+++ b/kernel-i686-debug.config
@@ -579,7 +579,6 @@ CONFIG_BT_HCIVHCI=m
CONFIG_BT_HIDP=m
CONFIG_BT_HS=y
CONFIG_BT_LEDS=y
-# CONFIG_BT_LEGACY_IOCTL is not set
CONFIG_BT_LE=y
CONFIG_BT=m
CONFIG_BT_MRVL=m
@@ -3921,7 +3920,7 @@ CONFIG_PERSISTENT_KEYRINGS=y
# CONFIG_PHY_CPCAP_USB is not set
CONFIG_PHYLIB=y
CONFIG_PHYLINK=m
-CONFIG_PHY_MVEBU_CP110_COMPHY=m
+# CONFIG_PHY_MVEBU_CP110_COMPHY is not set
# CONFIG_PHY_PXA_28NM_HSIC is not set
# CONFIG_PHY_PXA_28NM_USB2 is not set
# CONFIG_PHY_QCOM_USB_HSIC is not set
diff --git a/kernel-i686.config b/kernel-i686.config
index 0ac39cc94..ecfc1576f 100644
--- a/kernel-i686.config
+++ b/kernel-i686.config
@@ -578,7 +578,6 @@ CONFIG_BT_HCIVHCI=m
CONFIG_BT_HIDP=m
CONFIG_BT_HS=y
CONFIG_BT_LEDS=y
-# CONFIG_BT_LEGACY_IOCTL is not set
CONFIG_BT_LE=y
CONFIG_BT=m
CONFIG_BT_MRVL=m
@@ -3901,7 +3900,7 @@ CONFIG_PERSISTENT_KEYRINGS=y
# CONFIG_PHY_CPCAP_USB is not set
CONFIG_PHYLIB=y
CONFIG_PHYLINK=m
-CONFIG_PHY_MVEBU_CP110_COMPHY=m
+# CONFIG_PHY_MVEBU_CP110_COMPHY is not set
# CONFIG_PHY_PXA_28NM_HSIC is not set
# CONFIG_PHY_PXA_28NM_USB2 is not set
# CONFIG_PHY_QCOM_USB_HSIC is not set
diff --git a/kernel-ppc64-debug.config b/kernel-ppc64-debug.config
index f449437b9..a076f483f 100644
--- a/kernel-ppc64-debug.config
+++ b/kernel-ppc64-debug.config
@@ -564,7 +564,6 @@ CONFIG_BT_HCIVHCI=m
CONFIG_BT_HIDP=m
CONFIG_BT_HS=y
CONFIG_BT_LEDS=y
-# CONFIG_BT_LEGACY_IOCTL is not set
CONFIG_BT_LE=y
CONFIG_BT=m
CONFIG_BT_MRVL=m
@@ -3711,7 +3710,7 @@ CONFIG_PERSISTENT_KEYRINGS=y
# CONFIG_PHY_CPCAP_USB is not set
CONFIG_PHYLIB=y
CONFIG_PHYLINK=m
-CONFIG_PHY_MVEBU_CP110_COMPHY=m
+# CONFIG_PHY_MVEBU_CP110_COMPHY is not set
# CONFIG_PHY_PXA_28NM_HSIC is not set
# CONFIG_PHY_PXA_28NM_USB2 is not set
# CONFIG_PHY_QCOM_USB_HSIC is not set
diff --git a/kernel-ppc64.config b/kernel-ppc64.config
index 5e43c5a96..08f5584fd 100644
--- a/kernel-ppc64.config
+++ b/kernel-ppc64.config
@@ -563,7 +563,6 @@ CONFIG_BT_HCIVHCI=m
CONFIG_BT_HIDP=m
CONFIG_BT_HS=y
CONFIG_BT_LEDS=y
-# CONFIG_BT_LEGACY_IOCTL is not set
CONFIG_BT_LE=y
CONFIG_BT=m
CONFIG_BT_MRVL=m
@@ -3689,7 +3688,7 @@ CONFIG_PERSISTENT_KEYRINGS=y
# CONFIG_PHY_CPCAP_USB is not set
CONFIG_PHYLIB=y
CONFIG_PHYLINK=m
-CONFIG_PHY_MVEBU_CP110_COMPHY=m
+# CONFIG_PHY_MVEBU_CP110_COMPHY is not set
# CONFIG_PHY_PXA_28NM_HSIC is not set
# CONFIG_PHY_PXA_28NM_USB2 is not set
# CONFIG_PHY_QCOM_USB_HSIC is not set
diff --git a/kernel-ppc64le-debug.config b/kernel-ppc64le-debug.config
index 554fd5f1c..1998317b5 100644
--- a/kernel-ppc64le-debug.config
+++ b/kernel-ppc64le-debug.config
@@ -520,7 +520,6 @@ CONFIG_BT_HCIVHCI=m
CONFIG_BT_HIDP=m
CONFIG_BT_HS=y
CONFIG_BT_LEDS=y
-# CONFIG_BT_LEGACY_IOCTL is not set
CONFIG_BT_LE=y
CONFIG_BT=m
CONFIG_BT_MRVL=m
@@ -3653,7 +3652,7 @@ CONFIG_PERSISTENT_KEYRINGS=y
# CONFIG_PHY_CPCAP_USB is not set
CONFIG_PHYLIB=y
CONFIG_PHYLINK=m
-CONFIG_PHY_MVEBU_CP110_COMPHY=m
+# CONFIG_PHY_MVEBU_CP110_COMPHY is not set
# CONFIG_PHY_PXA_28NM_HSIC is not set
# CONFIG_PHY_PXA_28NM_USB2 is not set
# CONFIG_PHY_QCOM_USB_HSIC is not set
diff --git a/kernel-ppc64le.config b/kernel-ppc64le.config
index 1487e5f3b..a8e43f019 100644
--- a/kernel-ppc64le.config
+++ b/kernel-ppc64le.config
@@ -519,7 +519,6 @@ CONFIG_BT_HCIVHCI=m
CONFIG_BT_HIDP=m
CONFIG_BT_HS=y
CONFIG_BT_LEDS=y
-# CONFIG_BT_LEGACY_IOCTL is not set
CONFIG_BT_LE=y
CONFIG_BT=m
CONFIG_BT_MRVL=m
@@ -3631,7 +3630,7 @@ CONFIG_PERSISTENT_KEYRINGS=y
# CONFIG_PHY_CPCAP_USB is not set
CONFIG_PHYLIB=y
CONFIG_PHYLINK=m
-CONFIG_PHY_MVEBU_CP110_COMPHY=m
+# CONFIG_PHY_MVEBU_CP110_COMPHY is not set
# CONFIG_PHY_PXA_28NM_HSIC is not set
# CONFIG_PHY_PXA_28NM_USB2 is not set
# CONFIG_PHY_QCOM_USB_HSIC is not set
diff --git a/kernel-s390x-debug.config b/kernel-s390x-debug.config
index 5cbe42ad1..6ed231359 100644
--- a/kernel-s390x-debug.config
+++ b/kernel-s390x-debug.config
@@ -521,7 +521,6 @@ CONFIG_BT_HIDP=m
CONFIG_BT_HS=y
# CONFIG_BT is not set
CONFIG_BT_LEDS=y
-# CONFIG_BT_LEGACY_IOCTL is not set
CONFIG_BT_LE=y
CONFIG_BT_MRVL=m
CONFIG_BT_MRVL_SDIO=m
@@ -3586,7 +3585,7 @@ CONFIG_PFAULT=y
# CONFIG_PHY_CPCAP_USB is not set
CONFIG_PHYLIB=m
CONFIG_PHYLINK=m
-CONFIG_PHY_MVEBU_CP110_COMPHY=m
+# CONFIG_PHY_MVEBU_CP110_COMPHY is not set
# CONFIG_PHY_PXA_28NM_HSIC is not set
# CONFIG_PHY_PXA_28NM_USB2 is not set
# CONFIG_PHY_QCOM_USB_HSIC is not set
diff --git a/kernel-s390x.config b/kernel-s390x.config
index c6c32dc36..734d86b26 100644
--- a/kernel-s390x.config
+++ b/kernel-s390x.config
@@ -520,7 +520,6 @@ CONFIG_BT_HIDP=m
CONFIG_BT_HS=y
# CONFIG_BT is not set
CONFIG_BT_LEDS=y
-# CONFIG_BT_LEGACY_IOCTL is not set
CONFIG_BT_LE=y
CONFIG_BT_MRVL=m
CONFIG_BT_MRVL_SDIO=m
@@ -3564,7 +3563,7 @@ CONFIG_PFAULT=y
# CONFIG_PHY_CPCAP_USB is not set
CONFIG_PHYLIB=m
CONFIG_PHYLINK=m
-CONFIG_PHY_MVEBU_CP110_COMPHY=m
+# CONFIG_PHY_MVEBU_CP110_COMPHY is not set
# CONFIG_PHY_PXA_28NM_HSIC is not set
# CONFIG_PHY_PXA_28NM_USB2 is not set
# CONFIG_PHY_QCOM_USB_HSIC is not set
diff --git a/kernel-x86_64-debug.config b/kernel-x86_64-debug.config
index 16540ab31..be912f757 100644
--- a/kernel-x86_64-debug.config
+++ b/kernel-x86_64-debug.config
@@ -591,7 +591,6 @@ CONFIG_BT_HCIVHCI=m
CONFIG_BT_HIDP=m
CONFIG_BT_HS=y
CONFIG_BT_LEDS=y
-# CONFIG_BT_LEGACY_IOCTL is not set
CONFIG_BT_LE=y
CONFIG_BT=m
CONFIG_BT_MRVL=m
@@ -3965,7 +3964,7 @@ CONFIG_PERSISTENT_KEYRINGS=y
# CONFIG_PHY_CPCAP_USB is not set
CONFIG_PHYLIB=y
CONFIG_PHYLINK=m
-CONFIG_PHY_MVEBU_CP110_COMPHY=m
+# CONFIG_PHY_MVEBU_CP110_COMPHY is not set
# CONFIG_PHY_PXA_28NM_HSIC is not set
# CONFIG_PHY_PXA_28NM_USB2 is not set
# CONFIG_PHY_QCOM_USB_HSIC is not set
diff --git a/kernel-x86_64.config b/kernel-x86_64.config
index 819e0248d..32262b2a0 100644
--- a/kernel-x86_64.config
+++ b/kernel-x86_64.config
@@ -590,7 +590,6 @@ CONFIG_BT_HCIVHCI=m
CONFIG_BT_HIDP=m
CONFIG_BT_HS=y
CONFIG_BT_LEDS=y
-# CONFIG_BT_LEGACY_IOCTL is not set
CONFIG_BT_LE=y
CONFIG_BT=m
CONFIG_BT_MRVL=m
@@ -3945,7 +3944,7 @@ CONFIG_PERSISTENT_KEYRINGS=y
# CONFIG_PHY_CPCAP_USB is not set
CONFIG_PHYLIB=y
CONFIG_PHYLINK=m
-CONFIG_PHY_MVEBU_CP110_COMPHY=m
+# CONFIG_PHY_MVEBU_CP110_COMPHY is not set
# CONFIG_PHY_PXA_28NM_HSIC is not set
# CONFIG_PHY_PXA_28NM_USB2 is not set
# CONFIG_PHY_QCOM_USB_HSIC is not set
diff --git a/kernel.spec b/kernel.spec
index 0cb80826a..911fe4977 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -646,6 +646,8 @@ Patch331: PCI-aspm-deal-with-missing-root-ports-in-link-state-handling.patch
# https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git/log/?h=synquacer-netsec
Patch332: arm64-socionext-96b-enablement.patch
+Patch335: arm-exynos-fix-usb3.patch
+
# 400 - IBM (ppc/s390x) patches
# 500 - Temp fixes/CVEs etc
@@ -2232,6 +2234,9 @@ fi
#
#
%changelog
+* Sun Oct 15 2017 Peter Robinson <pbrobinson@fedoraproject.org>
+- Fix USB-3 Superspeed negotiation on exynos5 hardware
+
* Fri Oct 13 2017 Justin M. Forbes <jforbes@fedoraproject.org> - 4.14.0-0.rc4.git4.1
- Linux v4.14-rc4-143-g997301a860fc