From: Greg Kroah-Hartman Date: Thu, 12 Sep 2013 17:11:01 +0000 (-0700) Subject: 3.10-stable patches X-Git-Tag: v3.0.96~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b8bebfb9041094c7ae86e788a9187241f49e675c;p=thirdparty%2Fkernel%2Fstable-queue.git 3.10-stable patches added patches: arm-at91-dt-sam9260-add-i2c-gpio-pinctrl.patch drivers-rtc-rtc-max77686.c-fix-wrong-register.patch mwifiex-do-not-create-ap-and-p2p-interfaces-upon-driver-loading.patch --- diff --git a/queue-3.10/arm-at91-dt-sam9260-add-i2c-gpio-pinctrl.patch b/queue-3.10/arm-at91-dt-sam9260-add-i2c-gpio-pinctrl.patch new file mode 100644 index 00000000000..ee3490f0831 --- /dev/null +++ b/queue-3.10/arm-at91-dt-sam9260-add-i2c-gpio-pinctrl.patch @@ -0,0 +1,44 @@ +From f89ae61bd74ae195c464bdd97a134e30908884d5 Mon Sep 17 00:00:00 2001 +From: Jean-Christophe PLAGNIOL-VILLARD +Date: Sun, 26 May 2013 16:55:59 +0800 +Subject: ARM: at91: dt: sam9260: add i2c gpio pinctrl + +From: Jean-Christophe PLAGNIOL-VILLARD + +commit f89ae61bd74ae195c464bdd97a134e30908884d5 upstream. + +Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD +Signed-off-by: Nicolas Ferre +Cc: Boris BREZILLON +Signed-off-by: Greg Kroah-Hartman + +--- + arch/arm/boot/dts/at91sam9260.dtsi | 10 ++++++++++ + 1 file changed, 10 insertions(+) + +--- a/arch/arm/boot/dts/at91sam9260.dtsi ++++ b/arch/arm/boot/dts/at91sam9260.dtsi +@@ -340,6 +340,14 @@ + }; + }; + ++ i2c_gpio0 { ++ pinctrl_i2c_gpio0: i2c_gpio0-0 { ++ atmel,pins = ++ <0 23 0x0 0x3 /* PA23 gpio I2C_SDA pin */ ++ 0 24 0x0 0x3>; /* PA24 gpio I2C_SCL pin */ ++ }; ++ }; ++ + pioA: gpio@fffff400 { + compatible = "atmel,at91rm9200-gpio"; + reg = <0xfffff400 0x200>; +@@ -592,6 +600,8 @@ + i2c-gpio,delay-us = <2>; /* ~100 kHz */ + #address-cells = <1>; + #size-cells = <0>; ++ pinctrl-names = "default"; ++ pinctrl-0 = <&pinctrl_i2c_gpio0>; + status = "disabled"; + }; + }; diff --git a/queue-3.10/drivers-rtc-rtc-max77686.c-fix-wrong-register.patch b/queue-3.10/drivers-rtc-rtc-max77686.c-fix-wrong-register.patch new file mode 100644 index 00000000000..695ea50aa83 --- /dev/null +++ b/queue-3.10/drivers-rtc-rtc-max77686.c-fix-wrong-register.patch @@ -0,0 +1,38 @@ +From 1748cbf7f7c464593232cde914f5a103181a83b5 Mon Sep 17 00:00:00 2001 +From: Sangjung Woo +Date: Wed, 11 Sep 2013 14:24:21 -0700 +Subject: drivers/rtc/rtc-max77686.c: Fix wrong register + +From: Sangjung Woo + +commit 1748cbf7f7c464593232cde914f5a103181a83b5 upstream. + +Fix a read of the wrong register when checking whether the RTC timer has +reached the alarm time. + +Signed-off-by: Sangjung Woo +Signed-off-by: Myugnjoo Ham +Reviewed-by: Jonghwa Lee +Signed-off-by: Andrew Morton +Signed-off-by: Linus Torvalds +Signed-off-by: Jonghwan Choi +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/rtc/rtc-max77686.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +--- a/drivers/rtc/rtc-max77686.c ++++ b/drivers/rtc/rtc-max77686.c +@@ -240,9 +240,9 @@ static int max77686_rtc_read_alarm(struc + } + + alrm->pending = 0; +- ret = regmap_read(info->max77686->regmap, MAX77686_REG_STATUS1, &val); ++ ret = regmap_read(info->max77686->regmap, MAX77686_REG_STATUS2, &val); + if (ret < 0) { +- dev_err(info->dev, "%s:%d fail to read status1 reg(%d)\n", ++ dev_err(info->dev, "%s:%d fail to read status2 reg(%d)\n", + __func__, __LINE__, ret); + goto out; + } diff --git a/queue-3.10/mwifiex-do-not-create-ap-and-p2p-interfaces-upon-driver-loading.patch b/queue-3.10/mwifiex-do-not-create-ap-and-p2p-interfaces-upon-driver-loading.patch new file mode 100644 index 00000000000..d40badddb19 --- /dev/null +++ b/queue-3.10/mwifiex-do-not-create-ap-and-p2p-interfaces-upon-driver-loading.patch @@ -0,0 +1,65 @@ +From 1211c961170cedb21c30d5bb7e2033c8720b38db Mon Sep 17 00:00:00 2001 +From: Bing Zhao +Date: Mon, 19 Aug 2013 16:10:21 -0700 +Subject: mwifiex: do not create AP and P2P interfaces upon driver loading + +From: Bing Zhao + +commit 1211c961170cedb21c30d5bb7e2033c8720b38db upstream. + +Bug 60747 - 1286:2044 [Microsoft Surface Pro] + Marvell 88W8797 wifi show 3 interface under network +https://bugzilla.kernel.org/show_bug.cgi?id=60747 + +This issue was also reported previously by OLPC and some folks from +the community. + +There are 3 network interfaces with different types being created +when mwifiex driver is loaded: + +1. mlan0 (infra. STA) +2. uap0 (AP) +3. p2p0 (P2P_CLIENT) + +The Network Manager attempts to use all 3 interfaces above without +filtering the managed interface type. As the result, 3 identical +interfaces are displayed under network manager. If user happens to +click on an entry under which its interface is uap0 or p2p0, the +association will fail. + +Work around it by removing the creation of AP and P2P interfaces +at driver loading time. These interfaces can be added with 'iw' or +other applications manually when they are needed. + +Signed-off-by: Bing Zhao +Signed-off-by: Avinash Patil +Signed-off-by: John W. Linville +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/net/wireless/mwifiex/main.c | 14 -------------- + 1 file changed, 14 deletions(-) + +--- a/drivers/net/wireless/mwifiex/main.c ++++ b/drivers/net/wireless/mwifiex/main.c +@@ -363,20 +363,6 @@ static void mwifiex_fw_dpc(const struct + dev_err(adapter->dev, "cannot create default STA interface\n"); + goto err_add_intf; + } +- +- /* Create AP interface by default */ +- if (!mwifiex_add_virtual_intf(adapter->wiphy, "uap%d", +- NL80211_IFTYPE_AP, NULL, NULL)) { +- dev_err(adapter->dev, "cannot create default AP interface\n"); +- goto err_add_intf; +- } +- +- /* Create P2P interface by default */ +- if (!mwifiex_add_virtual_intf(adapter->wiphy, "p2p%d", +- NL80211_IFTYPE_P2P_CLIENT, NULL, NULL)) { +- dev_err(adapter->dev, "cannot create default P2P interface\n"); +- goto err_add_intf; +- } + rtnl_unlock(); + + mwifiex_drv_get_driver_version(adapter, fmt, sizeof(fmt) - 1); diff --git a/queue-3.10/series b/queue-3.10/series index 3ebad398f75..e4757f27290 100644 --- a/queue-3.10/series +++ b/queue-3.10/series @@ -41,3 +41,6 @@ ipv6-fix-null-pointer-dereference-in-__ip6addrlbl_add.patch net-ipv6-tcp-fix-potential-use-after-free-in-tcp_v6_do_rcv.patch net-mvneta-properly-disable-hw-phy-polling-and-ensure-adjust_link-works.patch crypto-xor-check-for-osxsave-as-well-as-avx-in-crypto-xor.patch +drivers-rtc-rtc-max77686.c-fix-wrong-register.patch +mwifiex-do-not-create-ap-and-p2p-interfaces-upon-driver-loading.patch +arm-at91-dt-sam9260-add-i2c-gpio-pinctrl.patch