diff --git a/packages/graphics/bcm2835-driver/package.mk b/packages/graphics/bcm2835-driver/package.mk index d80d2217d1..06c53218f9 100644 --- a/packages/graphics/bcm2835-driver/package.mk +++ b/packages/graphics/bcm2835-driver/package.mk @@ -17,7 +17,7 @@ ################################################################################ PKG_NAME="bcm2835-driver" -PKG_VERSION="b8ef00f" +PKG_VERSION="d0bc6ce" PKG_REV="1" PKG_ARCH="any" PKG_LICENSE="nonfree" diff --git a/packages/linux/package.mk b/packages/linux/package.mk index 78ac90bc05..51ca7b0e7b 100644 --- a/packages/linux/package.mk +++ b/packages/linux/package.mk @@ -59,7 +59,7 @@ case "$LINUX" in PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET imx6-status-led imx6-soc-fan irqbalanced" ;; *) - PKG_VERSION="4.7" + PKG_VERSION="4.7.2" PKG_URL="http://www.kernel.org/pub/linux/kernel/v4.x/$PKG_NAME-$PKG_VERSION.tar.xz" ;; esac diff --git a/packages/linux/patches/4.7/linux-003-no_dev_console.patch b/packages/linux/patches/4.7.2/linux-003-no_dev_console.patch similarity index 100% rename from packages/linux/patches/4.7/linux-003-no_dev_console.patch rename to packages/linux/patches/4.7.2/linux-003-no_dev_console.patch diff --git a/packages/linux/patches/4.7/linux-004-fix-build-with-gcc-5.patch b/packages/linux/patches/4.7.2/linux-004-fix-build-with-gcc-5.patch similarity index 100% rename from packages/linux/patches/4.7/linux-004-fix-build-with-gcc-5.patch rename to packages/linux/patches/4.7.2/linux-004-fix-build-with-gcc-5.patch diff --git a/packages/linux/patches/4.7/linux-051-ouya_controller_support.patch b/packages/linux/patches/4.7.2/linux-051-ouya_controller_support.patch similarity index 100% rename from packages/linux/patches/4.7/linux-051-ouya_controller_support.patch rename to packages/linux/patches/4.7.2/linux-051-ouya_controller_support.patch diff --git a/packages/linux/patches/4.7/linux-052-XBOX_remote_support.patch b/packages/linux/patches/4.7.2/linux-052-XBOX_remote_support.patch similarity index 100% rename from packages/linux/patches/4.7/linux-052-XBOX_remote_support.patch rename to packages/linux/patches/4.7.2/linux-052-XBOX_remote_support.patch diff --git a/packages/linux/patches/4.7/linux-053-spinelplus-remote-0.2.patch b/packages/linux/patches/4.7.2/linux-053-spinelplus-remote-0.2.patch similarity index 100% rename from packages/linux/patches/4.7/linux-053-spinelplus-remote-0.2.patch rename to packages/linux/patches/4.7.2/linux-053-spinelplus-remote-0.2.patch diff --git a/packages/linux/patches/4.7/linux-054-nuvoton_revert_d7b290a1056c5564eec8a1b169c6e84ff3.6.114c13.patch b/packages/linux/patches/4.7.2/linux-054-nuvoton_revert_d7b290a1056c5564eec8a1b169c6e84ff3.6.114c13.patch similarity index 100% rename from packages/linux/patches/4.7/linux-054-nuvoton_revert_d7b290a1056c5564eec8a1b169c6e84ff3.6.114c13.patch rename to packages/linux/patches/4.7.2/linux-054-nuvoton_revert_d7b290a1056c5564eec8a1b169c6e84ff3.6.114c13.patch diff --git a/packages/linux/patches/4.7/linux-057-Removed-MCE-customer-code-restriction-in-rc6-decode.patch b/packages/linux/patches/4.7.2/linux-057-Removed-MCE-customer-code-restriction-in-rc6-decode.patch similarity index 100% rename from packages/linux/patches/4.7/linux-057-Removed-MCE-customer-code-restriction-in-rc6-decode.patch rename to packages/linux/patches/4.7.2/linux-057-Removed-MCE-customer-code-restriction-in-rc6-decode.patch diff --git a/packages/linux/patches/4.7/linux-058.05-hid_sony-add_autorepeat_for_PS3_remotes.patch b/packages/linux/patches/4.7.2/linux-058.05-hid_sony-add_autorepeat_for_PS3_remotes.patch similarity index 100% rename from packages/linux/patches/4.7/linux-058.05-hid_sony-add_autorepeat_for_PS3_remotes.patch rename to packages/linux/patches/4.7.2/linux-058.05-hid_sony-add_autorepeat_for_PS3_remotes.patch diff --git a/packages/linux/patches/4.7/linux-062-imon_pad_ignore_diagonal.patch b/packages/linux/patches/4.7.2/linux-062-imon_pad_ignore_diagonal.patch similarity index 100% rename from packages/linux/patches/4.7/linux-062-imon_pad_ignore_diagonal.patch rename to packages/linux/patches/4.7.2/linux-062-imon_pad_ignore_diagonal.patch diff --git a/packages/linux/patches/4.7/linux-203-stb0899_enable_low_symbol_rate.patch b/packages/linux/patches/4.7.2/linux-203-stb0899_enable_low_symbol_rate.patch similarity index 100% rename from packages/linux/patches/4.7/linux-203-stb0899_enable_low_symbol_rate.patch rename to packages/linux/patches/4.7.2/linux-203-stb0899_enable_low_symbol_rate.patch diff --git a/packages/linux/patches/4.7/linux-212-mantis_stb0899_faster_lock.patch b/packages/linux/patches/4.7.2/linux-212-mantis_stb0899_faster_lock.patch similarity index 100% rename from packages/linux/patches/4.7/linux-212-mantis_stb0899_faster_lock.patch rename to packages/linux/patches/4.7.2/linux-212-mantis_stb0899_faster_lock.patch diff --git a/packages/linux/patches/4.7/linux-221-ngene-octopus.todo b/packages/linux/patches/4.7.2/linux-221-ngene-octopus.todo similarity index 100% rename from packages/linux/patches/4.7/linux-221-ngene-octopus.todo rename to packages/linux/patches/4.7.2/linux-221-ngene-octopus.todo diff --git a/packages/linux/patches/4.7/linux-222-stb0899_signal_quality.patch b/packages/linux/patches/4.7.2/linux-222-stb0899_signal_quality.patch similarity index 100% rename from packages/linux/patches/4.7/linux-222-stb0899_signal_quality.patch rename to packages/linux/patches/4.7.2/linux-222-stb0899_signal_quality.patch diff --git a/packages/linux/patches/4.7/linux-227-ds3000-invalid-symbol-rate.patch b/packages/linux/patches/4.7.2/linux-227-ds3000-invalid-symbol-rate.patch similarity index 100% rename from packages/linux/patches/4.7/linux-227-ds3000-invalid-symbol-rate.patch rename to packages/linux/patches/4.7.2/linux-227-ds3000-invalid-symbol-rate.patch diff --git a/packages/linux/patches/4.7/linux-231-Terratec-Cinergy-S2-Rev.3.patch b/packages/linux/patches/4.7.2/linux-231-Terratec-Cinergy-S2-Rev.3.patch similarity index 100% rename from packages/linux/patches/4.7/linux-231-Terratec-Cinergy-S2-Rev.3.patch rename to packages/linux/patches/4.7.2/linux-231-Terratec-Cinergy-S2-Rev.3.patch diff --git a/packages/linux/patches/4.7/linux-950-saa716x_PCIe_interface_chipset.patch.todo b/packages/linux/patches/4.7.2/linux-950-saa716x_PCIe_interface_chipset.patch.todo similarity index 100% rename from packages/linux/patches/4.7/linux-950-saa716x_PCIe_interface_chipset.patch.todo rename to packages/linux/patches/4.7.2/linux-950-saa716x_PCIe_interface_chipset.patch.todo diff --git a/packages/linux/patches/4.7/linux-990.06-hda-Avoid-outputting-HDMI-audio-before-prepare-.patch b/packages/linux/patches/4.7.2/linux-990.06-hda-Avoid-outputting-HDMI-audio-before-prepare-.patch similarity index 100% rename from packages/linux/patches/4.7/linux-990.06-hda-Avoid-outputting-HDMI-audio-before-prepare-.patch rename to packages/linux/patches/4.7.2/linux-990.06-hda-Avoid-outputting-HDMI-audio-before-prepare-.patch diff --git a/packages/linux/patches/4.7/linux-999-i915-extend-fake-hdmi-live-status-to-valley-view.patch b/packages/linux/patches/4.7.2/linux-999-i915-extend-fake-hdmi-live-status-to-valley-view.patch similarity index 100% rename from packages/linux/patches/4.7/linux-999-i915-extend-fake-hdmi-live-status-to-valley-view.patch rename to packages/linux/patches/4.7.2/linux-999-i915-extend-fake-hdmi-live-status-to-valley-view.patch diff --git a/packages/linux/patches/4.7/linux-999-i915-implement-passthrough-colors.patch b/packages/linux/patches/4.7.2/linux-999-i915-implement-passthrough-colors.patch similarity index 100% rename from packages/linux/patches/4.7/linux-999-i915-implement-passthrough-colors.patch rename to packages/linux/patches/4.7.2/linux-999-i915-implement-passthrough-colors.patch diff --git a/packages/linux/patches/4.7/linux-999-i915-use-legacy-turbo.patch b/packages/linux/patches/4.7.2/linux-999-i915-use-legacy-turbo.patch similarity index 100% rename from packages/linux/patches/4.7/linux-999-i915-use-legacy-turbo.patch rename to packages/linux/patches/4.7.2/linux-999-i915-use-legacy-turbo.patch diff --git a/packages/linux/patches/4.7/linux-999-partly-revert-media-rc-core.patch b/packages/linux/patches/4.7.2/linux-999-partly-revert-media-rc-core.patch similarity index 100% rename from packages/linux/patches/4.7/linux-999-partly-revert-media-rc-core.patch rename to packages/linux/patches/4.7.2/linux-999-partly-revert-media-rc-core.patch diff --git a/packages/linux/patches/4.7/linux-999.02-0001-pm-disable-async-suspend-resume-by-default.patch b/packages/linux/patches/4.7.2/linux-999.02-0001-pm-disable-async-suspend-resume-by-default.patch similarity index 100% rename from packages/linux/patches/4.7/linux-999.02-0001-pm-disable-async-suspend-resume-by-default.patch rename to packages/linux/patches/4.7.2/linux-999.02-0001-pm-disable-async-suspend-resume-by-default.patch diff --git a/packages/linux/patches/4.7/linux-999.05-eMMC-Don-t-initialize-partitions-on-RPMB-flagged-are.patch b/packages/linux/patches/4.7.2/linux-999.05-eMMC-Don-t-initialize-partitions-on-RPMB-flagged-are.patch similarity index 100% rename from packages/linux/patches/4.7/linux-999.05-eMMC-Don-t-initialize-partitions-on-RPMB-flagged-are.patch rename to packages/linux/patches/4.7.2/linux-999.05-eMMC-Don-t-initialize-partitions-on-RPMB-flagged-are.patch diff --git a/packages/tools/bcm2835-bootloader/package.mk b/packages/tools/bcm2835-bootloader/package.mk index f51d132eaf..85ac6f108b 100644 --- a/packages/tools/bcm2835-bootloader/package.mk +++ b/packages/tools/bcm2835-bootloader/package.mk @@ -17,7 +17,7 @@ ################################################################################ PKG_NAME="bcm2835-bootloader" -PKG_VERSION="b8ef00f" +PKG_VERSION="d0bc6ce" PKG_REV="1" PKG_ARCH="arm" PKG_LICENSE="nonfree" diff --git a/projects/Generic/linux/linux.x86_64.conf b/projects/Generic/linux/linux.x86_64.conf index 843564465c..85a4089391 100644 --- a/projects/Generic/linux/linux.x86_64.conf +++ b/projects/Generic/linux/linux.x86_64.conf @@ -630,15 +630,15 @@ CONFIG_CPU_FREQ_GOV_COMMON=y # CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set -CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y +# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set -# CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL is not set +CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL=y CONFIG_CPU_FREQ_GOV_PERFORMANCE=y CONFIG_CPU_FREQ_GOV_POWERSAVE=y # CONFIG_CPU_FREQ_GOV_USERSPACE is not set CONFIG_CPU_FREQ_GOV_ONDEMAND=y # CONFIG_CPU_FREQ_GOV_CONSERVATIVE is not set -# CONFIG_CPU_FREQ_GOV_SCHEDUTIL is not set +CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y # # CPU frequency scaling drivers diff --git a/projects/RPi/patches/linux/linux-01-RPi_support.patch b/projects/RPi/patches/linux/linux-01-RPi_support.patch index 1320cee050..97146135f0 100644 --- a/projects/RPi/patches/linux/linux-01-RPi_support.patch +++ b/projects/RPi/patches/linux/linux-01-RPi_support.patch @@ -1,7 +1,7 @@ -From 8e8a77fa775396b9d07c4c1706bafd847ac85015 Mon Sep 17 00:00:00 2001 +From b3a991b03f20c70e2a9b9578596a5d3d74e2ed7c Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 27 Apr 2016 17:43:28 +0100 -Subject: [PATCH 001/111] Revert "SUNRPC: Make NFS swap work with multipath" +Subject: [PATCH 001/119] Revert "SUNRPC: Make NFS swap work with multipath" This reverts commit 15001e5a7e1e207b6bd258cd8f187814cd15b6dc. --- @@ -95,10 +95,10 @@ index 2808d550d2730ff8e36b6d8c072c65e1631064c4..b362c2f099941c1f3388507983ffbdd1 EXPORT_SYMBOL_GPL(rpc_clnt_swap_deactivate); #endif /* CONFIG_SUNRPC_SWAP */ -From d826431779f00b7a0b267c720155e3fb70c9cd57 Mon Sep 17 00:00:00 2001 +From cef4817e002053fa71beaa23ee75a03b1084e217 Mon Sep 17 00:00:00 2001 From: Steve Glendinning Date: Thu, 19 Feb 2015 18:47:12 +0000 -Subject: [PATCH 002/111] smsx95xx: fix crimes against truesize +Subject: [PATCH 002/119] smsx95xx: fix crimes against truesize smsc95xx is adjusting truesize when it shouldn't, and following a recent patch from Eric this is now triggering warnings. @@ -145,10 +145,10 @@ index dc989a8b5afbd62b07cd65a2fa5edde67d3cc5fb..116680e3089f16e1e3e9113a3b93e62c usbnet_skb_return(dev, ax_skb); } -From 46327b51faeab20854b57bc999cbdca10e5e1e56 Mon Sep 17 00:00:00 2001 +From 037225865f0c5833f249ea1217347d0399741441 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Fri, 17 Apr 2015 16:58:45 +0100 -Subject: [PATCH 003/111] smsc95xx: Disable turbo mode by default +Subject: [PATCH 003/119] smsc95xx: Disable turbo mode by default --- drivers/net/usb/smsc95xx.c | 2 +- @@ -168,10 +168,10 @@ index 116680e3089f16e1e3e9113a3b93e62cb78cc1bb..aa4cb43dcd9ba83b042332bc15a4dce6 MODULE_PARM_DESC(turbo_mode, "Enable multiple frames per Rx transaction"); -From acd55c74830d7bdaa13469b8363c6a607e1fc346 Mon Sep 17 00:00:00 2001 +From 091c8b1d376a7fd69788110b6069b65599e7e323 Mon Sep 17 00:00:00 2001 From: Sam Nazarko Date: Fri, 1 Apr 2016 17:27:21 +0100 -Subject: [PATCH 004/111] add smsc95xx packetsize module_param +Subject: [PATCH 004/119] add smsc95xx packetsize module_param Signed-off-by: Sam Nazarko --- @@ -213,10 +213,10 @@ index aa4cb43dcd9ba83b042332bc15a4dce68affce28..889bdabd9dea6cebccc361aa4ac569d7 netif_dbg(dev, ifup, dev->net, "rx_urb_size=%ld\n", -From bd24d215fb9ec317bf643f453a3965560baf4ace Mon Sep 17 00:00:00 2001 +From d0308a38ad9fb4fad9ed78c4df262b6359a65e81 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Tue, 26 Mar 2013 17:26:38 +0000 -Subject: [PATCH 005/111] Allow mac address to be set in smsc95xx +Subject: [PATCH 005/119] Allow mac address to be set in smsc95xx Signed-off-by: popcornmix --- @@ -312,10 +312,10 @@ index 889bdabd9dea6cebccc361aa4ac569d73681396b..d22a2324085fbf61fbd8920362bfc7b9 eth_hw_addr_random(dev->net); netif_dbg(dev, ifup, dev->net, "MAC address set to eth_random_addr\n"); -From e92d422ece30aa23fb14842d9debb6c2358002fc Mon Sep 17 00:00:00 2001 +From 241f4bafbfc3fcddb427fde34b4cc3186f0007cf Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 9 Mar 2016 13:28:24 +0000 -Subject: [PATCH 006/111] serial: Take care starting a hung-up tty's port +Subject: [PATCH 006/119] serial: Take care starting a hung-up tty's port tty_port_hangup sets a port's tty field to NULL (holding the port lock), but uart_tx_stopped, called from __uart_start (with the port lock), @@ -343,10 +343,10 @@ index a3d7c0d4a03e75016023184a5fea18c91d9d8dbc..d61b4167a03205f917448d0bd71a84d0 return 0; } -From f3a47d492c05724f55956258fc0111a5917659b5 Mon Sep 17 00:00:00 2001 +From 196a0d2433fd13ec9295838d8ad95f42b534f8d5 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 18 Jun 2014 13:42:01 +0100 -Subject: [PATCH 007/111] vmstat: Workaround for issue where dirty page count +Subject: [PATCH 007/119] vmstat: Workaround for issue where dirty page count goes negative See: @@ -373,10 +373,10 @@ index d2da8e053210041bfcefb9e04b59d195880d2d0e..e3258dc35371ee6e528dc02ffc705570 static inline void __inc_zone_page_state(struct page *page, -From e0a17406d94df8d5c79751f5e133120a7a59511f Mon Sep 17 00:00:00 2001 +From 185e4131131c921380bae165eebe91e61970d964 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 13 Mar 2015 12:43:36 +0000 -Subject: [PATCH 008/111] Protect __release_resource against resources without +Subject: [PATCH 008/119] Protect __release_resource against resources without parents Without this patch, removing a device tree overlay can crash here. @@ -404,10 +404,10 @@ index 9b5f04404152c296af3a96132f27cfc80ffa9af9..f8a9af6e6b915812be2ba2c1c2b40106 for (;;) { tmp = *p; -From f0cb6129d9a6fcb4bbc8ffddb25061635dda863d Mon Sep 17 00:00:00 2001 +From 77af8947810ce49be1483f4bfd1d2896bbb4bdf1 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 18 Dec 2014 16:07:15 -0800 -Subject: [PATCH 009/111] mm: Remove the PFN busy warning +Subject: [PATCH 009/119] mm: Remove the PFN busy warning See commit dae803e165a11bc88ca8dbc07a11077caf97bbcb -- the warning is expected sometimes when using CMA. However, that commit still spams @@ -432,10 +432,10 @@ index 8b3e1341b7544608cac4777a37bbd424432488e1..9dba743762508ea1cced150388afa38f goto done; } -From 1d470f1c2c4269e41a6d00ac6ea1ecbed4691c46 Mon Sep 17 00:00:00 2001 +From b2a790401ac6156038c376d4258b15f91c5f562e Mon Sep 17 00:00:00 2001 From: Robert Tiemann Date: Mon, 20 Jul 2015 11:01:25 +0200 -Subject: [PATCH 010/111] BCM2835_DT: Fix I2S register map +Subject: [PATCH 010/119] BCM2835_DT: Fix I2S register map --- Documentation/devicetree/bindings/dma/brcm,bcm2835-dma.txt | 4 ++-- @@ -473,10 +473,10 @@ index 65783de0aedf3da79adc36fd077b7a89954ddb6b..a89fe4220fdc3f26f75ee66daf187554 dmas = <&dma 2>, <&dma 3>; -From bb8fde2aa103107b1a523b5dc06ac82157baeed3 Mon Sep 17 00:00:00 2001 +From 5ba4658f4f37ab946cb7ef37508e49f210e1c8c2 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 4 Dec 2015 17:41:50 +0000 -Subject: [PATCH 011/111] irq-bcm2836: Prevent spurious interrupts, and trap +Subject: [PATCH 011/119] irq-bcm2836: Prevent spurious interrupts, and trap them early The old arch-specific IRQ macros included a dsb to ensure the @@ -503,10 +503,10 @@ index 72ff1d5c5de67058f4ef22bb233c41b7c737d6e3..de3b3a37a63d00cc82ae4725b2fe8584 #endif } else if (stat) { -From bb1085ea18c518c017e8a2d816eb717901ca6a26 Mon Sep 17 00:00:00 2001 +From 8e1f6bd19cbcdcdfc1281586503de7edfc6e4a8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 12 Jun 2015 19:01:05 +0200 -Subject: [PATCH 012/111] irqchip: bcm2835: Add FIQ support +Subject: [PATCH 012/119] irqchip: bcm2835: Add FIQ support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -635,10 +635,10 @@ index bf9cc5f2e839e845fe1ce65caa672b6212d3ffbc..3f601f98aa884b941fbb84edb349f6c4 } -From b63ae9dd6cb1f890f4e0b68ef441cb39f3dc6016 Mon Sep 17 00:00:00 2001 +From 320832a9ca9f41c77fd7c11ae87be6e03211b416 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 23 Oct 2015 16:26:55 +0200 -Subject: [PATCH 013/111] irqchip: irq-bcm2835: Add 2836 FIQ support +Subject: [PATCH 013/119] irqchip: irq-bcm2835: Add 2836 FIQ support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -734,10 +734,10 @@ index 3f601f98aa884b941fbb84edb349f6c469b940b1..20deb282286834b1f234a65e614b8584 for (b = 0; b < NR_BANKS; b++) { for (i = 0; i < bank_irqs[b]; i++) { -From d71ea2d5db8b7d9b36665cbe94b1e309353479f8 Mon Sep 17 00:00:00 2001 +From 8776ee14f1397ae851a8c86bbadb08494323a13d Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Tue, 14 Jul 2015 10:26:09 +0100 -Subject: [PATCH 014/111] spidev: Add "spidev" compatible string to silence +Subject: [PATCH 014/119] spidev: Add "spidev" compatible string to silence warning See: https://github.com/raspberrypi/linux/issues/1054 @@ -758,10 +758,10 @@ index e3c19f30f591115a823467033702ff1b232c5ebc..f4963e3c1dbcd13edb9b97e9dad65438 }; MODULE_DEVICE_TABLE(of, spidev_dt_ids); -From 141208db234695caa842b45a89581fa2e08c3f78 Mon Sep 17 00:00:00 2001 +From 82b90b0b4a357f44e02b57656c2acf678ac69f14 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Tue, 30 Jun 2015 14:12:42 +0100 -Subject: [PATCH 015/111] serial: 8250: Don't crash when nr_uarts is 0 +Subject: [PATCH 015/119] serial: 8250: Don't crash when nr_uarts is 0 --- drivers/tty/serial/8250/8250_core.c | 2 ++ @@ -781,10 +781,10 @@ index 0fbd7c033a251e7d0cb214ed2bbd1ad1f19f0a76..00fc96497968c826978465957454ad73 for (i = 0; i < nr_uarts; i++) { struct uart_8250_port *up = &serial8250_ports[i]; -From e80e467e8d44ae69a48b29aa85ec0aecccad634b Mon Sep 17 00:00:00 2001 +From 7eaaa312509254cd8e57c45688c97e8abf8f4e67 Mon Sep 17 00:00:00 2001 From: notro Date: Thu, 10 Jul 2014 13:59:47 +0200 -Subject: [PATCH 016/111] pinctrl-bcm2835: Set base to 0 give expected gpio +Subject: [PATCH 016/119] pinctrl-bcm2835: Set base to 0 give expected gpio numbering Signed-off-by: Noralf Tronnes @@ -806,10 +806,10 @@ index fa77165fab2c1348163979da507df17e7168c49b..d11e2e4ea189466e686d762cb6c6fef9 .can_sleep = false, }; -From 26ec4fa6201b9cfceb3b99fefb9093df018f7400 Mon Sep 17 00:00:00 2001 +From c501d4dc7b5902d3ce5aa7fbd84a945700687283 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Tue, 24 Feb 2015 13:40:50 +0000 -Subject: [PATCH 017/111] pinctrl-bcm2835: Fix interrupt handling for GPIOs +Subject: [PATCH 017/119] pinctrl-bcm2835: Fix interrupt handling for GPIOs 28-31 and 46-53 Contrary to the documentation, the BCM2835 GPIO controller actually has @@ -955,10 +955,10 @@ index d11e2e4ea189466e686d762cb6c6fef9111ecf8e..107ad7d58de8f8a7f55e09c9cdcf7d66 }, }; -From c9eec3c71a1447f4fb118e7b1a1853fd5f38d2a6 Mon Sep 17 00:00:00 2001 +From 46f13e55afadcc5d65377293cb0980e6644bf1a7 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Thu, 26 Feb 2015 09:58:22 +0000 -Subject: [PATCH 018/111] pinctrl-bcm2835: Only request the interrupts listed +Subject: [PATCH 018/119] pinctrl-bcm2835: Only request the interrupts listed in the DTB Although the GPIO controller can generate three interrupts (four counting @@ -985,10 +985,10 @@ index 107ad7d58de8f8a7f55e09c9cdcf7d66fa7ab66b..644bdecbcfcb79d3b84a33769265fca5 pc->irq_data[i].irqgroup = i; -From 61a07603237cf3093679b3c319fc6d0bc54e874b Mon Sep 17 00:00:00 2001 +From ca462b28f55c3f42de0f025760c49aae7379c4f7 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 6 May 2016 12:32:47 +0100 -Subject: [PATCH 019/111] pinctrl-bcm2835: Return pins to inputs when freed +Subject: [PATCH 019/119] pinctrl-bcm2835: Return pins to inputs when freed When dynamically unloading overlays, it is important that freed pins are restored to being inputs to prevent functions from being enabled in @@ -1029,10 +1029,10 @@ index 644bdecbcfcb79d3b84a33769265fca5d3d0c9e5..81a66cba2ab0f7e3ae179de7edd10122 .get_function_name = bcm2835_pmx_get_function_name, .get_function_groups = bcm2835_pmx_get_function_groups, -From bbf333328d9bca204d88968d9781a46450baddf5 Mon Sep 17 00:00:00 2001 +From d7a6f46b6efdb24d9e13bf53c4101f784fb0d000 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 24 Jun 2015 14:10:44 +0100 -Subject: [PATCH 020/111] spi-bcm2835: Support pin groups other than 7-11 +Subject: [PATCH 020/119] spi-bcm2835: Support pin groups other than 7-11 The spi-bcm2835 driver automatically uses GPIO chip-selects due to some unreliability of the native ones. In doing so it chooses the @@ -1113,10 +1113,10 @@ index f35cc10772f6670397ea923ad30158270dd68578..5dfe20ffc2866fa6789825016c585175 /* and set up the "mode" and level */ dev_info(&spi->dev, "setting up native-CS%i as GPIO %i\n", -From a3538941a4ea2b1cce170ad969b43b66bbba8477 Mon Sep 17 00:00:00 2001 +From 31c6e8f53d830408409252a79578a15e482feea3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Wed, 3 Jun 2015 12:26:13 +0200 -Subject: [PATCH 021/111] ARM: bcm2835: Set Serial number and Revision +Subject: [PATCH 021/119] ARM: bcm2835: Set Serial number and Revision MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -1174,10 +1174,10 @@ index 834d67684e205a185971c13ebc6620434eeac788..3b68a8d3501a5dcb1b4790c35d921cf5 static const char * const bcm2835_compat[] = { -From 28e89502361a69361bb3c3132d9bfac45ed04719 Mon Sep 17 00:00:00 2001 +From f12d50eb750065f06af1aff912190fea17628367 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Sat, 3 Oct 2015 22:22:55 +0200 -Subject: [PATCH 022/111] dmaengine: bcm2835: Load driver early and support +Subject: [PATCH 022/119] dmaengine: bcm2835: Load driver early and support legacy API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 @@ -1280,10 +1280,10 @@ index 6149b27c33ad0962a19ed411055d9d05bfb252d3..43265b2847d37b3ee8f71b7528eebea1 MODULE_ALIAS("platform:bcm2835-dma"); MODULE_DESCRIPTION("BCM2835 DMA engine driver"); -From 0afec8b4eb4cb530d0c7f1dfd01592ce11768032 Mon Sep 17 00:00:00 2001 +From d902933fe3953262146692161168dd3d182da06d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Sat, 15 Aug 2015 20:50:02 +0200 -Subject: [PATCH 023/111] bcm2835: Add support for uart1 +Subject: [PATCH 023/119] bcm2835: Add support for uart1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -1340,10 +1340,10 @@ index 3b68a8d3501a5dcb1b4790c35d921cf5fa641ec7..e72e522fbc840c36a39cb6550850b3c6 static const char * const bcm2835_compat[] = { -From 185ef418f969b40b109156015b7fc4f85a36ca46 Mon Sep 17 00:00:00 2001 +From f87575697a12af31a6cdeb7346a4f34ced919311 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Mon, 25 Jan 2016 17:25:12 +0000 -Subject: [PATCH 024/111] firmware: Updated mailbox header +Subject: [PATCH 024/119] firmware: Updated mailbox header --- include/soc/bcm2835/raspberrypi-firmware.h | 11 +++++++++++ @@ -1406,10 +1406,10 @@ index 3fb357193f09914fe21f8555a4b8613f74f22bc3..227a107214a02deadcca3db202da265e RPI_FIRMWARE_GET_COMMAND_LINE = 0x00050001, RPI_FIRMWARE_GET_DMA_CHANNELS = 0x00060001, -From 959d644104238b058ba73ce17324ec64c9feb912 Mon Sep 17 00:00:00 2001 +From 830082c887e90076ea528cdb206798e8bbfd866e Mon Sep 17 00:00:00 2001 From: popcornmix Date: Sun, 12 May 2013 12:24:19 +0100 -Subject: [PATCH 025/111] Main bcm2708/bcm2709 linux port +Subject: [PATCH 025/119] Main bcm2708/bcm2709 linux port MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -3919,10 +3919,10 @@ index 45cde8cd39f2434f5f9ec02c702a91a7f6b971c9..6a01ffa629386bdecf85e5a4736f7c27 mmc_pm_flag_t pm_caps; /* supported pm features */ -From bc4a3b0949122d757a7bb93cf9bc2181af7777a9 Mon Sep 17 00:00:00 2001 +From 20230801c659dbaa835fcc5871b7f7a76743cc5e Mon Sep 17 00:00:00 2001 From: popcornmix Date: Tue, 5 Apr 2016 19:40:12 +0100 -Subject: [PATCH 026/111] reboot: Use power off rather than busy spinning when +Subject: [PATCH 026/119] reboot: Use power off rather than busy spinning when halt is requested --- @@ -3945,10 +3945,10 @@ index 3fa867a2aae672755c6ce6448f4148c989dbf964..80dca8dcd6709034b643c6a3f35729e0 /* -From 122b8acb7c8d60b790ef4665ae12b7f336316c68 Mon Sep 17 00:00:00 2001 +From 1dfdeeaa718e08b61647d39d7cf73c8878ad8aea Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 11 Nov 2015 21:01:15 +0000 -Subject: [PATCH 027/111] squash: include ARCH_BCM2708 / ARCH_BCM2709 +Subject: [PATCH 027/119] squash: include ARCH_BCM2708 / ARCH_BCM2709 --- drivers/char/hw_random/Kconfig | 2 +- @@ -4125,10 +4125,10 @@ index 6a834e109f1de47e533d17e87cdc73d8ee86fc4d..c5070aec5996aafb2d9daaf75163e16a select REGMAP_MMIO help -From 6f0fb5187200ef480efe629d0c758662df204f07 Mon Sep 17 00:00:00 2001 +From 71e43c8655cf530d29be6ac1158d1c89053aa53e Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 1 May 2013 19:46:17 +0100 -Subject: [PATCH 028/111] Add dwc_otg driver +Subject: [PATCH 028/119] Add dwc_otg driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -65154,10 +65154,10 @@ index 0000000000000000000000000000000000000000..cdc9963176e5a4a0d5250613b61e26c5 +test_main(); +0; -From c2cb17374b4e4c68ff926fe79c52d6338b93f74d Mon Sep 17 00:00:00 2001 +From 1f1b5fbbeb7d47cb559829ce2ecc64dea3cadc40 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 17 Jun 2015 17:06:34 +0100 -Subject: [PATCH 029/111] bcm2708 framebuffer driver +Subject: [PATCH 029/119] bcm2708 framebuffer driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -65277,7 +65277,7 @@ index f6731867dd26dfc4318799e5204cd583a5d27670..ee3b3496cee43899cd6b0037f6f22ec1 obj-$(CONFIG_FB_CLPS711X) += clps711x-fb.o diff --git a/drivers/video/fbdev/bcm2708_fb.c b/drivers/video/fbdev/bcm2708_fb.c new file mode 100644 -index 0000000000000000000000000000000000000000..cae5aab6848d1c6e82993f8b809dc937babeba30 +index 0000000000000000000000000000000000000000..37f60813fe1dd95d9f5f725c07ec2e75c09857bf --- /dev/null +++ b/drivers/video/fbdev/bcm2708_fb.c @@ -0,0 +1,844 @@ @@ -65334,7 +65334,7 @@ index 0000000000000000000000000000000000000000..cae5aab6848d1c6e82993f8b809dc937 + +static int fbwidth = 800; /* module parameter */ +static int fbheight = 480; /* module parameter */ -+static int fbdepth = 16; /* module parameter */ ++static int fbdepth = 32; /* module parameter */ +static int fbswap = 0; /* module parameter */ + +static u32 dma_busy_wait_threshold = 1<<15; @@ -68616,10 +68616,10 @@ index 3c14e43b82fefe1d32f591d1b2f61d2cd28d0fa8..7626beb6a5bb8df601ddf0f6e6909d1f +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 -From b3848db30147e758d2d0f82c5dcfee8f567f0d82 Mon Sep 17 00:00:00 2001 +From e3a46851101da511663fb8c1e9ace64400fb1c5a Mon Sep 17 00:00:00 2001 From: Florian Meier Date: Fri, 22 Nov 2013 14:22:53 +0100 -Subject: [PATCH 030/111] dmaengine: Add support for BCM2708 +Subject: [PATCH 030/119] dmaengine: Add support for BCM2708 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -69239,10 +69239,10 @@ index 0000000000000000000000000000000000000000..99cc7fdbf543207208bf3638a0d4dbb6 + +#endif /* _PLAT_BCM2708_DMA_H */ -From a81ac3cfae61fc6b814594d419702a2808a731e6 Mon Sep 17 00:00:00 2001 +From 2eb0c07a4c0a2b5a3dcb47e8b2e2771faac17a11 Mon Sep 17 00:00:00 2001 From: gellert Date: Fri, 15 Aug 2014 16:35:06 +0100 -Subject: [PATCH 031/111] MMC: added alternative MMC driver +Subject: [PATCH 031/119] MMC: added alternative MMC driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -70989,10 +70989,10 @@ index 0000000000000000000000000000000000000000..ceb37930e167f47c9c848e8de757ad09 +MODULE_LICENSE("GPL v2"); +MODULE_AUTHOR("Gellert Weisz"); -From ea4f732925a77e0c50915b345312cbce996201b8 Mon Sep 17 00:00:00 2001 +From d03a7264ec92e4f59ff25dbb70fe755969411f51 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 25 Mar 2015 17:49:47 +0000 -Subject: [PATCH 032/111] Adding bcm2835-sdhost driver, and an overlay to +Subject: [PATCH 032/119] Adding bcm2835-sdhost driver, and an overlay to enable it BCM2835 has two SD card interfaces. This driver uses the other one. @@ -73372,10 +73372,10 @@ index 0000000000000000000000000000000000000000..d7b6b5a4e31f7aaa76470d3a79ea78a6 +MODULE_LICENSE("GPL v2"); +MODULE_AUTHOR("Phil Elwell"); -From 324d21e6e89ecb598e332f431fffb01464462c6d Mon Sep 17 00:00:00 2001 +From c7c7f6442e1a041ff0449fd00716fae3681d6790 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 11 May 2016 12:50:33 +0100 -Subject: [PATCH 033/111] mmc: Add MMC_QUIRK_ERASE_BROKEN for some cards +Subject: [PATCH 033/119] mmc: Add MMC_QUIRK_ERASE_BROKEN for some cards Some SD cards have been found that corrupt data when small blocks are erased. Add a quirk to indicate that ERASE should not be used, @@ -73511,10 +73511,10 @@ index eb0151bac50c1fd796f479d017bc3c3d7017c9e9..fa4e6454456747f02a10621f4f4da3ac unsigned int erase_shift; /* if erase unit is power 2 */ unsigned int pref_erase; /* in sectors */ -From b7a07a2134d0240e10a33263740f2b37e8ee1a92 Mon Sep 17 00:00:00 2001 +From 059916f5d9b5f01c9a530c6a78aa3ab25dd03acf Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 3 Jul 2013 00:31:47 +0100 -Subject: [PATCH 034/111] cma: Add vc_cma driver to enable use of CMA +Subject: [PATCH 034/119] cma: Add vc_cma driver to enable use of CMA MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -74857,10 +74857,10 @@ index 0000000000000000000000000000000000000000..be2819d5d41f9d5ed65daf8eedb94c9e + +#endif /* VC_CMA_H */ -From fd23e9dc16915a406af9bda180f64d882b92b160 Mon Sep 17 00:00:00 2001 +From 7ba0eac61216f2fc6f77787bdef5f1a21dea0592 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Mon, 26 Mar 2012 22:15:50 +0100 -Subject: [PATCH 035/111] bcm2708: alsa sound driver +Subject: [PATCH 035/119] bcm2708: alsa sound driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -77597,10 +77597,10 @@ index 0000000000000000000000000000000000000000..af3e6eb690113fc32ce9e06bd2f0f294 + +#endif // _VC_AUDIO_DEFS_H_ -From 11380abf87d0d53e0243f3178cdab81f4d4449a5 Mon Sep 17 00:00:00 2001 +From 194cbe936e536cc4876eb6007d71d996e49f211c Mon Sep 17 00:00:00 2001 From: popcornmix Date: Tue, 2 Jul 2013 23:42:01 +0100 -Subject: [PATCH 036/111] bcm2708 vchiq driver +Subject: [PATCH 036/119] bcm2708 vchiq driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -90965,10 +90965,10 @@ index 0000000000000000000000000000000000000000..b6bfa21155e431e93bfb2c149d324371 + return vchiq_build_time; +} -From 1a022d55ba03192671ab57aee87137e870501a88 Mon Sep 17 00:00:00 2001 +From ad1a93c2808e2aebdb764dcfac75f0b43414c4cb Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 17 Jun 2015 16:07:06 +0100 -Subject: [PATCH 037/111] vc_mem: Add vc_mem driver +Subject: [PATCH 037/119] vc_mem: Add vc_mem driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -91973,10 +91973,10 @@ index 0000000000000000000000000000000000000000..20a475377eb3078ea1ecaef2b24efc35 + +#endif /* _VC_MEM_H */ -From cceb483e245cc42f3bb2f96246080169084a8509 Mon Sep 17 00:00:00 2001 +From ecb5b0d56a6624be0b6a31bd257cf2e4418e036f Mon Sep 17 00:00:00 2001 From: Tim Gover Date: Tue, 22 Jul 2014 15:41:04 +0100 -Subject: [PATCH 038/111] vcsm: VideoCore shared memory service for BCM2835 +Subject: [PATCH 038/119] vcsm: VideoCore shared memory service for BCM2835 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -96394,10 +96394,10 @@ index 0000000000000000000000000000000000000000..334f36d0d697b047df2922b5f2db67f3 + +#endif /* __VMCS_SM_IOCTL_H__INCLUDED__ */ -From bd88b185bd5e789da9df304bceb13516d8fb68e3 Mon Sep 17 00:00:00 2001 +From 971d989c31abb4fd06b79ea031ef1f87f544ffd0 Mon Sep 17 00:00:00 2001 From: Luke Wren Date: Fri, 21 Aug 2015 23:14:48 +0100 -Subject: [PATCH 039/111] Add /dev/gpiomem device for rootless user GPIO access +Subject: [PATCH 039/119] Add /dev/gpiomem device for rootless user GPIO access Signed-off-by: Luke Wren @@ -96708,10 +96708,10 @@ index 0000000000000000000000000000000000000000..911f5b7393ed48ceed8751f06967ae64 +MODULE_DESCRIPTION("gpiomem driver for accessing GPIO from userspace"); +MODULE_AUTHOR("Luke Wren "); -From e72622a4c692d9f85f4056d834804d738a6a3ce5 Mon Sep 17 00:00:00 2001 +From dd9172e87a7c4dbabcf76b18394053200e3f55f9 Mon Sep 17 00:00:00 2001 From: Luke Wren Date: Sat, 5 Sep 2015 01:14:45 +0100 -Subject: [PATCH 040/111] Add SMI driver +Subject: [PATCH 040/119] Add SMI driver Signed-off-by: Luke Wren --- @@ -98662,10 +98662,10 @@ index 0000000000000000000000000000000000000000..ee3a75edfc033eeb0d90a687ffb68b10 + +#endif /* BCM2835_SMI_H */ -From 9d19676cd43462eeb3ff112f34566d179c5bc59a Mon Sep 17 00:00:00 2001 +From 5818b17dce756d4b6641cb9be44fce33a040f55d Mon Sep 17 00:00:00 2001 From: Luke Wren Date: Sat, 5 Sep 2015 01:16:10 +0100 -Subject: [PATCH 041/111] Add SMI NAND driver +Subject: [PATCH 041/119] Add SMI NAND driver Signed-off-by: Luke Wren --- @@ -99030,10 +99030,10 @@ index 0000000000000000000000000000000000000000..02adda6da18bd0ba9ab19a104975b79d + ("Driver for NAND chips using Broadcom Secondary Memory Interface"); +MODULE_AUTHOR("Luke Wren "); -From 883e2b3ab1545d31654c899b2175dba96718a477 Mon Sep 17 00:00:00 2001 +From 7a837ee40843ef864ea0293624413502163ba296 Mon Sep 17 00:00:00 2001 From: Aron Szabo Date: Sat, 16 Jun 2012 12:15:55 +0200 -Subject: [PATCH 042/111] lirc: added support for RaspberryPi GPIO +Subject: [PATCH 042/119] lirc: added support for RaspberryPi GPIO lirc_rpi: Use read_current_timer to determine transmitter delay. Thanks to jjmz and others See: https://github.com/raspberrypi/linux/issues/525 @@ -99078,12 +99078,22 @@ parameters, except that gpio_in_pull should be set using the strings "up", "down" or "off". lirc-rpi: Also support pinctrl-bcm2835 in non-DT mode + +fix auto-sense in lirc_rpi driver + +On a Raspberry Pi 2, the lirc_rpi driver might receive spurious +interrupts and change it's low-active / high-active setting. +When this happens, the IR remote control stops working. + +This patch disables this auto-detection if the 'sense' parameter +was set in the device tree, making the driver robust to such +spurious interrupts. --- drivers/staging/media/lirc/Kconfig | 6 + drivers/staging/media/lirc/Makefile | 1 + - drivers/staging/media/lirc/lirc_rpi.c | 730 ++++++++++++++++++++++++++++++++++ + drivers/staging/media/lirc/lirc_rpi.c | 734 ++++++++++++++++++++++++++++++++++ include/linux/platform_data/bcm2708.h | 23 ++ - 4 files changed, 760 insertions(+) + 4 files changed, 764 insertions(+) create mode 100644 drivers/staging/media/lirc/lirc_rpi.c create mode 100644 include/linux/platform_data/bcm2708.h @@ -99118,10 +99128,10 @@ index 5430adf0475ded5abe2ef4b4cf4e7f2c08297894..9e53cd0caf58ba28a939b780c876d401 obj-$(CONFIG_LIRC_SIR) += lirc_sir.o diff --git a/drivers/staging/media/lirc/lirc_rpi.c b/drivers/staging/media/lirc/lirc_rpi.c new file mode 100644 -index 0000000000000000000000000000000000000000..06244398e42b9a1501a48fb4693218e017e5a651 +index 0000000000000000000000000000000000000000..61328968d21540b04814cbd5155eaa30b715c8f4 --- /dev/null +++ b/drivers/staging/media/lirc/lirc_rpi.c -@@ -0,0 +1,730 @@ +@@ -0,0 +1,734 @@ +/* + * lirc_rpi.c + * @@ -99203,6 +99213,7 @@ index 0000000000000000000000000000000000000000..06244398e42b9a1501a48fb4693218e0 + +struct gpio_chip *gpiochip; +static int irq_num; ++static int auto_sense = 1; + +/* forward declarations */ +static long send_pulse(unsigned long length); @@ -99403,7 +99414,9 @@ index 0000000000000000000000000000000000000000..06244398e42b9a1501a48fb4693218e0 + * detecting pulse while this + * MUST be a space! + */ -+ sense = sense ? 0 : 1; ++ if (auto_sense) { ++ sense = sense ? 0 : 1; ++ } + } + } else { + data = (int) (deltv*1000000 + @@ -99541,6 +99554,7 @@ index 0000000000000000000000000000000000000000..06244398e42b9a1501a48fb4693218e0 + printk(KERN_INFO LIRC_DRIVER_NAME + ": manually using active %s receiver on GPIO pin %d\n", + sense ? "low" : "high", gpio_in_pin); ++ auto_sense = 0; + } + + return 0; @@ -99882,10 +99896,10 @@ index 0000000000000000000000000000000000000000..fb69624ccef00ddbdccf8256d6baf1b1 + +#endif -From 36561a4595f5e2fa6f0faedd5883be17dfc922d1 Mon Sep 17 00:00:00 2001 +From fe2b750f71020202b9937fcc1e5ed3c7a18ca352 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 3 Jul 2013 00:49:20 +0100 -Subject: [PATCH 043/111] Add cpufreq driver +Subject: [PATCH 043/119] Add cpufreq driver Signed-off-by: popcornmix --- @@ -100147,10 +100161,10 @@ index 0000000000000000000000000000000000000000..3eb9e9326231b08e6ee95ad486485245 +module_init(bcm2835_cpufreq_module_init); +module_exit(bcm2835_cpufreq_module_exit); -From 7540e4b3f77cb70cd77899f6cd80479e4f743599 Mon Sep 17 00:00:00 2001 +From ae77f68524aad87d4fc3aea49cc7498299fca815 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Tue, 26 Mar 2013 19:24:24 +0000 -Subject: [PATCH 044/111] Added hwmon/thermal driver for reporting core +Subject: [PATCH 044/119] Added hwmon/thermal driver for reporting core temperature. Thanks Dorian MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 @@ -100316,10 +100330,10 @@ index 0000000000000000000000000000000000000000..c63fb9f9d143e19612a18fe530c7b2b3 +MODULE_DESCRIPTION("Thermal driver for bcm2835 chip"); +MODULE_LICENSE("GPL"); -From cfbbb92f0c0496445cc97151580ea8b9a6d3e9d9 Mon Sep 17 00:00:00 2001 +From 32df8f5f8e1725feb1050e598e8abb4b4be89160 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 17 Jun 2015 15:44:08 +0100 -Subject: [PATCH 045/111] Add Chris Boot's i2c driver +Subject: [PATCH 045/119] Add Chris Boot's i2c driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -100976,10 +100990,10 @@ index 0000000000000000000000000000000000000000..c9b8e5cb1702e4b20e45214d81a7a40a +MODULE_LICENSE("GPL v2"); +MODULE_ALIAS("platform:" DRV_NAME); -From 05cb723448582453691babf82541facfbb50defb Mon Sep 17 00:00:00 2001 +From 76034201214bc189260a389df7be9399728106d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 26 Jun 2015 14:27:06 +0200 -Subject: [PATCH 046/111] char: broadcom: Add vcio module +Subject: [PATCH 046/119] char: broadcom: Add vcio module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -101205,10 +101219,10 @@ index 0000000000000000000000000000000000000000..c19bc2075c77879563ef5e59038b5a14 +MODULE_DESCRIPTION("Mailbox userspace access"); +MODULE_LICENSE("GPL"); -From ef21300b02abfc74b007a8bb4a66eda2bf3a88c6 Mon Sep 17 00:00:00 2001 +From d0d20dbe6324c801264548804a7c5b9b91e1f6f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 26 Jun 2015 14:25:01 +0200 -Subject: [PATCH 047/111] firmware: bcm2835: Support ARCH_BCM270x +Subject: [PATCH 047/119] firmware: bcm2835: Support ARCH_BCM270x MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -101314,10 +101328,10 @@ index dd506cd3a5b874f9e1acd07efb8cd151bb6145d1..b980d531b35b9981a88356ef1c8a7b86 MODULE_AUTHOR("Eric Anholt "); MODULE_DESCRIPTION("Raspberry Pi firmware driver"); -From 15948d937b12b2f04caf507d3ac39e044de22ed8 Mon Sep 17 00:00:00 2001 +From bbc37de942cdaf0d228877d68cd7142bdd5e1a6d Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 30 Jan 2013 12:45:18 +0000 -Subject: [PATCH 048/111] bcm2835: add v4l2 camera device +Subject: [PATCH 048/119] bcm2835: add v4l2 camera device - Supports raw YUV capture, preview, JPEG and H264. - Uses videobuf2 for data transfer, using dma_buf. @@ -109049,10 +109063,10 @@ index 0000000000000000000000000000000000000000..9d1d11e4a53e510c04a416d92d195a7d + +#endif /* MMAL_VCHIQ_H */ -From 2be247eeb689931f548636200e5b64c51daa3248 Mon Sep 17 00:00:00 2001 +From 94b6390e2812b2d593a3ff00b8cdceaa0bc5bbb1 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 11 May 2015 09:00:42 +0100 -Subject: [PATCH 049/111] scripts: Add mkknlimg and knlinfo scripts from tools +Subject: [PATCH 049/119] scripts: Add mkknlimg and knlinfo scripts from tools repo The Raspberry Pi firmware looks for a trailer on the kernel image to @@ -109564,10 +109578,10 @@ index 0000000000000000000000000000000000000000..78c5845d2f01deb04b477327d83fa606 + return $trailer; +} -From 4c81180311f93a3c6ed0f526f19d138a5c8c69cb Mon Sep 17 00:00:00 2001 +From 0e1c7da845ceb22cd786b030ac9e413cb17f0a67 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 10 Aug 2015 09:49:15 +0100 -Subject: [PATCH 050/111] scripts/dtc: Update to upstream version 1.4.1 +Subject: [PATCH 050/119] scripts/dtc: Update to upstream version 1.4.1 Includes the new localfixups format. @@ -112418,10 +112432,10 @@ index ad9b05ae698b0495ecbda42ffcf4743555313a27..2595dfda020fd9e03f0beff5006f229d -#define DTC_VERSION "DTC 1.4.1-g53bf130b" +#define DTC_VERSION "DTC 1.4.1-g25efc119" -From 9e47d686a2c50cd8e20ce11f4430494df04fab12 Mon Sep 17 00:00:00 2001 +From 0aafad9829488449cd46d0166a57c94036578f3e Mon Sep 17 00:00:00 2001 From: notro Date: Wed, 9 Jul 2014 14:46:08 +0200 -Subject: [PATCH 051/111] BCM2708: Add core Device Tree support +Subject: [PATCH 051/119] BCM2708: Add core Device Tree support Add the bare minimum needed to boot BCM2708 from a Device Tree. @@ -121045,10 +121059,10 @@ index 0000000000000000000000000000000000000000..8498134fdbb3912e9ce18282b53084d8 + +}; -From 3e5b57715228496ea48c118917cb557d5c69ad74 Mon Sep 17 00:00:00 2001 +From 08ad6c196e2efc2181274ebf686fcf00a0277ffa Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 13 Mar 2015 20:00:21 +0000 -Subject: [PATCH 052/111] BCM270X_DT: Add a .dtbo target, use for overlays +Subject: [PATCH 052/119] BCM270X_DT: Add a .dtbo target, use for overlays Change the filenames and extensions to keep the pre-DDT style of overlay (-overlay.dtb) distinct from new ones that use a @@ -121131,10 +121145,10 @@ index e7df0f5db7ec273f45b755668815ce96ba1ffe46..8f50f48329b9460b7268322ea4fd99cf # Bzip2 -From 6a36f694a362e7836a7ee1c0763920ff90ff8d1e Mon Sep 17 00:00:00 2001 +From 1f191b8bb3632388ea155815b8fad006921f2ff5 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 8 Apr 2016 17:43:27 +0100 -Subject: [PATCH 053/111] BCM270X_DT: Don't generate "linux,phandle" props +Subject: [PATCH 053/119] BCM270X_DT: Don't generate "linux,phandle" props The EPAPR standard says to use "phandle" properties to store phandles, rather than the deprecated "linux,phandle" version. By default, dtc @@ -121160,10 +121174,10 @@ index 8f50f48329b9460b7268322ea4fd99cf764134ec..c1c3ceb265a3fd223b8a2a0a548ddad3 -d $(depfile).dtc.tmp $(dtc-tmp) ; \ cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile) -From 2f0ee24bd8b41a4c6616319f888f805e65db0159 Mon Sep 17 00:00:00 2001 +From ca9e434ec3cded3fc7797577f245a0b80c56db86 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 6 Feb 2015 13:50:57 +0000 -Subject: [PATCH 054/111] BCM270x_DT: Add pwr_led, and the required "input" +Subject: [PATCH 054/119] BCM270x_DT: Add pwr_led, and the required "input" trigger The "input" trigger makes the associated GPIO an input. This is to support @@ -121339,10 +121353,10 @@ index e5e7f2e80a54dd2f15737a3ef478287458641f6e..68086e559d963ed06a0ceb916f9b1555 /* Set LED brightness level * Must not sleep. Use brightness_set_blocking for drivers -From ea2507545d3bab2dcacab277a315e73e1d6e47de Mon Sep 17 00:00:00 2001 +From 8244c1243b3a8a539202e12d8c0ea9f83e7e9006 Mon Sep 17 00:00:00 2001 From: Siarhei Siamashka Date: Mon, 17 Jun 2013 13:32:11 +0300 -Subject: [PATCH 055/111] fbdev: add FBIOCOPYAREA ioctl +Subject: [PATCH 055/119] fbdev: add FBIOCOPYAREA ioctl Based on the patch authored by Ali Gholami Rudi at https://lkml.org/lkml/2009/7/13/153 @@ -121435,10 +121449,10 @@ index fb795c3b3c178ad3cd7c9e9e4547ffd492bac181..fa72af0c981710fe80bacf4cf6612f6d #define FB_TYPE_PACKED_PIXELS 0 /* Packed Pixels */ #define FB_TYPE_PLANES 1 /* Non interleaved planes */ -From 87bd3668ff68813fed9de9d49038b3e46ecf771f Mon Sep 17 00:00:00 2001 +From 45ead68a64257fa9197d1982a9630b6d63a00506 Mon Sep 17 00:00:00 2001 From: Harm Hanemaaijer Date: Thu, 20 Jun 2013 20:21:39 +0200 -Subject: [PATCH 056/111] Speed up console framebuffer imageblit function +Subject: [PATCH 056/119] Speed up console framebuffer imageblit function Especially on platforms with a slower CPU but a relatively high framebuffer fill bandwidth, like current ARM devices, the existing @@ -121647,10 +121661,10 @@ index a2bb276a8b2463eee98eb237c4647bc00cd93601..436494fba15abecb400ef28688466faf start_index, pitch_index); } else -From 55a2f849b57c8ba767bdb979eab54a4072aeaa90 Mon Sep 17 00:00:00 2001 +From 4d609b22de42d7a28825e8c01072a158c5d933fa Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 8 May 2013 11:46:50 +0100 -Subject: [PATCH 057/111] enabling the realtime clock 1-wire chip DS1307 and +Subject: [PATCH 057/119] enabling the realtime clock 1-wire chip DS1307 and 1-wire on GPIO4 (as a module) 1-wire: Add support for configuring pin for w1-gpio kernel module @@ -121900,10 +121914,10 @@ index d58594a3232492e33f1dd4babd3798b03e0f0203..feae94256256316fd9d850c3d83325af unsigned int ext_pullup_enable_pin; unsigned int pullup_duration; -From 528bf1a9250bf36da5a68a23e567f159fe6b2d84 Mon Sep 17 00:00:00 2001 +From 748bb26b92f0d95785fb5cdd2a9d45dd51f12bfe Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 18 Dec 2013 22:16:19 +0000 -Subject: [PATCH 058/111] config: Enable CONFIG_MEMCG, but leave it disabled +Subject: [PATCH 058/119] config: Enable CONFIG_MEMCG, but leave it disabled (due to memory cost). Enable with cgroup_enable=memory. --- @@ -121911,10 +121925,10 @@ Subject: [PATCH 058/111] config: Enable CONFIG_MEMCG, but leave it disabled 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/kernel/cgroup.c b/kernel/cgroup.c -index 75c0ff00aca60d298062755539e83cbfeaffaaf2..d3db7d24554254f8a33adb2ff9a0540262c78caa 100644 +index e0be49fc382fc339269b9be29fda59d4ad619962..9b31046d0b00c66d86c1b07003a79edbcf2dae3d 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c -@@ -5591,7 +5591,7 @@ int __init cgroup_init_early(void) +@@ -5592,7 +5592,7 @@ int __init cgroup_init_early(void) return 0; } @@ -121923,7 +121937,7 @@ index 75c0ff00aca60d298062755539e83cbfeaffaaf2..d3db7d24554254f8a33adb2ff9a05402 /** * cgroup_init - cgroup initialization -@@ -6121,6 +6121,28 @@ static int __init cgroup_no_v1(char *str) +@@ -6122,6 +6122,28 @@ static int __init cgroup_no_v1(char *str) } __setup("cgroup_no_v1=", cgroup_no_v1); @@ -121953,10 +121967,10 @@ index 75c0ff00aca60d298062755539e83cbfeaffaaf2..d3db7d24554254f8a33adb2ff9a05402 * css_tryget_online_from_dir - get corresponding css from a cgroup dentry * @dentry: directory dentry of interest -From f909136a4636faf8d7fd30fce66104b487b2ecff Mon Sep 17 00:00:00 2001 +From 6dd642c1b1cc9c115d4c01efb57aa6809dd65141 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Mon, 13 Apr 2015 17:16:29 +0100 -Subject: [PATCH 059/111] config: Add default configs +Subject: [PATCH 059/119] config: Add default configs --- arch/arm/configs/bcm2709_defconfig | 1288 +++++++++++++++++++++++++++++++++++ @@ -124562,10 +124576,10 @@ index 0000000000000000000000000000000000000000..da2df3d30e15a55a34b45d3ebbf98e90 +CONFIG_CRC_ITU_T=y +CONFIG_LIBCRC32C=y -From aa15290cdeac3133072d8ea98a4197d32f13cbf0 Mon Sep 17 00:00:00 2001 +From d73facf6d6b137986b32524a9c537257158fa327 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Mon, 14 Jul 2014 22:02:09 +0100 -Subject: [PATCH 060/111] hid: Reduce default mouse polling interval to 60Hz +Subject: [PATCH 060/119] hid: Reduce default mouse polling interval to 60Hz Reduces overhead when using X --- @@ -124601,10 +124615,10 @@ index ae83af649a607f67239f1a64bf45dd4b5770cc7d..4a7af9d0b910f59d17421ce14138400d ret = -ENOMEM; if (usb_endpoint_dir_in(endpoint)) { -From 8d8a8564c00e70c5606af68c4acdb8c5e2ac8cf8 Mon Sep 17 00:00:00 2001 +From a92b385cc450a5be2f972c887800486a66de284a Mon Sep 17 00:00:00 2001 From: Gordon Hollingworth Date: Tue, 12 May 2015 14:47:56 +0100 -Subject: [PATCH 061/111] rpi-ft5406: Add touchscreen driver for pi LCD display +Subject: [PATCH 061/119] rpi-ft5406: Add touchscreen driver for pi LCD display Fix driver detection failure Check that the buffer response is non-zero meaning the touchscreen was detected @@ -124899,10 +124913,10 @@ index 0000000000000000000000000000000000000000..b27dbee8f56773dbd2a5503dc864747d +MODULE_DESCRIPTION("Touchscreen driver for memory based FT5406"); +MODULE_LICENSE("GPL"); -From caa5f748c7c34919061a800d3b9600aeef93ae3f Mon Sep 17 00:00:00 2001 +From 913c6388aff7ef8c8627afc87e98e48ef62354fd Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 13 Oct 2014 11:47:53 +0100 -Subject: [PATCH 062/111] Improve __copy_to_user and __copy_from_user +Subject: [PATCH 062/119] Improve __copy_to_user and __copy_from_user performance Provide a __copy_from_user that uses memcpy. On BCM2708, use @@ -126458,10 +126472,10 @@ index 6bd1089b07e0960830ed6bd6a8345202b7efd8b0..cd17dd11ebe7bbe00089e70cd2ccea74 static unsigned long noinline __clear_user_memset(void __user *addr, unsigned long n) -From 626055cab99e810168105994b1368f783545728f Mon Sep 17 00:00:00 2001 +From 62b45f2357d402f01c1fa29999c4c89205e4aa23 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Thu, 25 Jun 2015 12:16:11 +0100 -Subject: [PATCH 063/111] gpio-poweroff: Allow it to work on Raspberry Pi +Subject: [PATCH 063/119] gpio-poweroff: Allow it to work on Raspberry Pi The Raspberry Pi firmware manages the power-down and reboot process. To do this it installs a pm_power_off handler, causing @@ -126496,10 +126510,10 @@ index be3d81ff51cc3f510d85e4eed7a52960e51e7bc1..a030ae9fb1fca325061c093696e82186 "%s: pm_power_off function already registered", __func__); -From f62be97894117c25b4f8bbad415770b21f09a919 Mon Sep 17 00:00:00 2001 +From 72b1e5e08bb0ac0726001beab05f2ff6ea496a05 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Tue, 14 Jul 2015 14:32:47 +0100 -Subject: [PATCH 064/111] mfd: Add Raspberry Pi Sense HAT core driver +Subject: [PATCH 064/119] mfd: Add Raspberry Pi Sense HAT core driver --- drivers/input/joystick/Kconfig | 8 + @@ -127365,10 +127379,10 @@ index 0000000000000000000000000000000000000000..56196dc2af10e464a1e3f98b028dca1c + +#endif -From f8f8a656cd3bf3fbeeeaa821ac7f11dd7071979e Mon Sep 17 00:00:00 2001 +From 2c71a1fe648524a406517c1983592bbfccb9345d Mon Sep 17 00:00:00 2001 From: Florian Meier Date: Fri, 22 Nov 2013 19:19:08 +0100 -Subject: [PATCH 065/111] ASoC: Add support for HifiBerry DAC +Subject: [PATCH 065/119] ASoC: Add support for HifiBerry DAC This adds a machine driver for the HifiBerry DAC. It is a sound card that can @@ -127539,10 +127553,10 @@ index 0000000000000000000000000000000000000000..29ecc08a227cdd4b3c6141935d0c5d21 +MODULE_DESCRIPTION("ASoC Driver for HifiBerry DAC"); +MODULE_LICENSE("GPL v2"); -From 6f6c153a71efcace4d50c009ff7103c6a872004c Mon Sep 17 00:00:00 2001 +From a9b4367962afa0dc8a09d11758e2c2de413f9e15 Mon Sep 17 00:00:00 2001 From: Florian Meier Date: Mon, 25 Jan 2016 15:48:59 +0000 -Subject: [PATCH 066/111] ASoC: Add support for Rpi-DAC +Subject: [PATCH 066/119] ASoC: Add support for Rpi-DAC --- sound/soc/bcm/Kconfig | 7 +++ @@ -127826,10 +127840,10 @@ index 0000000000000000000000000000000000000000..afe1b419582aa40c4b2729d242bb13cd +MODULE_AUTHOR("Florian Meier "); +MODULE_LICENSE("GPL v2"); -From b3591796ac8c05287e949d01fad785b9d2311e9c Mon Sep 17 00:00:00 2001 +From e9fb8467d1f8c182a3c2fcc2092f7166a6626ede Mon Sep 17 00:00:00 2001 From: Daniel Matuschek Date: Wed, 15 Jan 2014 21:41:23 +0100 -Subject: [PATCH 067/111] ASoC: wm8804: Implement MCLK configuration options, +Subject: [PATCH 067/119] ASoC: wm8804: Implement MCLK configuration options, add 32bit support WM8804 can run with PLL frequencies of 256xfs and 128xfs for most sample rates. At 192kHz only 128xfs is supported. The existing driver selects 128xfs automatically for some lower samples rates. By using an @@ -127878,10 +127892,10 @@ index 8d914702cae4a3fe2c0ca0599cd1ec79f7322c83..c846716b4ed1027ade5512e8be90801d .dapm_widgets = wm8804_dapm_widgets, .num_dapm_widgets = ARRAY_SIZE(wm8804_dapm_widgets), -From 8e7395e59afaa7f683db84c4737c9235917e0144 Mon Sep 17 00:00:00 2001 +From 79656ad7e01c9ed51f8b66ce45ec370e73c18a65 Mon Sep 17 00:00:00 2001 From: Daniel Matuschek Date: Wed, 15 Jan 2014 21:42:08 +0100 -Subject: [PATCH 068/111] ASoC: BCM:Add support for HiFiBerry Digi. Driver is +Subject: [PATCH 068/119] ASoC: BCM:Add support for HiFiBerry Digi. Driver is based on the patched WM8804 driver. Signed-off-by: Daniel Matuschek @@ -128169,10 +128183,10 @@ index 0000000000000000000000000000000000000000..9840e15d3e2be6396bc3ce6e74749408 +MODULE_DESCRIPTION("ASoC Driver for HifiBerry Digi"); +MODULE_LICENSE("GPL v2"); -From d8399bf3bd675104993779d1862d57fbbd31128a Mon Sep 17 00:00:00 2001 +From 22f66d64612f480e18c40432580c26c9b87b4e07 Mon Sep 17 00:00:00 2001 From: Gordon Garrity Date: Sat, 8 Mar 2014 16:56:57 +0000 -Subject: [PATCH 069/111] Add IQaudIO Sound Card support for Raspberry Pi +Subject: [PATCH 069/119] Add IQaudIO Sound Card support for Raspberry Pi Set a limit of 0dB on Digital Volume Control @@ -128502,10 +128516,37 @@ index 0000000000000000000000000000000000000000..4e8e6dec14bcf4a1ff286c43742d4097 +MODULE_DESCRIPTION("ASoC Driver for IQAudio DAC"); +MODULE_LICENSE("GPL v2"); -From e3b89bd7a255c275dd778e5f871304feb30986c1 Mon Sep 17 00:00:00 2001 +From 5fe905d5530a80cd548236e0d4d205f064756233 Mon Sep 17 00:00:00 2001 +From: popcornmix +Date: Mon, 25 Jul 2016 17:06:50 +0100 +Subject: [PATCH 070/119] iqaudio-dac: Compile fix - untested + +--- + sound/soc/bcm/iqaudio-dac.c | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/sound/soc/bcm/iqaudio-dac.c b/sound/soc/bcm/iqaudio-dac.c +index 4e8e6dec14bcf4a1ff286c43742d4097249d6777..aa15bc4b49ca95edec905fddd8fd0a6d839ca627 100644 +--- a/sound/soc/bcm/iqaudio-dac.c ++++ b/sound/soc/bcm/iqaudio-dac.c +@@ -76,7 +76,11 @@ static void snd_rpi_iqaudio_gpio_unmute(struct snd_soc_card *card) + static int snd_rpi_iqaudio_set_bias_level(struct snd_soc_card *card, + struct snd_soc_dapm_context *dapm, enum snd_soc_bias_level level) + { +- struct snd_soc_dai *codec_dai = card->rtd[0].codec_dai; ++ struct snd_soc_pcm_runtime *rtd; ++ struct snd_soc_dai *codec_dai; ++ ++ rtd = snd_soc_get_pcm_runtime(card, card->dai_link[0].name); ++ codec_dai = rtd->codec_dai; + + if (dapm->dev != codec_dai->dev) + return 0; + +From 951c89af714e4ab5c5d7b77d2de7f62599480274 Mon Sep 17 00:00:00 2001 From: Daniel Matuschek Date: Mon, 4 Aug 2014 10:06:56 +0200 -Subject: [PATCH 070/111] Added support for HiFiBerry DAC+ +Subject: [PATCH 071/119] Added support for HiFiBerry DAC+ The driver is based on the HiFiBerry DAC driver. However HiFiBerry DAC+ uses a different codec chip (PCM5122), therefore a new driver is necessary. @@ -129134,10 +129175,10 @@ index 047c48953a20cd4075000ac294a17fe59baedcde..090fe0ee08e8765f9edbb62777413bb6 dev_err(dev, "No LRCLK?\n"); return -EINVAL; -From 5d2e827ef45aeb4bad9c5881b213b093b4c35cd9 Mon Sep 17 00:00:00 2001 +From d0e800534e3c1cbfd6fd130cfa344643b2d33d41 Mon Sep 17 00:00:00 2001 From: Daniel Matuschek Date: Mon, 4 Aug 2014 11:09:58 +0200 -Subject: [PATCH 071/111] Added driver for HiFiBerry Amp amplifier add-on board +Subject: [PATCH 072/119] Added driver for HiFiBerry Amp amplifier add-on board The driver contains a low-level hardware driver for the TAS5713 and the drivers for the Raspberry Pi I2S subsystem. @@ -129969,10 +130010,207 @@ index 0000000000000000000000000000000000000000..8f019e04898754d2f87e9630137be9e8 + +#endif /* _TAS5713_H */ -From a071d287ae26904607ae671615e7d54e20eee74c Mon Sep 17 00:00:00 2001 +From 8dd563be7049a34ac038e20b9fe16878d8b0d045 Mon Sep 17 00:00:00 2001 +From: "Daniel Matuschek (HiFiBerry)" +Date: Tue, 26 Jul 2016 19:16:25 +0200 +Subject: [PATCH 073/119] Added HiFiBerry Digi+ Pro driver + +Signed-off-by: Daniel Matuschek +--- + arch/arm/boot/dts/overlays/Makefile | 1 + + arch/arm/boot/dts/overlays/README | 8 +++- + .../dts/overlays/hifiberry-digi-pro-overlay.dts | 41 +++++++++++++++++ + sound/soc/bcm/hifiberry_digi.c | 51 ++++++++++++++++++++++ + 4 files changed, 100 insertions(+), 1 deletion(-) + create mode 100644 arch/arm/boot/dts/overlays/hifiberry-digi-pro-overlay.dts + +diff --git a/arch/arm/boot/dts/overlays/Makefile b/arch/arm/boot/dts/overlays/Makefile +index 7e740c894436e8fd9ed9b451e5b1f7888806922f..d4f31b76931d693a09ced67ef8da900a884892ae 100644 +--- a/arch/arm/boot/dts/overlays/Makefile ++++ b/arch/arm/boot/dts/overlays/Makefile +@@ -31,6 +31,7 @@ dtbo-$(RPI_DT_OVERLAYS) += hifiberry-amp.dtbo + dtbo-$(RPI_DT_OVERLAYS) += hifiberry-dac.dtbo + dtbo-$(RPI_DT_OVERLAYS) += hifiberry-dacplus.dtbo + dtbo-$(RPI_DT_OVERLAYS) += hifiberry-digi.dtbo ++dtbo-$(RPI_DT_OVERLAYS) += hifiberry-digi-pro.dtbo + dtbo-$(RPI_DT_OVERLAYS) += hy28a.dtbo + dtbo-$(RPI_DT_OVERLAYS) += hy28b.dtbo + dtbo-$(RPI_DT_OVERLAYS) += i2c-gpio.dtbo +diff --git a/arch/arm/boot/dts/overlays/README b/arch/arm/boot/dts/overlays/README +index 780bf6dda5a6694cb312140329120fda3b0c2f61..57100ecd45721761546c443a3d6196d6e18879c6 100644 +--- a/arch/arm/boot/dts/overlays/README ++++ b/arch/arm/boot/dts/overlays/README +@@ -377,11 +377,17 @@ Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec + + + Name: hifiberry-digi +-Info: Configures the HifiBerry Digi audio card ++Info: Configures the HifiBerry Digi and Digi+ audio card + Load: dtoverlay=hifiberry-digi + Params: + + ++Name: hifiberry-digi-pro ++Info: Configures the HifiBerry Digi+ Pro audio card ++Load: dtoverlay=hifiberry-digi-pro ++Params: ++ ++ + Name: hy28a + Info: HY28A - 2.8" TFT LCD Display Module by HAOYU Electronics + Default values match Texy's display shield +diff --git a/arch/arm/boot/dts/overlays/hifiberry-digi-pro-overlay.dts b/arch/arm/boot/dts/overlays/hifiberry-digi-pro-overlay.dts +new file mode 100644 +index 0000000000000000000000000000000000000000..2a26d9cfffb0f3d7958eb3756ca7c4ba28400e1c +--- /dev/null ++++ b/arch/arm/boot/dts/overlays/hifiberry-digi-pro-overlay.dts +@@ -0,0 +1,41 @@ ++// Definitions for HiFiBerry Digi Pro ++/dts-v1/; ++/plugin/; ++ ++/ { ++ compatible = "brcm,bcm2708"; ++ ++ fragment@0 { ++ target = <&i2s>; ++ __overlay__ { ++ status = "okay"; ++ }; ++ }; ++ ++ fragment@1 { ++ target = <&i2c1>; ++ __overlay__ { ++ #address-cells = <1>; ++ #size-cells = <0>; ++ status = "okay"; ++ ++ wm8804@3b { ++ #sound-dai-cells = <0>; ++ compatible = "wlf,wm8804"; ++ reg = <0x3b>; ++ status = "okay"; ++ }; ++ }; ++ }; ++ ++ fragment@2 { ++ target = <&sound>; ++ __overlay__ { ++ compatible = "hifiberry,hifiberry-digi"; ++ i2s-controller = <&i2s>; ++ status = "okay"; ++ clock44-gpio = <&gpio 5 0>; ++ clock48-gpio = <&gpio 6 0>; ++ }; ++ }; ++}; +diff --git a/sound/soc/bcm/hifiberry_digi.c b/sound/soc/bcm/hifiberry_digi.c +index 9840e15d3e2be6396bc3ce6e74749408cc28c333..52ab9dea2e724c4238986ca53c59c8492f64e345 100644 +--- a/sound/soc/bcm/hifiberry_digi.c ++++ b/sound/soc/bcm/hifiberry_digi.c +@@ -23,6 +23,7 @@ + #include + #include + #include ++#include + + #include "../codecs/wm8804.h" + +@@ -30,9 +31,34 @@ static short int auto_shutdown_output = 0; + module_param(auto_shutdown_output, short, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP); + MODULE_PARM_DESC(auto_shutdown_output, "Shutdown SP/DIF output if playback is stopped"); + ++#define CLK_44EN_RATE 22579200UL ++#define CLK_48EN_RATE 24576000UL ++ ++static bool snd_rpi_hifiberry_is_digipro; ++static struct gpio_desc *snd_rpi_hifiberry_clk44gpio; ++static struct gpio_desc *snd_rpi_hifiberry_clk48gpio; + + static int samplerate=44100; + ++static uint32_t snd_rpi_hifiberry_digi_enable_clock(int sample_rate) ++{ ++ switch (sample_rate) { ++ case 11025: ++ case 22050: ++ case 44100: ++ case 88200: ++ case 176400: ++ gpiod_set_value_cansleep(snd_rpi_hifiberry_clk44gpio, 1); ++ gpiod_set_value_cansleep(snd_rpi_hifiberry_clk48gpio, 0); ++ return CLK_44EN_RATE; ++ default: ++ gpiod_set_value_cansleep(snd_rpi_hifiberry_clk48gpio, 1); ++ gpiod_set_value_cansleep(snd_rpi_hifiberry_clk44gpio, 0); ++ return CLK_48EN_RATE; ++ } ++} ++ ++ + static int snd_rpi_hifiberry_digi_init(struct snd_soc_pcm_runtime *rtd) + { + struct snd_soc_codec *codec = rtd->codec; +@@ -40,6 +66,14 @@ static int snd_rpi_hifiberry_digi_init(struct snd_soc_pcm_runtime *rtd) + /* enable TX output */ + snd_soc_update_bits(codec, WM8804_PWRDN, 0x4, 0x0); + ++ /* Initialize Digi+ Pro hardware */ ++ if (snd_rpi_hifiberry_is_digipro) { ++ struct snd_soc_dai_link *dai = rtd->dai_link; ++ ++ dai->name = "HiFiBerry Digi+ Pro"; ++ dai->stream_name = "HiFiBerry Digi+ Pro HiFi"; ++ } ++ + return 0; + } + +@@ -87,6 +121,9 @@ static int snd_rpi_hifiberry_digi_hw_params(struct snd_pcm_substream *substream, + mclk_freq=samplerate*128; + mclk_div=WM8804_MCLKDIV_128FS; + } ++ ++ if (snd_rpi_hifiberry_is_digipro) ++ sysclk = snd_rpi_hifiberry_digi_enable_clock(samplerate); + + switch (samplerate) { + case 32000: +@@ -121,6 +158,7 @@ static int snd_rpi_hifiberry_digi_hw_params(struct snd_pcm_substream *substream, + + ret = snd_soc_dai_set_sysclk(codec_dai, WM8804_TX_CLKSRC_PLL, + sysclk, SND_SOC_CLOCK_OUT); ++ + if (ret < 0) { + dev_err(codec->dev, + "Failed to set WM8804 SYSCLK: %d\n", ret); +@@ -187,6 +225,19 @@ static int snd_rpi_hifiberry_digi_probe(struct platform_device *pdev) + dai->platform_name = NULL; + dai->platform_of_node = i2s_node; + } ++ ++ snd_rpi_hifiberry_is_digipro = 1; ++ ++ snd_rpi_hifiberry_clk44gpio = ++ devm_gpiod_get(&pdev->dev, "clock44", GPIOD_OUT_LOW); ++ if (IS_ERR(snd_rpi_hifiberry_clk44gpio)) ++ snd_rpi_hifiberry_is_digipro = 0; ++ ++ snd_rpi_hifiberry_clk48gpio = ++ devm_gpiod_get(&pdev->dev, "clock48", GPIOD_OUT_LOW); ++ if (IS_ERR(snd_rpi_hifiberry_clk48gpio)) ++ snd_rpi_hifiberry_is_digipro = 0; ++ + } + + ret = snd_soc_register_card(&snd_rpi_hifiberry_digi); + +From 72820fee2ecf89e2f7a4ef82027c90b8f6b70037 Mon Sep 17 00:00:00 2001 From: Ryan Coe Date: Sat, 31 Jan 2015 18:25:49 -0700 -Subject: [PATCH 072/111] Update ds1307 driver for device-tree support +Subject: [PATCH 074/119] Update ds1307 driver for device-tree support Signed-off-by: Ryan Coe --- @@ -129999,10 +130237,10 @@ index 821d9c089cdb48a40a244d1c18ab912d6f0b9432..409ed8e449e54ea6751185b1c0760cfc .driver = { .name = "rtc-ds1307", -From c1c82394785fd988a7b800782009558c4464a316 Mon Sep 17 00:00:00 2001 +From 023ea30560a19eed47c4f805f9b9ea06b7ec3ff6 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 25 Mar 2015 09:26:17 +0100 -Subject: [PATCH 073/111] Add driver for rpi-proto +Subject: [PATCH 075/119] Add driver for rpi-proto Forward port of 3.10.x driver from https://github.com/koalo We are using a custom board and would like to use rpi 3.18.x @@ -130218,10 +130456,10 @@ index 0000000000000000000000000000000000000000..9db678e885efd63d84d60a098a84ed67 +MODULE_DESCRIPTION("ASoC Driver for Raspberry Pi connected to PROTO board (WM8731)"); +MODULE_LICENSE("GPL"); -From e7dd0527b17927b2e94d04e13edf24506f812e2e Mon Sep 17 00:00:00 2001 +From e2e8c864749a79c7642a30a9a79a539ad698c872 Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Mon, 24 Aug 2015 16:03:47 +0100 -Subject: [PATCH 074/111] RaspiDAC3 support +Subject: [PATCH 076/119] RaspiDAC3 support Signed-off-by: Jan Grulich @@ -130470,10 +130708,10 @@ index 0000000000000000000000000000000000000000..e7422e2dd3d70622a48ab3b2e1929869 +MODULE_DESCRIPTION("ASoC Driver for RaspiDAC Rev.3x"); +MODULE_LICENSE("GPL v2"); -From 3573e75f6f331207b9bd31a2ba536b7e109bc0c1 Mon Sep 17 00:00:00 2001 +From 811042dba5cb49d063d49654c80b039bae7dd7a6 Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Mon, 24 Aug 2015 16:02:34 +0100 -Subject: [PATCH 075/111] tpa6130a2: Add headphone switch control +Subject: [PATCH 077/119] tpa6130a2: Add headphone switch control Signed-off-by: Jan Grulich --- @@ -130564,10 +130802,10 @@ index 11d85c5c787addb8d8add7fc2b52ab91cc49b63d..3caaa17e28e91e995d6781ca7f88b747 /* -From 46c3097c1776e1fe84731643d691527a1cc856fa Mon Sep 17 00:00:00 2001 +From c16136f1fe865aefadbbe1d2900a8484ca2fb7fb Mon Sep 17 00:00:00 2001 From: Aaron Shaw Date: Thu, 7 Apr 2016 21:26:21 +0100 -Subject: [PATCH 076/111] Add Support for JustBoom Audio boards +Subject: [PATCH 078/119] Add Support for JustBoom Audio boards justboom-dac: Adjust for ALSA API change @@ -131021,10 +131259,10 @@ index 0000000000000000000000000000000000000000..91acb666380faa3c0deb2230f8a0f8bb +MODULE_DESCRIPTION("ASoC Driver for JustBoom PI Digi HAT Sound Card"); +MODULE_LICENSE("GPL v2"); -From a774bf62b65352d425d75c064ade27e67e4d51b0 Mon Sep 17 00:00:00 2001 +From 6c495e02ccebc9dd1d11f563f58a7d6dab5a693a Mon Sep 17 00:00:00 2001 From: Andrey Grodzovsky Date: Tue, 3 May 2016 22:10:59 -0400 -Subject: [PATCH 077/111] ARM: adau1977-adc: Add basic machine driver for +Subject: [PATCH 079/119] ARM: adau1977-adc: Add basic machine driver for adau1977 codec driver. This commit adds basic support for the codec usage including: Device tree overlay, @@ -131206,10 +131444,10 @@ index 0000000000000000000000000000000000000000..6e2ee027926ee63c89222f75ceb89e3d +MODULE_DESCRIPTION("ASoC Driver for ADAU1977 ADC"); +MODULE_LICENSE("GPL v2"); -From 50e698a0f5934beb1044d987d0fde684fc57583b Mon Sep 17 00:00:00 2001 +From 3d1b3ba90195ec409f82395661600ed1548e626d Mon Sep 17 00:00:00 2001 From: Matt Flax Date: Mon, 16 May 2016 21:36:31 +1000 -Subject: [PATCH 078/111] New AudioInjector.net Pi soundcard with low jitter +Subject: [PATCH 080/119] New AudioInjector.net Pi soundcard with low jitter audio in and out. Contains the sound/soc/bcm ALSA machine driver and necessary alterations to the Kconfig and Makefile. @@ -131458,10 +131696,10 @@ index 0000000000000000000000000000000000000000..5ff0985e07efb96b95634a65995f09f7 +MODULE_ALIAS("platform:audioinjector-pi-soundcard"); + -From 1f2eac04eced09d8ac3697b73155cc3db05c1a26 Mon Sep 17 00:00:00 2001 +From 1c2df2752dbf675b9335c96e91c89ab2adcac05f Mon Sep 17 00:00:00 2001 From: DigitalDreamtime Date: Thu, 30 Jun 2016 18:38:42 +0100 -Subject: [PATCH 079/111] Add IQAudIO Digi WM8804 board support +Subject: [PATCH 081/119] Add IQAudIO Digi WM8804 board support Support IQAudIO Digi board with iqaudio_digi machine driver and iqaudio-digi-wm8804-audio overlay. @@ -131761,10 +131999,10 @@ index 0000000000000000000000000000000000000000..9b6e829bcb5b1762a853775e78163196 +MODULE_DESCRIPTION("ASoC Driver for IQAudIO WM8804 Digi"); +MODULE_LICENSE("GPL v2"); -From 3163272227b6e87a808cbc2834b93bfa3ad03674 Mon Sep 17 00:00:00 2001 +From be6f601fc0467382088088a3a8856ab290921f42 Mon Sep 17 00:00:00 2001 From: escalator2015 Date: Tue, 24 May 2016 16:20:09 +0100 -Subject: [PATCH 080/111] New driver for RRA DigiDAC1 soundcard using WM8741 + +Subject: [PATCH 082/119] New driver for RRA DigiDAC1 soundcard using WM8741 + WM8804 --- @@ -132237,10 +132475,10 @@ index 0000000000000000000000000000000000000000..446796e7e4c14a7d95b2f2a01211d9a0 +MODULE_DESCRIPTION("ASoC Driver for RRA DigiDAC1"); +MODULE_LICENSE("GPL v2"); -From 9dc99dadefde0b3bb0140831fdda208c72f776c7 Mon Sep 17 00:00:00 2001 +From 321645738cac0f80ae22b26529d5886431e04dac Mon Sep 17 00:00:00 2001 From: DigitalDreamtime Date: Sat, 2 Jul 2016 16:26:19 +0100 -Subject: [PATCH 081/111] Add support for Dion Audio LOCO DAC-AMP HAT +Subject: [PATCH 083/119] Add support for Dion Audio LOCO DAC-AMP HAT Using dedicated machine driver and pcm5102a codec driver. @@ -132413,10 +132651,10 @@ index 0000000000000000000000000000000000000000..89e65317512bc774453ac8d0d5b0ff98 +MODULE_DESCRIPTION("ASoC Driver for DionAudio LOCO"); +MODULE_LICENSE("GPL v2"); -From c29ce2592d5e0975b06dffd115c738a8f7ca9be3 Mon Sep 17 00:00:00 2001 +From 2b9ffb0beec1a4b18eda671163e68887cee537d7 Mon Sep 17 00:00:00 2001 From: Matt Flax Date: Fri, 17 Jun 2016 14:48:16 +1000 -Subject: [PATCH 082/111] ASoc: wm8731: add 32bit mode. +Subject: [PATCH 084/119] ASoc: wm8731: add 32bit mode. commit cf5ef3a299ba32f6ac24c3c6ba18c1b7f1b5475f upstream. @@ -132455,10 +132693,10 @@ index 4bcf5f8ece50f3681948a9fbc47b85400d9a8b51..d18261a442560cd2c108c34295bd5b17 static const struct snd_soc_dai_ops wm8731_dai_ops = { .startup = wm8731_startup, -From 9b3d81c6b2b35518fc918d777b8b78677cb1658a Mon Sep 17 00:00:00 2001 +From b60575dbbfb801c4c10f60fbbc969fa0b1ae54c2 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 1 Jun 2016 15:40:58 +0100 -Subject: [PATCH 083/111] Revert "ASoC: bcm2835: Add S16_LE support via packed +Subject: [PATCH 085/119] Revert "ASoC: bcm2835: Add S16_LE support via packed DMA transfers" This reverts commit beff053c0ef6983897e3481169292e6435ef0a2d. @@ -132487,10 +132725,10 @@ index 6ba20498202ed36906b52096893a88867a79269f..a0026e2d2f0afd700751b1b4fa252358 dev->bclk_ratio = 0; -From 9031c85c4614817d9356a6e58e50e98c030f5727 Mon Sep 17 00:00:00 2001 +From 71c559c6050f641d310d771da0e0c5955bd2ddc4 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 1 Jun 2016 15:41:01 +0100 -Subject: [PATCH 084/111] Revert "ASoC: bcm2835: setup clock only if CPU is +Subject: [PATCH 086/119] Revert "ASoC: bcm2835: setup clock only if CPU is clock master" This reverts commit 60507fe191f524e82986fa737e5b27b4d3ad9289. @@ -132521,10 +132759,10 @@ index a0026e2d2f0afd700751b1b4fa2523585829173e..d2663e79ece1a2b649377e4a89460aa5 /* Setup the frame format */ format = BCM2835_I2S_CHEN; -From 49d7323355837c4cffd22aa242a8b5d50a2b47e6 Mon Sep 17 00:00:00 2001 +From 2cdbbbacfd4f75bcd57e6b7884e9727d7a1d8e2c Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 1 Jun 2016 15:41:03 +0100 -Subject: [PATCH 085/111] Revert "ASoC: bcm2835: add 24bit support" +Subject: [PATCH 087/119] Revert "ASoC: bcm2835: add 24bit support" This reverts commit a34b027dca5ea840fbc84121db66488375acfdea. --- @@ -132571,10 +132809,10 @@ index d2663e79ece1a2b649377e4a89460aa5a6d150b5..1c1f2210387b26e9551959378f6792f1 }, .ops = &bcm2835_i2s_dai_ops, -From 426600f81c84eb9581de55c5c364e402b744d627 Mon Sep 17 00:00:00 2001 +From 38170c7455fe28858e500124bc82e9647291c907 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 1 Jun 2016 15:41:09 +0100 -Subject: [PATCH 086/111] Revert "ASoC: bcm2835: move to use the clock +Subject: [PATCH 088/119] Revert "ASoC: bcm2835: move to use the clock framework" This reverts commit 517e7a1537ae4663268be5d0c0ec62c563b9fc99. @@ -132997,10 +133235,10 @@ index 1c1f2210387b26e9551959378f6792f18648652e..3303d5f58082f68b68b535b2bdf7ce8d /* Set the bus width */ dev->dma_data[SNDRV_PCM_STREAM_PLAYBACK].addr_width = -From 6177fc8dc11d1e50040c306c0171b7c42bde4bbf Mon Sep 17 00:00:00 2001 +From 9c1654cd3d53621b50ff62b0fe21e42f111246d2 Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Sun, 11 Oct 2015 16:44:05 +0200 -Subject: [PATCH 087/111] bcm2835-i2s: get base address for DMA from devicetree +Subject: [PATCH 089/119] bcm2835-i2s: get base address for DMA from devicetree Code copied from spi-bcm2835. Get physical address from devicetree instead of using hardcoded constant. @@ -133065,10 +133303,10 @@ index 3303d5f58082f68b68b535b2bdf7ce8d14cafcc4..0f25db4cd198c0a511e8a205b0cb2be6 /* Set the bus width */ dev->dma_data[SNDRV_PCM_STREAM_PLAYBACK].addr_width = -From e985f4747dd5ff6f91e500c50c2de8a9457f583d Mon Sep 17 00:00:00 2001 +From def571fa6c3dc0c46f0bc630696abcb8d928997e Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Sun, 11 Oct 2015 15:21:16 +0200 -Subject: [PATCH 088/111] bcm2835-i2s: add 24bit support, update bclk_ratio to +Subject: [PATCH 090/119] bcm2835-i2s: add 24bit support, update bclk_ratio to more correct values Code ported from bcm2708-i2s driver in Raspberry Pi tree. @@ -133147,10 +133385,10 @@ index 0f25db4cd198c0a511e8a205b0cb2be62ba94adf..0f35d7c0f4026bb50a7223461b907b97 }, .ops = &bcm2835_i2s_dai_ops, -From ab780704d0a48a2d76dcfaca85e980fd0e3f4adc Mon Sep 17 00:00:00 2001 +From c80c24f5107b6d4489edc67e7908612ecb713038 Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Sun, 11 Oct 2015 15:25:51 +0200 -Subject: [PATCH 089/111] bcm2835-i2s: setup clock only if CPU is clock master +Subject: [PATCH 091/119] bcm2835-i2s: setup clock only if CPU is clock master Code ported from bcm2708-i2s driver in Raspberry Pi tree. @@ -133205,10 +133443,10 @@ index 0f35d7c0f4026bb50a7223461b907b9797bd9a05..d5e412302811ed8b007fc53f0aa2b5dd /* Setup the frame format */ format = BCM2835_I2S_CHEN; -From dd3eeab4f8eea34bceb8b247fb502e86f4f20fdb Mon Sep 17 00:00:00 2001 +From 4274dd24fee0d47cf65592584beffd04370a2945 Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Sun, 11 Oct 2015 15:49:51 +0200 -Subject: [PATCH 090/111] bcm2835-i2s: Eliminate debugfs directory error +Subject: [PATCH 092/119] bcm2835-i2s: Eliminate debugfs directory error Code ported from bcm2708-i2s driver in Raspberry Pi tree. @@ -133244,10 +133482,10 @@ index d5e412302811ed8b007fc53f0aa2b5ddd12774b6..2d29050e739b0af02d0f5122d18178b6 }; -From e59331ce7f065c28e1a50831c8546a96deb5d05d Mon Sep 17 00:00:00 2001 +From 6ecdfdf4adacd4fe80fa448e9e2be6512b628428 Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Sun, 11 Oct 2015 15:35:20 +0200 -Subject: [PATCH 091/111] bcm2835-i2s: Register PCM device +Subject: [PATCH 093/119] bcm2835-i2s: Register PCM device Code ported from bcm2708-i2s driver in Raspberry Pi tree. @@ -133310,10 +133548,10 @@ index 2d29050e739b0af02d0f5122d18178b61c024bea..ce93ef0579ab142c788736f0d309c926 dev_err(&pdev->dev, "Could not register PCM: %d\n", ret); return ret; -From 0eec3739078dcf418f6804e3df7012f8c87618dd Mon Sep 17 00:00:00 2001 +From d5213772ae47d7ca423e9a16aa34624f1ec77fda Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Sun, 11 Oct 2015 15:55:21 +0200 -Subject: [PATCH 092/111] bcm2835-i2s: Enable MMAP support via a DT property +Subject: [PATCH 094/119] bcm2835-i2s: Enable MMAP support via a DT property Code ported from bcm2708-i2s driver in Raspberry Pi tree. @@ -133357,10 +133595,10 @@ index ce93ef0579ab142c788736f0d309c92636b8983d..6f60c2cebb412524bb0e30d0339fe556 for (i = 0; i <= 1; i++) { void __iomem *base; -From 5213ee508a24ff0c66e142ffe1fc5a000630dd0e Mon Sep 17 00:00:00 2001 +From 71a9af52e8b8ebb7f3eb2bb48d715cc3da47d80e Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Thu, 21 Apr 2016 15:44:14 +0100 -Subject: [PATCH 093/111] bcm2835-i2s: Reduce the TX DREQ threshold +Subject: [PATCH 095/119] bcm2835-i2s: Reduce the TX DREQ threshold TX FIFO overrun is thought to be the cause of channel swapping, so reducing the DREQ threshold seems reasonable and appears to be @@ -133408,10 +133646,10 @@ index 6f60c2cebb412524bb0e30d0339fe556680e8637..b26f9587dec01d62606df3f47b3ef00c /* Clear FIFOs */ bcm2835_i2s_clear_fifos(dev, true, true); -From 1653c95a0b5cd0bc5e215e74472b1d46cc55735c Mon Sep 17 00:00:00 2001 +From c2da3f61c8bcd26088c49ccc64da5fd09b9225fb Mon Sep 17 00:00:00 2001 From: P33M Date: Wed, 21 Oct 2015 14:55:21 +0100 -Subject: [PATCH 094/111] rpi_display: add backlight driver and overlay +Subject: [PATCH 096/119] rpi_display: add backlight driver and overlay Add a mailbox-driven backlight controller for the Raspberry Pi DSI touchscreen display. Requires updated GPU firmware to recognise the @@ -133580,10 +133818,10 @@ index 0000000000000000000000000000000000000000..14a0d9b037395497c1fdae2961feccd5 +MODULE_DESCRIPTION("Raspberry Pi mailbox based Backlight Driver"); +MODULE_LICENSE("GPL"); -From 81774f735f07a2f7d11977c9fab867ed9911df18 Mon Sep 17 00:00:00 2001 +From a6b20426b48edbef48f39d0d7aeb7cf05e4c8546 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Tue, 23 Feb 2016 19:56:04 +0000 -Subject: [PATCH 095/111] bcm2835-virtgpio: Virtual GPIO driver +Subject: [PATCH 097/119] bcm2835-virtgpio: Virtual GPIO driver Add a virtual GPIO driver that uses the firmware mailbox interface to request that the VPU toggles LEDs. @@ -133809,10 +134047,10 @@ index 0000000000000000000000000000000000000000..f3e0f1620b979e4fa3c7e556eb785ac2 +MODULE_DESCRIPTION("brcmvirt GPIO driver"); +MODULE_ALIAS("platform:brcmvirt-gpio"); -From 064af96e705f3ff93567cac0465bf928bf33ae41 Mon Sep 17 00:00:00 2001 +From 06a331fcab9977b8975daca74240f95f353e8ad3 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Fri, 4 Mar 2016 12:49:09 +0000 -Subject: [PATCH 096/111] DRM_VC4: Allow to be built for ARCH_BCM270x +Subject: [PATCH 098/119] DRM_VC4: Allow to be built for ARCH_BCM270x --- drivers/gpu/drm/vc4/Kconfig | 2 +- @@ -133831,10 +134069,10 @@ index e53df59cb139f25f8e6ae916bca93abf0c49e063..f6e938208b73512f20eab46a383ca91b select DRM_KMS_HELPER select DRM_KMS_CMA_HELPER -From 4b2c5bb334b191e1aa5b7b96c298e743c3e3cf37 Mon Sep 17 00:00:00 2001 +From 7bb919f581dce128a6fcd28da141aa413e427919 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Tue, 23 Feb 2016 17:26:48 +0000 -Subject: [PATCH 097/111] amba_pl011: Don't use DT aliases for numbering +Subject: [PATCH 099/119] amba_pl011: Don't use DT aliases for numbering The pl011 driver looks for DT aliases of the form "serial", and if found uses as the device ID. This can cause @@ -133863,10 +134101,10 @@ index 1b7331e40d795e1ec5482d6a82871bd5ce050b60..a04d27ef682792808301ac2d2bfb67d5 uap->old_cr = 0; uap->port.dev = dev; -From 082aed07db3aa644e700e6356da328303db9bba2 Mon Sep 17 00:00:00 2001 +From d6484eb31ca7b0298fce4f0ed2a0278e08a94d82 Mon Sep 17 00:00:00 2001 From: Pantelis Antoniou Date: Wed, 3 Dec 2014 13:23:28 +0200 -Subject: [PATCH 098/111] OF: DT-Overlay configfs interface +Subject: [PATCH 100/119] OF: DT-Overlay configfs interface This is a port of Pantelis Antoniou's v3 port that makes use of the new upstreamed configfs support for binary attributes. @@ -134298,10 +134536,10 @@ index 0000000000000000000000000000000000000000..0037e6868a6cda8706c88194c6a4454b +} +late_initcall(of_cfs_init); -From 68e731d04d752b18a9ea4390ad44877db907a15e Mon Sep 17 00:00:00 2001 +From 5c8c09bd604f05bb436f7358360c0aecc48c2143 Mon Sep 17 00:00:00 2001 From: Cheong2K Date: Fri, 26 Feb 2016 18:20:10 +0800 -Subject: [PATCH 099/111] brcm: adds support for BCM43341 wifi +Subject: [PATCH 101/119] brcm: adds support for BCM43341 wifi --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c | 2 ++ @@ -134341,10 +134579,10 @@ index 699f2c2782ee9d898a25c95e0c5d45744d0777ff..15598b3687a213d8c00d45965a6b9351 #define BRCM_CC_4335_CHIP_ID 0x4335 #define BRCM_CC_4339_CHIP_ID 0x4339 -From f73574193c7e04c75ce884a9846af4ebbda4fa6f Mon Sep 17 00:00:00 2001 +From a88ce4432297fbdc7314529e5638b949f8ca7688 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 9 Mar 2016 17:25:59 +0000 -Subject: [PATCH 100/111] brcmfmac: Disable power management +Subject: [PATCH 102/119] brcmfmac: Disable power management Disable wireless power saving in the brcmfmac WLAN driver. This is a temporary measure until the connectivity loss resulting from power @@ -134369,10 +134607,10 @@ index 62f475e31077ca1fa1df15863f02ee0911c46997..d001128266f462beee5f9672c64ed2c0 if (!check_vif_up(ifp->vif)) { -From 089cba52a9de814bc56c71d41d4e8bc8a3b6d54e Mon Sep 17 00:00:00 2001 +From 69772f124d1cb0d31de04c768dc779f2f8b118d6 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Thu, 28 Apr 2016 17:13:47 +0100 -Subject: [PATCH 101/111] brcmfmac: Use original country code as a fallback +Subject: [PATCH 103/119] brcmfmac: Use original country code as a fallback Commit 73345fd212980d2e28a5c6d83801c903bd773680: @@ -134431,10 +134669,10 @@ index d001128266f462beee5f9672c64ed2c0d9200334..90eb79cc104427597046f2459e6f46de ccreq->country_abbrev[1] = alpha2[1]; ccreq->country_abbrev[2] = 0; -From 3a98d12b8d4ca8989dfb0ef12bd866251b5bc592 Mon Sep 17 00:00:00 2001 +From c81a9772926ffe219c9ddb80ed38bd50c2e850aa Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Thu, 19 May 2016 15:36:09 +0100 -Subject: [PATCH 102/111] brcmfmac: Plug memory leak in brcmf_fill_bss_param +Subject: [PATCH 104/119] brcmfmac: Plug memory leak in brcmf_fill_bss_param See: https://github.com/raspberrypi/linux/issues/1471 @@ -134467,10 +134705,10 @@ index 90eb79cc104427597046f2459e6f46de09702784..27a59a9f7b9c108e728bdc7fc8d95139 static s32 -From 7162955f6e9b7b838a3bf8bbe681f819024cecd7 Mon Sep 17 00:00:00 2001 +From 678e4a71084b991fca8366eda27c572c133e0e0c Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Thu, 17 Dec 2015 13:37:07 +0000 -Subject: [PATCH 103/111] hci_h5: Don't send conf_req when ACTIVE +Subject: [PATCH 105/119] hci_h5: Don't send conf_req when ACTIVE Without this patch, a modem and kernel can continuously bombard each other with conf_req and conf_rsp messages, in a demented game of tag. @@ -134493,10 +134731,10 @@ index 0879d64b1caf58afb6e5d494c07d9ab7e7cdf983..5161ab30fd533d50f516bb93d5b9f402 if (H5_HDR_LEN(hdr) > 2) h5->tx_win = (data[2] & 0x07); -From 081af7570d4772f38c75f3ecb6b851a0615b8c61 Mon Sep 17 00:00:00 2001 +From 070f632477a257c5732b1e2d3239ffbb8a8fd072 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 22 Jan 2016 13:06:39 -0800 -Subject: [PATCH 104/111] drm/vc4: Add a debugfs node for tracking execution +Subject: [PATCH 106/119] drm/vc4: Add a debugfs node for tracking execution state. Signed-off-by: Eric Anholt @@ -134556,10 +134794,10 @@ index 46899d6de6753c28c7ca6c721119a28d72792148..cbb1bc0b0db88f1c83ce3a630b2efe67 vc4_queue_hangcheck(struct drm_device *dev) { -From 27166f5ae197a2c23959a7eff08adc65f64588ee Mon Sep 17 00:00:00 2001 +From 280b96889f2a3892b44f4f03f56c0a229693a724 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 25 Jan 2016 13:03:33 -0800 -Subject: [PATCH 105/111] drm/vc4: Include vc4_drm.h in uapi in downstream +Subject: [PATCH 107/119] drm/vc4: Include vc4_drm.h in uapi in downstream build. Signed-off-by: Eric Anholt @@ -134580,10 +134818,10 @@ index 9355dd8eff3ba39401dfe37e7fbf7737f0397f11..68828bf586f05a8d9b0a6ab409ee91a7 header-y += vmwgfx_drm.h header-y += msm_drm.h -From 6546a741d421620b3f6ceaa3d205bc44f2664f31 Mon Sep 17 00:00:00 2001 +From 54527e3981e953cc84e6e11bf99a18a8070c52c3 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 30 Mar 2016 17:23:15 +0100 -Subject: [PATCH 106/111] cpufreq: Temporarily ignore io_is_busy=1 +Subject: [PATCH 108/119] cpufreq: Temporarily ignore io_is_busy=1 To speed testing of the new sdhost driver that adapts to changes in core_freq, hack the on-demand governor to treat io_is_busy=1 as @@ -134614,10 +134852,10 @@ index 300163430516766d56b842d8d12dc33175eee66b..9ab7b40005cb7ddfafc3917dc874eea8 /* we need to re-evaluate prev_cpu_idle */ gov_update_cpu_data(dbs_data); -From b3b6562bdf13284b9a7d129bed5400853735dd0e Mon Sep 17 00:00:00 2001 +From c48aa30fc6858f37f1bf43538fbea1d9ca102f56 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 14 Oct 2015 11:32:14 -0700 -Subject: [PATCH 107/111] drm/vc4: Force HDMI to connected. +Subject: [PATCH 109/119] drm/vc4: Force HDMI to connected. For some reason on the downstream tree, the HPD GPIO isn't working. @@ -134640,10 +134878,10 @@ index fd2644d231ff867a4409840eba7f8234a4a1faba..ed9c5274d06a215331aee44da1f7214a if (gpio_get_value_cansleep(vc4->hdmi->hpd_gpio) ^ vc4->hdmi->hpd_active_low) -From 2ab2541de11bd82a0f0a2e33c1da98cfba1cc268 Mon Sep 17 00:00:00 2001 +From f6366a4c9cf5245af1f8c10d9c19ad287bb1bf02 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 19 Apr 2016 15:55:02 -0700 -Subject: [PATCH 108/111] ARM: bcm2708: Enable building power domain driver. +Subject: [PATCH 110/119] ARM: bcm2708: Enable building power domain driver. Signed-off-by: Eric Anholt --- @@ -134663,10 +134901,10 @@ index 3066edea184d765a670ded0cead470597654abc1..e23518142ceac6651641cc30c327d60d select PM_GENERIC_DOMAINS if PM select PM_GENERIC_DOMAINS_OF if PM -From 65dc3c63bb358171b0cff73177a563b2d5b22059 Mon Sep 17 00:00:00 2001 +From 00541946c0141e5eff08499e6560dbbf8b6bcc7c Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 15 Jun 2016 16:48:41 +0100 -Subject: [PATCH 109/111] rtc: Add SPI alias for pcf2123 driver +Subject: [PATCH 111/119] rtc: Add SPI alias for pcf2123 driver Without this alias, Device Tree won't cause the driver to be loaded. @@ -134686,10 +134924,10 @@ index f22e060709e547528b29b747f796b45c445d23fa..76b7bd7d9d33a0dcefcdb5fe3e0df4de MODULE_LICENSE("GPL"); +MODULE_ALIAS("spi:rtc-pcf2123"); -From fd34a5c7e7d87ead50d299aea015bd7483d88a7c Mon Sep 17 00:00:00 2001 +From 510b1c017049ea1d1b27ddef1d2243b4afd48f3e Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 1 Jul 2016 22:09:24 +0100 -Subject: [PATCH 110/111] spi-bcm2835: Disable forced software CS +Subject: [PATCH 112/119] spi-bcm2835: Disable forced software CS Select software CS in bcm2708_common.dtsi, and disable the automatic conversion in the driver to allow hardware CS to be re-enabled with an @@ -134723,29 +134961,444 @@ index 5dfe20ffc2866fa6789825016c585175a29705b6..8493474d286f7a1ac6454a22c61c8c2c return 0; } -From 3758f08ddbd97dd81fad915d20b11aa9e48bd769 Mon Sep 17 00:00:00 2001 +From df1eaf37c912a78982c325ff6d1726edc112fe05 Mon Sep 17 00:00:00 2001 From: popcornmix -Date: Mon, 25 Jul 2016 17:06:50 +0100 -Subject: [PATCH 111/111] iqaudio-dac: Compile fix - untested +Date: Thu, 28 Jul 2016 11:39:51 +0100 +Subject: [PATCH 113/119] config: Enable CONFIG_USER_NS --- - sound/soc/bcm/iqaudio-dac.c | 6 +++++- - 1 file changed, 5 insertions(+), 1 deletion(-) + arch/arm/configs/bcm2709_defconfig | 2 +- + arch/arm/configs/bcmrpi_defconfig | 1 + + 2 files changed, 2 insertions(+), 1 deletion(-) -diff --git a/sound/soc/bcm/iqaudio-dac.c b/sound/soc/bcm/iqaudio-dac.c -index 4e8e6dec14bcf4a1ff286c43742d4097249d6777..aa15bc4b49ca95edec905fddd8fd0a6d839ca627 100644 ---- a/sound/soc/bcm/iqaudio-dac.c -+++ b/sound/soc/bcm/iqaudio-dac.c -@@ -76,7 +76,11 @@ static void snd_rpi_iqaudio_gpio_unmute(struct snd_soc_card *card) - static int snd_rpi_iqaudio_set_bias_level(struct snd_soc_card *card, - struct snd_soc_dapm_context *dapm, enum snd_soc_bias_level level) - { -- struct snd_soc_dai *codec_dai = card->rtd[0].codec_dai; -+ struct snd_soc_pcm_runtime *rtd; -+ struct snd_soc_dai *codec_dai; -+ -+ rtd = snd_soc_get_pcm_runtime(card, card->dai_link[0].name); -+ codec_dai = rtd->codec_dai; +diff --git a/arch/arm/configs/bcm2709_defconfig b/arch/arm/configs/bcm2709_defconfig +index af34386096ebc5b3c7d7cf60120e5ad48ba635b8..ed0b455b49f9efff4be980d8bdd59df4f5ee0639 100644 +--- a/arch/arm/configs/bcm2709_defconfig ++++ b/arch/arm/configs/bcm2709_defconfig +@@ -22,6 +22,7 @@ CONFIG_CPUSETS=y + CONFIG_CGROUP_DEVICE=y + CONFIG_CGROUP_CPUACCT=y + CONFIG_NAMESPACES=y ++CONFIG_USER_NS=y + CONFIG_SCHED_AUTOGROUP=y + CONFIG_BLK_DEV_INITRD=y + CONFIG_EMBEDDED=y +@@ -586,7 +587,6 @@ CONFIG_BRCM_CHAR_DRIVERS=y + CONFIG_BCM_VC_CMA=y + CONFIG_BCM_VCIO=y + CONFIG_BCM_VC_SM=y +-CONFIG_DEVPTS_MULTIPLE_INSTANCES=y + # CONFIG_LEGACY_PTYS is not set + # CONFIG_DEVKMEM is not set + CONFIG_SERIAL_8250=y +diff --git a/arch/arm/configs/bcmrpi_defconfig b/arch/arm/configs/bcmrpi_defconfig +index da2df3d30e15a55a34b45d3ebbf98e906da6379c..6c885f0518d0c015357a6fea1438841db344cc46 100644 +--- a/arch/arm/configs/bcmrpi_defconfig ++++ b/arch/arm/configs/bcmrpi_defconfig +@@ -21,6 +21,7 @@ CONFIG_CPUSETS=y + CONFIG_CGROUP_DEVICE=y + CONFIG_CGROUP_CPUACCT=y + CONFIG_NAMESPACES=y ++CONFIG_USER_NS=y + CONFIG_SCHED_AUTOGROUP=y + CONFIG_BLK_DEV_INITRD=y + CONFIG_EMBEDDED=y + +From 6f5c348828f93b34955442c7dea5e9aacf2d1e96 Mon Sep 17 00:00:00 2001 +From: popcornmix +Date: Tue, 9 Aug 2016 22:19:28 +0100 +Subject: [PATCH 114/119] smsc95xx: Experimental: Enable turbo_mode and + packetsize=2560 by default + +See: http://forum.kodi.tv/showthread.php?tid=285288 +--- + drivers/net/usb/smsc95xx.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c +index d22a2324085fbf61fbd8920362bfc7b9f72bebe3..c846c55075387398d9bcb0957e31f5c82fd7d58d 100644 +--- a/drivers/net/usb/smsc95xx.c ++++ b/drivers/net/usb/smsc95xx.c +@@ -77,7 +77,7 @@ struct smsc95xx_priv { + struct usbnet *dev; + }; - if (dapm->dev != codec_dai->dev) - return 0; +-static bool turbo_mode = false; ++static bool turbo_mode = true; + module_param(turbo_mode, bool, 0644); + MODULE_PARM_DESC(turbo_mode, "Enable multiple frames per Rx transaction"); + +@@ -85,7 +85,7 @@ static bool truesize_mode = false; + module_param(truesize_mode, bool, 0644); + MODULE_PARM_DESC(truesize_mode, "Report larger truesize value"); + +-static int packetsize = 0; ++static int packetsize = 2560; + module_param(packetsize, int, 0644); + MODULE_PARM_DESC(packetsize, "Override the RX URB packet size"); + + +From b249cb38f2fe1ef603f8aec92ac3196803a894ce Mon Sep 17 00:00:00 2001 +From: popcornmix +Date: Fri, 12 Aug 2016 13:21:32 +0100 +Subject: [PATCH 115/119] smsc95xx: squash: Bump to packetsize=4096 + +--- + drivers/net/usb/smsc95xx.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c +index c846c55075387398d9bcb0957e31f5c82fd7d58d..e663cd24653411e502deb28d0ea9b8280223a008 100644 +--- a/drivers/net/usb/smsc95xx.c ++++ b/drivers/net/usb/smsc95xx.c +@@ -85,7 +85,7 @@ static bool truesize_mode = false; + module_param(truesize_mode, bool, 0644); + MODULE_PARM_DESC(truesize_mode, "Report larger truesize value"); + +-static int packetsize = 2560; ++static int packetsize = 4096; + module_param(packetsize, int, 0644); + MODULE_PARM_DESC(packetsize, "Override the RX URB packet size"); + + +From 9e1e5a251e0acb18522805009b51acc1cbd0c047 Mon Sep 17 00:00:00 2001 +From: James Adams +Date: Fri, 12 Aug 2016 14:35:00 +0100 +Subject: [PATCH 116/119] Add cm3 dts file + +--- + arch/arm/boot/dts/Makefile | 1 + + arch/arm/boot/dts/bcm2710-rpi-cm3.dts | 176 ++++++++++++++++++++++++++++++++++ + 2 files changed, 177 insertions(+) + create mode 100644 arch/arm/boot/dts/bcm2710-rpi-cm3.dts + +diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile +index 93f2529ccbdfedb4b4e54898abf44911b47d2656..1bebcca8565b04fbf8ff2c276646525c3ddd25ad 100644 +--- a/arch/arm/boot/dts/Makefile ++++ b/arch/arm/boot/dts/Makefile +@@ -6,6 +6,7 @@ dtb-$(CONFIG_ARCH_BCM2708) += bcm2708-rpi-cm.dtb + dtb-$(CONFIG_ARCH_BCM2835) += bcm2835-rpi-cm.dtb + dtb-$(CONFIG_ARCH_BCM2709) += bcm2709-rpi-2-b.dtb + dtb-$(CONFIG_ARCH_BCM2709) += bcm2710-rpi-3-b.dtb ++dtb-$(CONFIG_ARCH_BCM2709) += bcm2710-rpi-cm3.dtb + + # Raspberry Pi + ifeq ($(CONFIG_ARCH_BCM2708),y) +diff --git a/arch/arm/boot/dts/bcm2710-rpi-cm3.dts b/arch/arm/boot/dts/bcm2710-rpi-cm3.dts +new file mode 100644 +index 0000000000000000000000000000000000000000..6a3d2f21295a63e9211638b9e4ba202753c8181b +--- /dev/null ++++ b/arch/arm/boot/dts/bcm2710-rpi-cm3.dts +@@ -0,0 +1,176 @@ ++/dts-v1/; ++ ++#include "bcm2710.dtsi" ++ ++/ { ++ compatible = "brcm,bcm2710","brcm,bcm2709"; ++ model = "Raspberry Pi Compute Module 3"; ++}; ++ ++&gpio { ++ ++ mmc_pins: mmc_pins { ++ brcm,pins = <48 49 50 51 52 53>; ++ brcm,function = <7>; /* alt3 */ ++ brcm,pull = <0 2 2 2 2 2>; ++ }; ++ ++ spi0_pins: spi0_pins { ++ brcm,pins = <9 10 11>; ++ brcm,function = <4>; /* alt0 */ ++ }; ++ ++ spi0_cs_pins: spi0_cs_pins { ++ brcm,pins = <8 7>; ++ brcm,function = <1>; /* output */ ++ }; ++ ++ i2c0_pins: i2c0 { ++ brcm,pins = <0 1>; ++ brcm,function = <4>; ++ }; ++ ++ i2c1_pins: i2c1 { ++ brcm,pins = <2 3>; ++ brcm,function = <4>; ++ }; ++ ++ i2s_pins: i2s { ++ brcm,pins = <18 19 20 21>; ++ brcm,function = <4>; /* alt0 */ ++ }; ++ ++ uart0_pins: uart0_pins { ++ brcm,pins; ++ brcm,function; ++ brcm,pull = <0 2>; ++ }; ++ ++ audio_pins: audio_pins { ++ brcm,pins; ++ brcm,function; ++ }; ++}; ++ ++&mmc { ++ pinctrl-names = "default"; ++ pinctrl-0 = <&mmc_pins>; ++ non-removable; ++ bus-width = <4>; ++ status = "okay"; ++ brcm,overclock-50 = <0>; ++}; ++ ++&soc { ++ virtgpio: virtgpio { ++ compatible = "brcm,bcm2835-virtgpio"; ++ gpio-controller; ++ #gpio-cells = <2>; ++ firmware = <&firmware>; ++ status = "okay"; ++ }; ++}; ++ ++&fb { ++ status = "okay"; ++}; ++ ++&uart0 { ++ pinctrl-names = "default"; ++ pinctrl-0 = <&uart0_pins>; ++ status = "okay"; ++}; ++ ++&spi0 { ++ pinctrl-names = "default"; ++ pinctrl-0 = <&spi0_pins &spi0_cs_pins>; ++ cs-gpios = <&gpio 8 1>, <&gpio 7 1>; ++ ++ spidev0: spidev@0{ ++ compatible = "spidev"; ++ reg = <0>; /* CE0 */ ++ #address-cells = <1>; ++ #size-cells = <0>; ++ spi-max-frequency = <500000>; ++ }; ++ ++ spidev1: spidev@1{ ++ compatible = "spidev"; ++ reg = <1>; /* CE1 */ ++ #address-cells = <1>; ++ #size-cells = <0>; ++ spi-max-frequency = <500000>; ++ }; ++}; ++ ++&i2c0 { ++ pinctrl-names = "default"; ++ pinctrl-0 = <&i2c0_pins>; ++ clock-frequency = <100000>; ++}; ++ ++&i2c1 { ++ pinctrl-names = "default"; ++ pinctrl-0 = <&i2c1_pins>; ++ clock-frequency = <100000>; ++}; ++ ++&i2c2 { ++ clock-frequency = <100000>; ++}; ++ ++&i2s { ++ #sound-dai-cells = <0>; ++ pinctrl-names = "default"; ++ pinctrl-0 = <&i2s_pins>; ++}; ++ ++&random { ++ status = "okay"; ++}; ++ ++&leds { ++ act_led: act { ++ label = "led0"; ++ linux,default-trigger = "mmc0"; ++ gpios = <&virtgpio 0 0>; ++ }; ++}; ++ ++&hdmi { ++ hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>; ++}; ++ ++&audio { ++ pinctrl-names = "default"; ++ pinctrl-0 = <&audio_pins>; ++}; ++ ++/ { ++ __overrides__ { ++ uart0 = <&uart0>,"status"; ++ uart0_clkrate = <&clk_uart0>,"clock-frequency:0"; ++ uart1 = <&uart1>,"status"; ++ i2s = <&i2s>,"status"; ++ spi = <&spi0>,"status"; ++ i2c0 = <&i2c0>,"status"; ++ i2c1 = <&i2c1>,"status"; ++ i2c2_iknowwhatimdoing = <&i2c2>,"status"; ++ i2c0_baudrate = <&i2c0>,"clock-frequency:0"; ++ i2c1_baudrate = <&i2c1>,"clock-frequency:0"; ++ i2c2_baudrate = <&i2c2>,"clock-frequency:0"; ++ core_freq = <&clk_core>,"clock-frequency:0"; ++ ++ act_led_gpio = <&act_led>,"gpios:4"; ++ act_led_activelow = <&act_led>,"gpios:8"; ++ act_led_trigger = <&act_led>,"linux,default-trigger"; ++ ++ audio = <&audio>,"status"; ++ watchdog = <&watchdog>,"status"; ++ random = <&random>,"status"; ++ sd_overclock = <&sdhost>,"brcm,overclock-50:0"; ++ sd_force_pio = <&sdhost>,"brcm,force-pio?"; ++ sd_pio_limit = <&sdhost>,"brcm,pio-limit:0"; ++ sd_debug = <&sdhost>,"brcm,debug"; ++ }; ++}; + +From 5dd4fc9c7d2c31973201e48b108fd9c00b9c4820 Mon Sep 17 00:00:00 2001 +From: popcornmix +Date: Fri, 12 Aug 2016 17:12:32 +0100 +Subject: [PATCH 117/119] config: Enable SENSORS_LM75 + +--- + arch/arm/configs/bcm2709_defconfig | 1 + + arch/arm/configs/bcmrpi_defconfig | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/arch/arm/configs/bcm2709_defconfig b/arch/arm/configs/bcm2709_defconfig +index ed0b455b49f9efff4be980d8bdd59df4f5ee0639..a55d3e3eb96a59ac9e8ec760f7cec65c12fb08a3 100644 +--- a/arch/arm/configs/bcm2709_defconfig ++++ b/arch/arm/configs/bcm2709_defconfig +@@ -640,6 +640,7 @@ CONFIG_BATTERY_DS2760=m + CONFIG_POWER_RESET=y + CONFIG_POWER_RESET_GPIO=y + CONFIG_HWMON=m ++CONFIG_SENSORS_LM75=m + CONFIG_SENSORS_SHT21=m + CONFIG_SENSORS_SHTC1=m + CONFIG_THERMAL=y +diff --git a/arch/arm/configs/bcmrpi_defconfig b/arch/arm/configs/bcmrpi_defconfig +index 6c885f0518d0c015357a6fea1438841db344cc46..7f02ad070f3f71c289a5e3d19f5eb68253efc8fe 100644 +--- a/arch/arm/configs/bcmrpi_defconfig ++++ b/arch/arm/configs/bcmrpi_defconfig +@@ -631,6 +631,7 @@ CONFIG_BATTERY_DS2760=m + CONFIG_POWER_RESET=y + CONFIG_POWER_RESET_GPIO=y + CONFIG_HWMON=m ++CONFIG_SENSORS_LM75=m + CONFIG_SENSORS_SHT21=m + CONFIG_SENSORS_SHTC1=m + CONFIG_THERMAL=y + +From 7c6676878e09288ad1aa958fff54f56624fef8f2 Mon Sep 17 00:00:00 2001 +From: popcornmix +Date: Fri, 12 Aug 2016 17:00:18 +0100 +Subject: [PATCH 118/119] config: Enable SERIAL_SC16IS7XX + +--- + arch/arm/configs/bcm2709_defconfig | 1 + + arch/arm/configs/bcmrpi_defconfig | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/arch/arm/configs/bcm2709_defconfig b/arch/arm/configs/bcm2709_defconfig +index a55d3e3eb96a59ac9e8ec760f7cec65c12fb08a3..e85cf56113b432221816008fcf8453ae57f6933b 100644 +--- a/arch/arm/configs/bcm2709_defconfig ++++ b/arch/arm/configs/bcm2709_defconfig +@@ -598,6 +598,7 @@ CONFIG_SERIAL_8250_RUNTIME_UARTS=0 + CONFIG_SERIAL_OF_PLATFORM=y + CONFIG_SERIAL_AMBA_PL011=y + CONFIG_SERIAL_AMBA_PL011_CONSOLE=y ++CONFIG_SERIAL_SC16IS7XX=m + CONFIG_TTY_PRINTK=y + CONFIG_HW_RANDOM=y + CONFIG_RAW_DRIVER=y +diff --git a/arch/arm/configs/bcmrpi_defconfig b/arch/arm/configs/bcmrpi_defconfig +index 7f02ad070f3f71c289a5e3d19f5eb68253efc8fe..4b50842b84daf91adb553be669737a71f6837dc8 100644 +--- a/arch/arm/configs/bcmrpi_defconfig ++++ b/arch/arm/configs/bcmrpi_defconfig +@@ -590,6 +590,7 @@ CONFIG_SERIAL_8250_RUNTIME_UARTS=0 + CONFIG_SERIAL_OF_PLATFORM=y + CONFIG_SERIAL_AMBA_PL011=y + CONFIG_SERIAL_AMBA_PL011_CONSOLE=y ++CONFIG_SERIAL_SC16IS7XX=m + CONFIG_TTY_PRINTK=y + CONFIG_HW_RANDOM=y + CONFIG_RAW_DRIVER=y + +From 628768a57451cad9149b6794b8ab83da65e1ea1a Mon Sep 17 00:00:00 2001 +From: popcornmix +Date: Fri, 12 Aug 2016 15:46:21 +0100 +Subject: [PATCH 119/119] snd-bcm2835: Don't allow responses from VC to be + interrupted by user signals + +There should always be a response, and retry after a signal interruption is not handled, so don't report +we are interruptible. + +See: https://github.com/raspberrypi/linux/issues/1560 +--- + sound/arm/bcm2835-vchiq.c | 25 ++++++------------------- + 1 file changed, 6 insertions(+), 19 deletions(-) + +diff --git a/sound/arm/bcm2835-vchiq.c b/sound/arm/bcm2835-vchiq.c +index 3de30945d8155b90d244734881a7caa81930fa7c..7ee436ca9fa2903d41d1bdd8f8f0774025d22ae0 100755 +--- a/sound/arm/bcm2835-vchiq.c ++++ b/sound/arm/bcm2835-vchiq.c +@@ -511,12 +511,7 @@ static int bcm2835_audio_set_ctls_chan(bcm2835_alsa_stream_t * alsa_stream, + } + + /* We are expecting a reply from the videocore */ +- ret = wait_for_completion_interruptible(&instance->msg_avail_comp); +- if (ret) { +- LOG_DBG("%s: failed on waiting for event (status=%d)\n", +- __func__, success); +- goto unlock; +- } ++ wait_for_completion(&instance->msg_avail_comp); + + if (instance->result != 0) { + LOG_ERR("%s: result=%d\n", __func__, instance->result); +@@ -615,12 +610,7 @@ int bcm2835_audio_set_params(bcm2835_alsa_stream_t * alsa_stream, + } + + /* We are expecting a reply from the videocore */ +- ret = wait_for_completion_interruptible(&instance->msg_avail_comp); +- if (ret) { +- LOG_DBG("%s: failed on waiting for event (status=%d)\n", +- __func__, success); +- goto unlock; +- } ++ wait_for_completion(&instance->msg_avail_comp); + + if (instance->result != 0) { + LOG_ERR("%s: result=%d", __func__, instance->result); +@@ -761,14 +751,11 @@ int bcm2835_audio_close(bcm2835_alsa_stream_t * alsa_stream) + goto unlock; + } + +- ret = wait_for_completion_interruptible(&instance->msg_avail_comp); +- if (ret) { +- LOG_DBG("%s: failed on waiting for event (status=%d)\n", +- __func__, success); +- goto unlock; +- } ++ /* We are expecting a reply from the videocore */ ++ wait_for_completion(&instance->msg_avail_comp); ++ + if (instance->result != 0) { +- LOG_ERR("%s: failed result (status=%d)\n", ++ LOG_ERR("%s: failed result (result=%d)\n", + __func__, instance->result); + + ret = -1; diff --git a/projects/RPi2/linux/linux.arm.conf b/projects/RPi2/linux/linux.arm.conf index 27c89dfb24..ccf1a8a082 100644 --- a/projects/RPi2/linux/linux.arm.conf +++ b/projects/RPi2/linux/linux.arm.conf @@ -519,15 +519,15 @@ CONFIG_CPU_FREQ_GOV_COMMON=y # CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set -CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y +# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set -# CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL is not set +CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL=y CONFIG_CPU_FREQ_GOV_PERFORMANCE=y CONFIG_CPU_FREQ_GOV_POWERSAVE=y # CONFIG_CPU_FREQ_GOV_USERSPACE is not set CONFIG_CPU_FREQ_GOV_ONDEMAND=y # CONFIG_CPU_FREQ_GOV_CONSERVATIVE is not set -# CONFIG_CPU_FREQ_GOV_SCHEDUTIL is not set +CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y # # CPU frequency scaling drivers diff --git a/projects/RPi2/patches/linux/linux-01-RPi_support.patch b/projects/RPi2/patches/linux/linux-01-RPi_support.patch index 1320cee050..97146135f0 100644 --- a/projects/RPi2/patches/linux/linux-01-RPi_support.patch +++ b/projects/RPi2/patches/linux/linux-01-RPi_support.patch @@ -1,7 +1,7 @@ -From 8e8a77fa775396b9d07c4c1706bafd847ac85015 Mon Sep 17 00:00:00 2001 +From b3a991b03f20c70e2a9b9578596a5d3d74e2ed7c Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 27 Apr 2016 17:43:28 +0100 -Subject: [PATCH 001/111] Revert "SUNRPC: Make NFS swap work with multipath" +Subject: [PATCH 001/119] Revert "SUNRPC: Make NFS swap work with multipath" This reverts commit 15001e5a7e1e207b6bd258cd8f187814cd15b6dc. --- @@ -95,10 +95,10 @@ index 2808d550d2730ff8e36b6d8c072c65e1631064c4..b362c2f099941c1f3388507983ffbdd1 EXPORT_SYMBOL_GPL(rpc_clnt_swap_deactivate); #endif /* CONFIG_SUNRPC_SWAP */ -From d826431779f00b7a0b267c720155e3fb70c9cd57 Mon Sep 17 00:00:00 2001 +From cef4817e002053fa71beaa23ee75a03b1084e217 Mon Sep 17 00:00:00 2001 From: Steve Glendinning Date: Thu, 19 Feb 2015 18:47:12 +0000 -Subject: [PATCH 002/111] smsx95xx: fix crimes against truesize +Subject: [PATCH 002/119] smsx95xx: fix crimes against truesize smsc95xx is adjusting truesize when it shouldn't, and following a recent patch from Eric this is now triggering warnings. @@ -145,10 +145,10 @@ index dc989a8b5afbd62b07cd65a2fa5edde67d3cc5fb..116680e3089f16e1e3e9113a3b93e62c usbnet_skb_return(dev, ax_skb); } -From 46327b51faeab20854b57bc999cbdca10e5e1e56 Mon Sep 17 00:00:00 2001 +From 037225865f0c5833f249ea1217347d0399741441 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Fri, 17 Apr 2015 16:58:45 +0100 -Subject: [PATCH 003/111] smsc95xx: Disable turbo mode by default +Subject: [PATCH 003/119] smsc95xx: Disable turbo mode by default --- drivers/net/usb/smsc95xx.c | 2 +- @@ -168,10 +168,10 @@ index 116680e3089f16e1e3e9113a3b93e62cb78cc1bb..aa4cb43dcd9ba83b042332bc15a4dce6 MODULE_PARM_DESC(turbo_mode, "Enable multiple frames per Rx transaction"); -From acd55c74830d7bdaa13469b8363c6a607e1fc346 Mon Sep 17 00:00:00 2001 +From 091c8b1d376a7fd69788110b6069b65599e7e323 Mon Sep 17 00:00:00 2001 From: Sam Nazarko Date: Fri, 1 Apr 2016 17:27:21 +0100 -Subject: [PATCH 004/111] add smsc95xx packetsize module_param +Subject: [PATCH 004/119] add smsc95xx packetsize module_param Signed-off-by: Sam Nazarko --- @@ -213,10 +213,10 @@ index aa4cb43dcd9ba83b042332bc15a4dce68affce28..889bdabd9dea6cebccc361aa4ac569d7 netif_dbg(dev, ifup, dev->net, "rx_urb_size=%ld\n", -From bd24d215fb9ec317bf643f453a3965560baf4ace Mon Sep 17 00:00:00 2001 +From d0308a38ad9fb4fad9ed78c4df262b6359a65e81 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Tue, 26 Mar 2013 17:26:38 +0000 -Subject: [PATCH 005/111] Allow mac address to be set in smsc95xx +Subject: [PATCH 005/119] Allow mac address to be set in smsc95xx Signed-off-by: popcornmix --- @@ -312,10 +312,10 @@ index 889bdabd9dea6cebccc361aa4ac569d73681396b..d22a2324085fbf61fbd8920362bfc7b9 eth_hw_addr_random(dev->net); netif_dbg(dev, ifup, dev->net, "MAC address set to eth_random_addr\n"); -From e92d422ece30aa23fb14842d9debb6c2358002fc Mon Sep 17 00:00:00 2001 +From 241f4bafbfc3fcddb427fde34b4cc3186f0007cf Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 9 Mar 2016 13:28:24 +0000 -Subject: [PATCH 006/111] serial: Take care starting a hung-up tty's port +Subject: [PATCH 006/119] serial: Take care starting a hung-up tty's port tty_port_hangup sets a port's tty field to NULL (holding the port lock), but uart_tx_stopped, called from __uart_start (with the port lock), @@ -343,10 +343,10 @@ index a3d7c0d4a03e75016023184a5fea18c91d9d8dbc..d61b4167a03205f917448d0bd71a84d0 return 0; } -From f3a47d492c05724f55956258fc0111a5917659b5 Mon Sep 17 00:00:00 2001 +From 196a0d2433fd13ec9295838d8ad95f42b534f8d5 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 18 Jun 2014 13:42:01 +0100 -Subject: [PATCH 007/111] vmstat: Workaround for issue where dirty page count +Subject: [PATCH 007/119] vmstat: Workaround for issue where dirty page count goes negative See: @@ -373,10 +373,10 @@ index d2da8e053210041bfcefb9e04b59d195880d2d0e..e3258dc35371ee6e528dc02ffc705570 static inline void __inc_zone_page_state(struct page *page, -From e0a17406d94df8d5c79751f5e133120a7a59511f Mon Sep 17 00:00:00 2001 +From 185e4131131c921380bae165eebe91e61970d964 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 13 Mar 2015 12:43:36 +0000 -Subject: [PATCH 008/111] Protect __release_resource against resources without +Subject: [PATCH 008/119] Protect __release_resource against resources without parents Without this patch, removing a device tree overlay can crash here. @@ -404,10 +404,10 @@ index 9b5f04404152c296af3a96132f27cfc80ffa9af9..f8a9af6e6b915812be2ba2c1c2b40106 for (;;) { tmp = *p; -From f0cb6129d9a6fcb4bbc8ffddb25061635dda863d Mon Sep 17 00:00:00 2001 +From 77af8947810ce49be1483f4bfd1d2896bbb4bdf1 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 18 Dec 2014 16:07:15 -0800 -Subject: [PATCH 009/111] mm: Remove the PFN busy warning +Subject: [PATCH 009/119] mm: Remove the PFN busy warning See commit dae803e165a11bc88ca8dbc07a11077caf97bbcb -- the warning is expected sometimes when using CMA. However, that commit still spams @@ -432,10 +432,10 @@ index 8b3e1341b7544608cac4777a37bbd424432488e1..9dba743762508ea1cced150388afa38f goto done; } -From 1d470f1c2c4269e41a6d00ac6ea1ecbed4691c46 Mon Sep 17 00:00:00 2001 +From b2a790401ac6156038c376d4258b15f91c5f562e Mon Sep 17 00:00:00 2001 From: Robert Tiemann Date: Mon, 20 Jul 2015 11:01:25 +0200 -Subject: [PATCH 010/111] BCM2835_DT: Fix I2S register map +Subject: [PATCH 010/119] BCM2835_DT: Fix I2S register map --- Documentation/devicetree/bindings/dma/brcm,bcm2835-dma.txt | 4 ++-- @@ -473,10 +473,10 @@ index 65783de0aedf3da79adc36fd077b7a89954ddb6b..a89fe4220fdc3f26f75ee66daf187554 dmas = <&dma 2>, <&dma 3>; -From bb8fde2aa103107b1a523b5dc06ac82157baeed3 Mon Sep 17 00:00:00 2001 +From 5ba4658f4f37ab946cb7ef37508e49f210e1c8c2 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 4 Dec 2015 17:41:50 +0000 -Subject: [PATCH 011/111] irq-bcm2836: Prevent spurious interrupts, and trap +Subject: [PATCH 011/119] irq-bcm2836: Prevent spurious interrupts, and trap them early The old arch-specific IRQ macros included a dsb to ensure the @@ -503,10 +503,10 @@ index 72ff1d5c5de67058f4ef22bb233c41b7c737d6e3..de3b3a37a63d00cc82ae4725b2fe8584 #endif } else if (stat) { -From bb1085ea18c518c017e8a2d816eb717901ca6a26 Mon Sep 17 00:00:00 2001 +From 8e1f6bd19cbcdcdfc1281586503de7edfc6e4a8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 12 Jun 2015 19:01:05 +0200 -Subject: [PATCH 012/111] irqchip: bcm2835: Add FIQ support +Subject: [PATCH 012/119] irqchip: bcm2835: Add FIQ support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -635,10 +635,10 @@ index bf9cc5f2e839e845fe1ce65caa672b6212d3ffbc..3f601f98aa884b941fbb84edb349f6c4 } -From b63ae9dd6cb1f890f4e0b68ef441cb39f3dc6016 Mon Sep 17 00:00:00 2001 +From 320832a9ca9f41c77fd7c11ae87be6e03211b416 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 23 Oct 2015 16:26:55 +0200 -Subject: [PATCH 013/111] irqchip: irq-bcm2835: Add 2836 FIQ support +Subject: [PATCH 013/119] irqchip: irq-bcm2835: Add 2836 FIQ support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -734,10 +734,10 @@ index 3f601f98aa884b941fbb84edb349f6c469b940b1..20deb282286834b1f234a65e614b8584 for (b = 0; b < NR_BANKS; b++) { for (i = 0; i < bank_irqs[b]; i++) { -From d71ea2d5db8b7d9b36665cbe94b1e309353479f8 Mon Sep 17 00:00:00 2001 +From 8776ee14f1397ae851a8c86bbadb08494323a13d Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Tue, 14 Jul 2015 10:26:09 +0100 -Subject: [PATCH 014/111] spidev: Add "spidev" compatible string to silence +Subject: [PATCH 014/119] spidev: Add "spidev" compatible string to silence warning See: https://github.com/raspberrypi/linux/issues/1054 @@ -758,10 +758,10 @@ index e3c19f30f591115a823467033702ff1b232c5ebc..f4963e3c1dbcd13edb9b97e9dad65438 }; MODULE_DEVICE_TABLE(of, spidev_dt_ids); -From 141208db234695caa842b45a89581fa2e08c3f78 Mon Sep 17 00:00:00 2001 +From 82b90b0b4a357f44e02b57656c2acf678ac69f14 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Tue, 30 Jun 2015 14:12:42 +0100 -Subject: [PATCH 015/111] serial: 8250: Don't crash when nr_uarts is 0 +Subject: [PATCH 015/119] serial: 8250: Don't crash when nr_uarts is 0 --- drivers/tty/serial/8250/8250_core.c | 2 ++ @@ -781,10 +781,10 @@ index 0fbd7c033a251e7d0cb214ed2bbd1ad1f19f0a76..00fc96497968c826978465957454ad73 for (i = 0; i < nr_uarts; i++) { struct uart_8250_port *up = &serial8250_ports[i]; -From e80e467e8d44ae69a48b29aa85ec0aecccad634b Mon Sep 17 00:00:00 2001 +From 7eaaa312509254cd8e57c45688c97e8abf8f4e67 Mon Sep 17 00:00:00 2001 From: notro Date: Thu, 10 Jul 2014 13:59:47 +0200 -Subject: [PATCH 016/111] pinctrl-bcm2835: Set base to 0 give expected gpio +Subject: [PATCH 016/119] pinctrl-bcm2835: Set base to 0 give expected gpio numbering Signed-off-by: Noralf Tronnes @@ -806,10 +806,10 @@ index fa77165fab2c1348163979da507df17e7168c49b..d11e2e4ea189466e686d762cb6c6fef9 .can_sleep = false, }; -From 26ec4fa6201b9cfceb3b99fefb9093df018f7400 Mon Sep 17 00:00:00 2001 +From c501d4dc7b5902d3ce5aa7fbd84a945700687283 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Tue, 24 Feb 2015 13:40:50 +0000 -Subject: [PATCH 017/111] pinctrl-bcm2835: Fix interrupt handling for GPIOs +Subject: [PATCH 017/119] pinctrl-bcm2835: Fix interrupt handling for GPIOs 28-31 and 46-53 Contrary to the documentation, the BCM2835 GPIO controller actually has @@ -955,10 +955,10 @@ index d11e2e4ea189466e686d762cb6c6fef9111ecf8e..107ad7d58de8f8a7f55e09c9cdcf7d66 }, }; -From c9eec3c71a1447f4fb118e7b1a1853fd5f38d2a6 Mon Sep 17 00:00:00 2001 +From 46f13e55afadcc5d65377293cb0980e6644bf1a7 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Thu, 26 Feb 2015 09:58:22 +0000 -Subject: [PATCH 018/111] pinctrl-bcm2835: Only request the interrupts listed +Subject: [PATCH 018/119] pinctrl-bcm2835: Only request the interrupts listed in the DTB Although the GPIO controller can generate three interrupts (four counting @@ -985,10 +985,10 @@ index 107ad7d58de8f8a7f55e09c9cdcf7d66fa7ab66b..644bdecbcfcb79d3b84a33769265fca5 pc->irq_data[i].irqgroup = i; -From 61a07603237cf3093679b3c319fc6d0bc54e874b Mon Sep 17 00:00:00 2001 +From ca462b28f55c3f42de0f025760c49aae7379c4f7 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 6 May 2016 12:32:47 +0100 -Subject: [PATCH 019/111] pinctrl-bcm2835: Return pins to inputs when freed +Subject: [PATCH 019/119] pinctrl-bcm2835: Return pins to inputs when freed When dynamically unloading overlays, it is important that freed pins are restored to being inputs to prevent functions from being enabled in @@ -1029,10 +1029,10 @@ index 644bdecbcfcb79d3b84a33769265fca5d3d0c9e5..81a66cba2ab0f7e3ae179de7edd10122 .get_function_name = bcm2835_pmx_get_function_name, .get_function_groups = bcm2835_pmx_get_function_groups, -From bbf333328d9bca204d88968d9781a46450baddf5 Mon Sep 17 00:00:00 2001 +From d7a6f46b6efdb24d9e13bf53c4101f784fb0d000 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 24 Jun 2015 14:10:44 +0100 -Subject: [PATCH 020/111] spi-bcm2835: Support pin groups other than 7-11 +Subject: [PATCH 020/119] spi-bcm2835: Support pin groups other than 7-11 The spi-bcm2835 driver automatically uses GPIO chip-selects due to some unreliability of the native ones. In doing so it chooses the @@ -1113,10 +1113,10 @@ index f35cc10772f6670397ea923ad30158270dd68578..5dfe20ffc2866fa6789825016c585175 /* and set up the "mode" and level */ dev_info(&spi->dev, "setting up native-CS%i as GPIO %i\n", -From a3538941a4ea2b1cce170ad969b43b66bbba8477 Mon Sep 17 00:00:00 2001 +From 31c6e8f53d830408409252a79578a15e482feea3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Wed, 3 Jun 2015 12:26:13 +0200 -Subject: [PATCH 021/111] ARM: bcm2835: Set Serial number and Revision +Subject: [PATCH 021/119] ARM: bcm2835: Set Serial number and Revision MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -1174,10 +1174,10 @@ index 834d67684e205a185971c13ebc6620434eeac788..3b68a8d3501a5dcb1b4790c35d921cf5 static const char * const bcm2835_compat[] = { -From 28e89502361a69361bb3c3132d9bfac45ed04719 Mon Sep 17 00:00:00 2001 +From f12d50eb750065f06af1aff912190fea17628367 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Sat, 3 Oct 2015 22:22:55 +0200 -Subject: [PATCH 022/111] dmaengine: bcm2835: Load driver early and support +Subject: [PATCH 022/119] dmaengine: bcm2835: Load driver early and support legacy API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 @@ -1280,10 +1280,10 @@ index 6149b27c33ad0962a19ed411055d9d05bfb252d3..43265b2847d37b3ee8f71b7528eebea1 MODULE_ALIAS("platform:bcm2835-dma"); MODULE_DESCRIPTION("BCM2835 DMA engine driver"); -From 0afec8b4eb4cb530d0c7f1dfd01592ce11768032 Mon Sep 17 00:00:00 2001 +From d902933fe3953262146692161168dd3d182da06d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Sat, 15 Aug 2015 20:50:02 +0200 -Subject: [PATCH 023/111] bcm2835: Add support for uart1 +Subject: [PATCH 023/119] bcm2835: Add support for uart1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -1340,10 +1340,10 @@ index 3b68a8d3501a5dcb1b4790c35d921cf5fa641ec7..e72e522fbc840c36a39cb6550850b3c6 static const char * const bcm2835_compat[] = { -From 185ef418f969b40b109156015b7fc4f85a36ca46 Mon Sep 17 00:00:00 2001 +From f87575697a12af31a6cdeb7346a4f34ced919311 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Mon, 25 Jan 2016 17:25:12 +0000 -Subject: [PATCH 024/111] firmware: Updated mailbox header +Subject: [PATCH 024/119] firmware: Updated mailbox header --- include/soc/bcm2835/raspberrypi-firmware.h | 11 +++++++++++ @@ -1406,10 +1406,10 @@ index 3fb357193f09914fe21f8555a4b8613f74f22bc3..227a107214a02deadcca3db202da265e RPI_FIRMWARE_GET_COMMAND_LINE = 0x00050001, RPI_FIRMWARE_GET_DMA_CHANNELS = 0x00060001, -From 959d644104238b058ba73ce17324ec64c9feb912 Mon Sep 17 00:00:00 2001 +From 830082c887e90076ea528cdb206798e8bbfd866e Mon Sep 17 00:00:00 2001 From: popcornmix Date: Sun, 12 May 2013 12:24:19 +0100 -Subject: [PATCH 025/111] Main bcm2708/bcm2709 linux port +Subject: [PATCH 025/119] Main bcm2708/bcm2709 linux port MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -3919,10 +3919,10 @@ index 45cde8cd39f2434f5f9ec02c702a91a7f6b971c9..6a01ffa629386bdecf85e5a4736f7c27 mmc_pm_flag_t pm_caps; /* supported pm features */ -From bc4a3b0949122d757a7bb93cf9bc2181af7777a9 Mon Sep 17 00:00:00 2001 +From 20230801c659dbaa835fcc5871b7f7a76743cc5e Mon Sep 17 00:00:00 2001 From: popcornmix Date: Tue, 5 Apr 2016 19:40:12 +0100 -Subject: [PATCH 026/111] reboot: Use power off rather than busy spinning when +Subject: [PATCH 026/119] reboot: Use power off rather than busy spinning when halt is requested --- @@ -3945,10 +3945,10 @@ index 3fa867a2aae672755c6ce6448f4148c989dbf964..80dca8dcd6709034b643c6a3f35729e0 /* -From 122b8acb7c8d60b790ef4665ae12b7f336316c68 Mon Sep 17 00:00:00 2001 +From 1dfdeeaa718e08b61647d39d7cf73c8878ad8aea Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 11 Nov 2015 21:01:15 +0000 -Subject: [PATCH 027/111] squash: include ARCH_BCM2708 / ARCH_BCM2709 +Subject: [PATCH 027/119] squash: include ARCH_BCM2708 / ARCH_BCM2709 --- drivers/char/hw_random/Kconfig | 2 +- @@ -4125,10 +4125,10 @@ index 6a834e109f1de47e533d17e87cdc73d8ee86fc4d..c5070aec5996aafb2d9daaf75163e16a select REGMAP_MMIO help -From 6f0fb5187200ef480efe629d0c758662df204f07 Mon Sep 17 00:00:00 2001 +From 71e43c8655cf530d29be6ac1158d1c89053aa53e Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 1 May 2013 19:46:17 +0100 -Subject: [PATCH 028/111] Add dwc_otg driver +Subject: [PATCH 028/119] Add dwc_otg driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -65154,10 +65154,10 @@ index 0000000000000000000000000000000000000000..cdc9963176e5a4a0d5250613b61e26c5 +test_main(); +0; -From c2cb17374b4e4c68ff926fe79c52d6338b93f74d Mon Sep 17 00:00:00 2001 +From 1f1b5fbbeb7d47cb559829ce2ecc64dea3cadc40 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 17 Jun 2015 17:06:34 +0100 -Subject: [PATCH 029/111] bcm2708 framebuffer driver +Subject: [PATCH 029/119] bcm2708 framebuffer driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -65277,7 +65277,7 @@ index f6731867dd26dfc4318799e5204cd583a5d27670..ee3b3496cee43899cd6b0037f6f22ec1 obj-$(CONFIG_FB_CLPS711X) += clps711x-fb.o diff --git a/drivers/video/fbdev/bcm2708_fb.c b/drivers/video/fbdev/bcm2708_fb.c new file mode 100644 -index 0000000000000000000000000000000000000000..cae5aab6848d1c6e82993f8b809dc937babeba30 +index 0000000000000000000000000000000000000000..37f60813fe1dd95d9f5f725c07ec2e75c09857bf --- /dev/null +++ b/drivers/video/fbdev/bcm2708_fb.c @@ -0,0 +1,844 @@ @@ -65334,7 +65334,7 @@ index 0000000000000000000000000000000000000000..cae5aab6848d1c6e82993f8b809dc937 + +static int fbwidth = 800; /* module parameter */ +static int fbheight = 480; /* module parameter */ -+static int fbdepth = 16; /* module parameter */ ++static int fbdepth = 32; /* module parameter */ +static int fbswap = 0; /* module parameter */ + +static u32 dma_busy_wait_threshold = 1<<15; @@ -68616,10 +68616,10 @@ index 3c14e43b82fefe1d32f591d1b2f61d2cd28d0fa8..7626beb6a5bb8df601ddf0f6e6909d1f +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 -From b3848db30147e758d2d0f82c5dcfee8f567f0d82 Mon Sep 17 00:00:00 2001 +From e3a46851101da511663fb8c1e9ace64400fb1c5a Mon Sep 17 00:00:00 2001 From: Florian Meier Date: Fri, 22 Nov 2013 14:22:53 +0100 -Subject: [PATCH 030/111] dmaengine: Add support for BCM2708 +Subject: [PATCH 030/119] dmaengine: Add support for BCM2708 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -69239,10 +69239,10 @@ index 0000000000000000000000000000000000000000..99cc7fdbf543207208bf3638a0d4dbb6 + +#endif /* _PLAT_BCM2708_DMA_H */ -From a81ac3cfae61fc6b814594d419702a2808a731e6 Mon Sep 17 00:00:00 2001 +From 2eb0c07a4c0a2b5a3dcb47e8b2e2771faac17a11 Mon Sep 17 00:00:00 2001 From: gellert Date: Fri, 15 Aug 2014 16:35:06 +0100 -Subject: [PATCH 031/111] MMC: added alternative MMC driver +Subject: [PATCH 031/119] MMC: added alternative MMC driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -70989,10 +70989,10 @@ index 0000000000000000000000000000000000000000..ceb37930e167f47c9c848e8de757ad09 +MODULE_LICENSE("GPL v2"); +MODULE_AUTHOR("Gellert Weisz"); -From ea4f732925a77e0c50915b345312cbce996201b8 Mon Sep 17 00:00:00 2001 +From d03a7264ec92e4f59ff25dbb70fe755969411f51 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 25 Mar 2015 17:49:47 +0000 -Subject: [PATCH 032/111] Adding bcm2835-sdhost driver, and an overlay to +Subject: [PATCH 032/119] Adding bcm2835-sdhost driver, and an overlay to enable it BCM2835 has two SD card interfaces. This driver uses the other one. @@ -73372,10 +73372,10 @@ index 0000000000000000000000000000000000000000..d7b6b5a4e31f7aaa76470d3a79ea78a6 +MODULE_LICENSE("GPL v2"); +MODULE_AUTHOR("Phil Elwell"); -From 324d21e6e89ecb598e332f431fffb01464462c6d Mon Sep 17 00:00:00 2001 +From c7c7f6442e1a041ff0449fd00716fae3681d6790 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 11 May 2016 12:50:33 +0100 -Subject: [PATCH 033/111] mmc: Add MMC_QUIRK_ERASE_BROKEN for some cards +Subject: [PATCH 033/119] mmc: Add MMC_QUIRK_ERASE_BROKEN for some cards Some SD cards have been found that corrupt data when small blocks are erased. Add a quirk to indicate that ERASE should not be used, @@ -73511,10 +73511,10 @@ index eb0151bac50c1fd796f479d017bc3c3d7017c9e9..fa4e6454456747f02a10621f4f4da3ac unsigned int erase_shift; /* if erase unit is power 2 */ unsigned int pref_erase; /* in sectors */ -From b7a07a2134d0240e10a33263740f2b37e8ee1a92 Mon Sep 17 00:00:00 2001 +From 059916f5d9b5f01c9a530c6a78aa3ab25dd03acf Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 3 Jul 2013 00:31:47 +0100 -Subject: [PATCH 034/111] cma: Add vc_cma driver to enable use of CMA +Subject: [PATCH 034/119] cma: Add vc_cma driver to enable use of CMA MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -74857,10 +74857,10 @@ index 0000000000000000000000000000000000000000..be2819d5d41f9d5ed65daf8eedb94c9e + +#endif /* VC_CMA_H */ -From fd23e9dc16915a406af9bda180f64d882b92b160 Mon Sep 17 00:00:00 2001 +From 7ba0eac61216f2fc6f77787bdef5f1a21dea0592 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Mon, 26 Mar 2012 22:15:50 +0100 -Subject: [PATCH 035/111] bcm2708: alsa sound driver +Subject: [PATCH 035/119] bcm2708: alsa sound driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -77597,10 +77597,10 @@ index 0000000000000000000000000000000000000000..af3e6eb690113fc32ce9e06bd2f0f294 + +#endif // _VC_AUDIO_DEFS_H_ -From 11380abf87d0d53e0243f3178cdab81f4d4449a5 Mon Sep 17 00:00:00 2001 +From 194cbe936e536cc4876eb6007d71d996e49f211c Mon Sep 17 00:00:00 2001 From: popcornmix Date: Tue, 2 Jul 2013 23:42:01 +0100 -Subject: [PATCH 036/111] bcm2708 vchiq driver +Subject: [PATCH 036/119] bcm2708 vchiq driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -90965,10 +90965,10 @@ index 0000000000000000000000000000000000000000..b6bfa21155e431e93bfb2c149d324371 + return vchiq_build_time; +} -From 1a022d55ba03192671ab57aee87137e870501a88 Mon Sep 17 00:00:00 2001 +From ad1a93c2808e2aebdb764dcfac75f0b43414c4cb Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 17 Jun 2015 16:07:06 +0100 -Subject: [PATCH 037/111] vc_mem: Add vc_mem driver +Subject: [PATCH 037/119] vc_mem: Add vc_mem driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -91973,10 +91973,10 @@ index 0000000000000000000000000000000000000000..20a475377eb3078ea1ecaef2b24efc35 + +#endif /* _VC_MEM_H */ -From cceb483e245cc42f3bb2f96246080169084a8509 Mon Sep 17 00:00:00 2001 +From ecb5b0d56a6624be0b6a31bd257cf2e4418e036f Mon Sep 17 00:00:00 2001 From: Tim Gover Date: Tue, 22 Jul 2014 15:41:04 +0100 -Subject: [PATCH 038/111] vcsm: VideoCore shared memory service for BCM2835 +Subject: [PATCH 038/119] vcsm: VideoCore shared memory service for BCM2835 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -96394,10 +96394,10 @@ index 0000000000000000000000000000000000000000..334f36d0d697b047df2922b5f2db67f3 + +#endif /* __VMCS_SM_IOCTL_H__INCLUDED__ */ -From bd88b185bd5e789da9df304bceb13516d8fb68e3 Mon Sep 17 00:00:00 2001 +From 971d989c31abb4fd06b79ea031ef1f87f544ffd0 Mon Sep 17 00:00:00 2001 From: Luke Wren Date: Fri, 21 Aug 2015 23:14:48 +0100 -Subject: [PATCH 039/111] Add /dev/gpiomem device for rootless user GPIO access +Subject: [PATCH 039/119] Add /dev/gpiomem device for rootless user GPIO access Signed-off-by: Luke Wren @@ -96708,10 +96708,10 @@ index 0000000000000000000000000000000000000000..911f5b7393ed48ceed8751f06967ae64 +MODULE_DESCRIPTION("gpiomem driver for accessing GPIO from userspace"); +MODULE_AUTHOR("Luke Wren "); -From e72622a4c692d9f85f4056d834804d738a6a3ce5 Mon Sep 17 00:00:00 2001 +From dd9172e87a7c4dbabcf76b18394053200e3f55f9 Mon Sep 17 00:00:00 2001 From: Luke Wren Date: Sat, 5 Sep 2015 01:14:45 +0100 -Subject: [PATCH 040/111] Add SMI driver +Subject: [PATCH 040/119] Add SMI driver Signed-off-by: Luke Wren --- @@ -98662,10 +98662,10 @@ index 0000000000000000000000000000000000000000..ee3a75edfc033eeb0d90a687ffb68b10 + +#endif /* BCM2835_SMI_H */ -From 9d19676cd43462eeb3ff112f34566d179c5bc59a Mon Sep 17 00:00:00 2001 +From 5818b17dce756d4b6641cb9be44fce33a040f55d Mon Sep 17 00:00:00 2001 From: Luke Wren Date: Sat, 5 Sep 2015 01:16:10 +0100 -Subject: [PATCH 041/111] Add SMI NAND driver +Subject: [PATCH 041/119] Add SMI NAND driver Signed-off-by: Luke Wren --- @@ -99030,10 +99030,10 @@ index 0000000000000000000000000000000000000000..02adda6da18bd0ba9ab19a104975b79d + ("Driver for NAND chips using Broadcom Secondary Memory Interface"); +MODULE_AUTHOR("Luke Wren "); -From 883e2b3ab1545d31654c899b2175dba96718a477 Mon Sep 17 00:00:00 2001 +From 7a837ee40843ef864ea0293624413502163ba296 Mon Sep 17 00:00:00 2001 From: Aron Szabo Date: Sat, 16 Jun 2012 12:15:55 +0200 -Subject: [PATCH 042/111] lirc: added support for RaspberryPi GPIO +Subject: [PATCH 042/119] lirc: added support for RaspberryPi GPIO lirc_rpi: Use read_current_timer to determine transmitter delay. Thanks to jjmz and others See: https://github.com/raspberrypi/linux/issues/525 @@ -99078,12 +99078,22 @@ parameters, except that gpio_in_pull should be set using the strings "up", "down" or "off". lirc-rpi: Also support pinctrl-bcm2835 in non-DT mode + +fix auto-sense in lirc_rpi driver + +On a Raspberry Pi 2, the lirc_rpi driver might receive spurious +interrupts and change it's low-active / high-active setting. +When this happens, the IR remote control stops working. + +This patch disables this auto-detection if the 'sense' parameter +was set in the device tree, making the driver robust to such +spurious interrupts. --- drivers/staging/media/lirc/Kconfig | 6 + drivers/staging/media/lirc/Makefile | 1 + - drivers/staging/media/lirc/lirc_rpi.c | 730 ++++++++++++++++++++++++++++++++++ + drivers/staging/media/lirc/lirc_rpi.c | 734 ++++++++++++++++++++++++++++++++++ include/linux/platform_data/bcm2708.h | 23 ++ - 4 files changed, 760 insertions(+) + 4 files changed, 764 insertions(+) create mode 100644 drivers/staging/media/lirc/lirc_rpi.c create mode 100644 include/linux/platform_data/bcm2708.h @@ -99118,10 +99128,10 @@ index 5430adf0475ded5abe2ef4b4cf4e7f2c08297894..9e53cd0caf58ba28a939b780c876d401 obj-$(CONFIG_LIRC_SIR) += lirc_sir.o diff --git a/drivers/staging/media/lirc/lirc_rpi.c b/drivers/staging/media/lirc/lirc_rpi.c new file mode 100644 -index 0000000000000000000000000000000000000000..06244398e42b9a1501a48fb4693218e017e5a651 +index 0000000000000000000000000000000000000000..61328968d21540b04814cbd5155eaa30b715c8f4 --- /dev/null +++ b/drivers/staging/media/lirc/lirc_rpi.c -@@ -0,0 +1,730 @@ +@@ -0,0 +1,734 @@ +/* + * lirc_rpi.c + * @@ -99203,6 +99213,7 @@ index 0000000000000000000000000000000000000000..06244398e42b9a1501a48fb4693218e0 + +struct gpio_chip *gpiochip; +static int irq_num; ++static int auto_sense = 1; + +/* forward declarations */ +static long send_pulse(unsigned long length); @@ -99403,7 +99414,9 @@ index 0000000000000000000000000000000000000000..06244398e42b9a1501a48fb4693218e0 + * detecting pulse while this + * MUST be a space! + */ -+ sense = sense ? 0 : 1; ++ if (auto_sense) { ++ sense = sense ? 0 : 1; ++ } + } + } else { + data = (int) (deltv*1000000 + @@ -99541,6 +99554,7 @@ index 0000000000000000000000000000000000000000..06244398e42b9a1501a48fb4693218e0 + printk(KERN_INFO LIRC_DRIVER_NAME + ": manually using active %s receiver on GPIO pin %d\n", + sense ? "low" : "high", gpio_in_pin); ++ auto_sense = 0; + } + + return 0; @@ -99882,10 +99896,10 @@ index 0000000000000000000000000000000000000000..fb69624ccef00ddbdccf8256d6baf1b1 + +#endif -From 36561a4595f5e2fa6f0faedd5883be17dfc922d1 Mon Sep 17 00:00:00 2001 +From fe2b750f71020202b9937fcc1e5ed3c7a18ca352 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 3 Jul 2013 00:49:20 +0100 -Subject: [PATCH 043/111] Add cpufreq driver +Subject: [PATCH 043/119] Add cpufreq driver Signed-off-by: popcornmix --- @@ -100147,10 +100161,10 @@ index 0000000000000000000000000000000000000000..3eb9e9326231b08e6ee95ad486485245 +module_init(bcm2835_cpufreq_module_init); +module_exit(bcm2835_cpufreq_module_exit); -From 7540e4b3f77cb70cd77899f6cd80479e4f743599 Mon Sep 17 00:00:00 2001 +From ae77f68524aad87d4fc3aea49cc7498299fca815 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Tue, 26 Mar 2013 19:24:24 +0000 -Subject: [PATCH 044/111] Added hwmon/thermal driver for reporting core +Subject: [PATCH 044/119] Added hwmon/thermal driver for reporting core temperature. Thanks Dorian MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 @@ -100316,10 +100330,10 @@ index 0000000000000000000000000000000000000000..c63fb9f9d143e19612a18fe530c7b2b3 +MODULE_DESCRIPTION("Thermal driver for bcm2835 chip"); +MODULE_LICENSE("GPL"); -From cfbbb92f0c0496445cc97151580ea8b9a6d3e9d9 Mon Sep 17 00:00:00 2001 +From 32df8f5f8e1725feb1050e598e8abb4b4be89160 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 17 Jun 2015 15:44:08 +0100 -Subject: [PATCH 045/111] Add Chris Boot's i2c driver +Subject: [PATCH 045/119] Add Chris Boot's i2c driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -100976,10 +100990,10 @@ index 0000000000000000000000000000000000000000..c9b8e5cb1702e4b20e45214d81a7a40a +MODULE_LICENSE("GPL v2"); +MODULE_ALIAS("platform:" DRV_NAME); -From 05cb723448582453691babf82541facfbb50defb Mon Sep 17 00:00:00 2001 +From 76034201214bc189260a389df7be9399728106d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 26 Jun 2015 14:27:06 +0200 -Subject: [PATCH 046/111] char: broadcom: Add vcio module +Subject: [PATCH 046/119] char: broadcom: Add vcio module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -101205,10 +101219,10 @@ index 0000000000000000000000000000000000000000..c19bc2075c77879563ef5e59038b5a14 +MODULE_DESCRIPTION("Mailbox userspace access"); +MODULE_LICENSE("GPL"); -From ef21300b02abfc74b007a8bb4a66eda2bf3a88c6 Mon Sep 17 00:00:00 2001 +From d0d20dbe6324c801264548804a7c5b9b91e1f6f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 26 Jun 2015 14:25:01 +0200 -Subject: [PATCH 047/111] firmware: bcm2835: Support ARCH_BCM270x +Subject: [PATCH 047/119] firmware: bcm2835: Support ARCH_BCM270x MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -101314,10 +101328,10 @@ index dd506cd3a5b874f9e1acd07efb8cd151bb6145d1..b980d531b35b9981a88356ef1c8a7b86 MODULE_AUTHOR("Eric Anholt "); MODULE_DESCRIPTION("Raspberry Pi firmware driver"); -From 15948d937b12b2f04caf507d3ac39e044de22ed8 Mon Sep 17 00:00:00 2001 +From bbc37de942cdaf0d228877d68cd7142bdd5e1a6d Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 30 Jan 2013 12:45:18 +0000 -Subject: [PATCH 048/111] bcm2835: add v4l2 camera device +Subject: [PATCH 048/119] bcm2835: add v4l2 camera device - Supports raw YUV capture, preview, JPEG and H264. - Uses videobuf2 for data transfer, using dma_buf. @@ -109049,10 +109063,10 @@ index 0000000000000000000000000000000000000000..9d1d11e4a53e510c04a416d92d195a7d + +#endif /* MMAL_VCHIQ_H */ -From 2be247eeb689931f548636200e5b64c51daa3248 Mon Sep 17 00:00:00 2001 +From 94b6390e2812b2d593a3ff00b8cdceaa0bc5bbb1 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 11 May 2015 09:00:42 +0100 -Subject: [PATCH 049/111] scripts: Add mkknlimg and knlinfo scripts from tools +Subject: [PATCH 049/119] scripts: Add mkknlimg and knlinfo scripts from tools repo The Raspberry Pi firmware looks for a trailer on the kernel image to @@ -109564,10 +109578,10 @@ index 0000000000000000000000000000000000000000..78c5845d2f01deb04b477327d83fa606 + return $trailer; +} -From 4c81180311f93a3c6ed0f526f19d138a5c8c69cb Mon Sep 17 00:00:00 2001 +From 0e1c7da845ceb22cd786b030ac9e413cb17f0a67 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 10 Aug 2015 09:49:15 +0100 -Subject: [PATCH 050/111] scripts/dtc: Update to upstream version 1.4.1 +Subject: [PATCH 050/119] scripts/dtc: Update to upstream version 1.4.1 Includes the new localfixups format. @@ -112418,10 +112432,10 @@ index ad9b05ae698b0495ecbda42ffcf4743555313a27..2595dfda020fd9e03f0beff5006f229d -#define DTC_VERSION "DTC 1.4.1-g53bf130b" +#define DTC_VERSION "DTC 1.4.1-g25efc119" -From 9e47d686a2c50cd8e20ce11f4430494df04fab12 Mon Sep 17 00:00:00 2001 +From 0aafad9829488449cd46d0166a57c94036578f3e Mon Sep 17 00:00:00 2001 From: notro Date: Wed, 9 Jul 2014 14:46:08 +0200 -Subject: [PATCH 051/111] BCM2708: Add core Device Tree support +Subject: [PATCH 051/119] BCM2708: Add core Device Tree support Add the bare minimum needed to boot BCM2708 from a Device Tree. @@ -121045,10 +121059,10 @@ index 0000000000000000000000000000000000000000..8498134fdbb3912e9ce18282b53084d8 + +}; -From 3e5b57715228496ea48c118917cb557d5c69ad74 Mon Sep 17 00:00:00 2001 +From 08ad6c196e2efc2181274ebf686fcf00a0277ffa Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 13 Mar 2015 20:00:21 +0000 -Subject: [PATCH 052/111] BCM270X_DT: Add a .dtbo target, use for overlays +Subject: [PATCH 052/119] BCM270X_DT: Add a .dtbo target, use for overlays Change the filenames and extensions to keep the pre-DDT style of overlay (-overlay.dtb) distinct from new ones that use a @@ -121131,10 +121145,10 @@ index e7df0f5db7ec273f45b755668815ce96ba1ffe46..8f50f48329b9460b7268322ea4fd99cf # Bzip2 -From 6a36f694a362e7836a7ee1c0763920ff90ff8d1e Mon Sep 17 00:00:00 2001 +From 1f191b8bb3632388ea155815b8fad006921f2ff5 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 8 Apr 2016 17:43:27 +0100 -Subject: [PATCH 053/111] BCM270X_DT: Don't generate "linux,phandle" props +Subject: [PATCH 053/119] BCM270X_DT: Don't generate "linux,phandle" props The EPAPR standard says to use "phandle" properties to store phandles, rather than the deprecated "linux,phandle" version. By default, dtc @@ -121160,10 +121174,10 @@ index 8f50f48329b9460b7268322ea4fd99cf764134ec..c1c3ceb265a3fd223b8a2a0a548ddad3 -d $(depfile).dtc.tmp $(dtc-tmp) ; \ cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile) -From 2f0ee24bd8b41a4c6616319f888f805e65db0159 Mon Sep 17 00:00:00 2001 +From ca9e434ec3cded3fc7797577f245a0b80c56db86 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 6 Feb 2015 13:50:57 +0000 -Subject: [PATCH 054/111] BCM270x_DT: Add pwr_led, and the required "input" +Subject: [PATCH 054/119] BCM270x_DT: Add pwr_led, and the required "input" trigger The "input" trigger makes the associated GPIO an input. This is to support @@ -121339,10 +121353,10 @@ index e5e7f2e80a54dd2f15737a3ef478287458641f6e..68086e559d963ed06a0ceb916f9b1555 /* Set LED brightness level * Must not sleep. Use brightness_set_blocking for drivers -From ea2507545d3bab2dcacab277a315e73e1d6e47de Mon Sep 17 00:00:00 2001 +From 8244c1243b3a8a539202e12d8c0ea9f83e7e9006 Mon Sep 17 00:00:00 2001 From: Siarhei Siamashka Date: Mon, 17 Jun 2013 13:32:11 +0300 -Subject: [PATCH 055/111] fbdev: add FBIOCOPYAREA ioctl +Subject: [PATCH 055/119] fbdev: add FBIOCOPYAREA ioctl Based on the patch authored by Ali Gholami Rudi at https://lkml.org/lkml/2009/7/13/153 @@ -121435,10 +121449,10 @@ index fb795c3b3c178ad3cd7c9e9e4547ffd492bac181..fa72af0c981710fe80bacf4cf6612f6d #define FB_TYPE_PACKED_PIXELS 0 /* Packed Pixels */ #define FB_TYPE_PLANES 1 /* Non interleaved planes */ -From 87bd3668ff68813fed9de9d49038b3e46ecf771f Mon Sep 17 00:00:00 2001 +From 45ead68a64257fa9197d1982a9630b6d63a00506 Mon Sep 17 00:00:00 2001 From: Harm Hanemaaijer Date: Thu, 20 Jun 2013 20:21:39 +0200 -Subject: [PATCH 056/111] Speed up console framebuffer imageblit function +Subject: [PATCH 056/119] Speed up console framebuffer imageblit function Especially on platforms with a slower CPU but a relatively high framebuffer fill bandwidth, like current ARM devices, the existing @@ -121647,10 +121661,10 @@ index a2bb276a8b2463eee98eb237c4647bc00cd93601..436494fba15abecb400ef28688466faf start_index, pitch_index); } else -From 55a2f849b57c8ba767bdb979eab54a4072aeaa90 Mon Sep 17 00:00:00 2001 +From 4d609b22de42d7a28825e8c01072a158c5d933fa Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 8 May 2013 11:46:50 +0100 -Subject: [PATCH 057/111] enabling the realtime clock 1-wire chip DS1307 and +Subject: [PATCH 057/119] enabling the realtime clock 1-wire chip DS1307 and 1-wire on GPIO4 (as a module) 1-wire: Add support for configuring pin for w1-gpio kernel module @@ -121900,10 +121914,10 @@ index d58594a3232492e33f1dd4babd3798b03e0f0203..feae94256256316fd9d850c3d83325af unsigned int ext_pullup_enable_pin; unsigned int pullup_duration; -From 528bf1a9250bf36da5a68a23e567f159fe6b2d84 Mon Sep 17 00:00:00 2001 +From 748bb26b92f0d95785fb5cdd2a9d45dd51f12bfe Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 18 Dec 2013 22:16:19 +0000 -Subject: [PATCH 058/111] config: Enable CONFIG_MEMCG, but leave it disabled +Subject: [PATCH 058/119] config: Enable CONFIG_MEMCG, but leave it disabled (due to memory cost). Enable with cgroup_enable=memory. --- @@ -121911,10 +121925,10 @@ Subject: [PATCH 058/111] config: Enable CONFIG_MEMCG, but leave it disabled 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/kernel/cgroup.c b/kernel/cgroup.c -index 75c0ff00aca60d298062755539e83cbfeaffaaf2..d3db7d24554254f8a33adb2ff9a0540262c78caa 100644 +index e0be49fc382fc339269b9be29fda59d4ad619962..9b31046d0b00c66d86c1b07003a79edbcf2dae3d 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c -@@ -5591,7 +5591,7 @@ int __init cgroup_init_early(void) +@@ -5592,7 +5592,7 @@ int __init cgroup_init_early(void) return 0; } @@ -121923,7 +121937,7 @@ index 75c0ff00aca60d298062755539e83cbfeaffaaf2..d3db7d24554254f8a33adb2ff9a05402 /** * cgroup_init - cgroup initialization -@@ -6121,6 +6121,28 @@ static int __init cgroup_no_v1(char *str) +@@ -6122,6 +6122,28 @@ static int __init cgroup_no_v1(char *str) } __setup("cgroup_no_v1=", cgroup_no_v1); @@ -121953,10 +121967,10 @@ index 75c0ff00aca60d298062755539e83cbfeaffaaf2..d3db7d24554254f8a33adb2ff9a05402 * css_tryget_online_from_dir - get corresponding css from a cgroup dentry * @dentry: directory dentry of interest -From f909136a4636faf8d7fd30fce66104b487b2ecff Mon Sep 17 00:00:00 2001 +From 6dd642c1b1cc9c115d4c01efb57aa6809dd65141 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Mon, 13 Apr 2015 17:16:29 +0100 -Subject: [PATCH 059/111] config: Add default configs +Subject: [PATCH 059/119] config: Add default configs --- arch/arm/configs/bcm2709_defconfig | 1288 +++++++++++++++++++++++++++++++++++ @@ -124562,10 +124576,10 @@ index 0000000000000000000000000000000000000000..da2df3d30e15a55a34b45d3ebbf98e90 +CONFIG_CRC_ITU_T=y +CONFIG_LIBCRC32C=y -From aa15290cdeac3133072d8ea98a4197d32f13cbf0 Mon Sep 17 00:00:00 2001 +From d73facf6d6b137986b32524a9c537257158fa327 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Mon, 14 Jul 2014 22:02:09 +0100 -Subject: [PATCH 060/111] hid: Reduce default mouse polling interval to 60Hz +Subject: [PATCH 060/119] hid: Reduce default mouse polling interval to 60Hz Reduces overhead when using X --- @@ -124601,10 +124615,10 @@ index ae83af649a607f67239f1a64bf45dd4b5770cc7d..4a7af9d0b910f59d17421ce14138400d ret = -ENOMEM; if (usb_endpoint_dir_in(endpoint)) { -From 8d8a8564c00e70c5606af68c4acdb8c5e2ac8cf8 Mon Sep 17 00:00:00 2001 +From a92b385cc450a5be2f972c887800486a66de284a Mon Sep 17 00:00:00 2001 From: Gordon Hollingworth Date: Tue, 12 May 2015 14:47:56 +0100 -Subject: [PATCH 061/111] rpi-ft5406: Add touchscreen driver for pi LCD display +Subject: [PATCH 061/119] rpi-ft5406: Add touchscreen driver for pi LCD display Fix driver detection failure Check that the buffer response is non-zero meaning the touchscreen was detected @@ -124899,10 +124913,10 @@ index 0000000000000000000000000000000000000000..b27dbee8f56773dbd2a5503dc864747d +MODULE_DESCRIPTION("Touchscreen driver for memory based FT5406"); +MODULE_LICENSE("GPL"); -From caa5f748c7c34919061a800d3b9600aeef93ae3f Mon Sep 17 00:00:00 2001 +From 913c6388aff7ef8c8627afc87e98e48ef62354fd Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 13 Oct 2014 11:47:53 +0100 -Subject: [PATCH 062/111] Improve __copy_to_user and __copy_from_user +Subject: [PATCH 062/119] Improve __copy_to_user and __copy_from_user performance Provide a __copy_from_user that uses memcpy. On BCM2708, use @@ -126458,10 +126472,10 @@ index 6bd1089b07e0960830ed6bd6a8345202b7efd8b0..cd17dd11ebe7bbe00089e70cd2ccea74 static unsigned long noinline __clear_user_memset(void __user *addr, unsigned long n) -From 626055cab99e810168105994b1368f783545728f Mon Sep 17 00:00:00 2001 +From 62b45f2357d402f01c1fa29999c4c89205e4aa23 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Thu, 25 Jun 2015 12:16:11 +0100 -Subject: [PATCH 063/111] gpio-poweroff: Allow it to work on Raspberry Pi +Subject: [PATCH 063/119] gpio-poweroff: Allow it to work on Raspberry Pi The Raspberry Pi firmware manages the power-down and reboot process. To do this it installs a pm_power_off handler, causing @@ -126496,10 +126510,10 @@ index be3d81ff51cc3f510d85e4eed7a52960e51e7bc1..a030ae9fb1fca325061c093696e82186 "%s: pm_power_off function already registered", __func__); -From f62be97894117c25b4f8bbad415770b21f09a919 Mon Sep 17 00:00:00 2001 +From 72b1e5e08bb0ac0726001beab05f2ff6ea496a05 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Tue, 14 Jul 2015 14:32:47 +0100 -Subject: [PATCH 064/111] mfd: Add Raspberry Pi Sense HAT core driver +Subject: [PATCH 064/119] mfd: Add Raspberry Pi Sense HAT core driver --- drivers/input/joystick/Kconfig | 8 + @@ -127365,10 +127379,10 @@ index 0000000000000000000000000000000000000000..56196dc2af10e464a1e3f98b028dca1c + +#endif -From f8f8a656cd3bf3fbeeeaa821ac7f11dd7071979e Mon Sep 17 00:00:00 2001 +From 2c71a1fe648524a406517c1983592bbfccb9345d Mon Sep 17 00:00:00 2001 From: Florian Meier Date: Fri, 22 Nov 2013 19:19:08 +0100 -Subject: [PATCH 065/111] ASoC: Add support for HifiBerry DAC +Subject: [PATCH 065/119] ASoC: Add support for HifiBerry DAC This adds a machine driver for the HifiBerry DAC. It is a sound card that can @@ -127539,10 +127553,10 @@ index 0000000000000000000000000000000000000000..29ecc08a227cdd4b3c6141935d0c5d21 +MODULE_DESCRIPTION("ASoC Driver for HifiBerry DAC"); +MODULE_LICENSE("GPL v2"); -From 6f6c153a71efcace4d50c009ff7103c6a872004c Mon Sep 17 00:00:00 2001 +From a9b4367962afa0dc8a09d11758e2c2de413f9e15 Mon Sep 17 00:00:00 2001 From: Florian Meier Date: Mon, 25 Jan 2016 15:48:59 +0000 -Subject: [PATCH 066/111] ASoC: Add support for Rpi-DAC +Subject: [PATCH 066/119] ASoC: Add support for Rpi-DAC --- sound/soc/bcm/Kconfig | 7 +++ @@ -127826,10 +127840,10 @@ index 0000000000000000000000000000000000000000..afe1b419582aa40c4b2729d242bb13cd +MODULE_AUTHOR("Florian Meier "); +MODULE_LICENSE("GPL v2"); -From b3591796ac8c05287e949d01fad785b9d2311e9c Mon Sep 17 00:00:00 2001 +From e9fb8467d1f8c182a3c2fcc2092f7166a6626ede Mon Sep 17 00:00:00 2001 From: Daniel Matuschek Date: Wed, 15 Jan 2014 21:41:23 +0100 -Subject: [PATCH 067/111] ASoC: wm8804: Implement MCLK configuration options, +Subject: [PATCH 067/119] ASoC: wm8804: Implement MCLK configuration options, add 32bit support WM8804 can run with PLL frequencies of 256xfs and 128xfs for most sample rates. At 192kHz only 128xfs is supported. The existing driver selects 128xfs automatically for some lower samples rates. By using an @@ -127878,10 +127892,10 @@ index 8d914702cae4a3fe2c0ca0599cd1ec79f7322c83..c846716b4ed1027ade5512e8be90801d .dapm_widgets = wm8804_dapm_widgets, .num_dapm_widgets = ARRAY_SIZE(wm8804_dapm_widgets), -From 8e7395e59afaa7f683db84c4737c9235917e0144 Mon Sep 17 00:00:00 2001 +From 79656ad7e01c9ed51f8b66ce45ec370e73c18a65 Mon Sep 17 00:00:00 2001 From: Daniel Matuschek Date: Wed, 15 Jan 2014 21:42:08 +0100 -Subject: [PATCH 068/111] ASoC: BCM:Add support for HiFiBerry Digi. Driver is +Subject: [PATCH 068/119] ASoC: BCM:Add support for HiFiBerry Digi. Driver is based on the patched WM8804 driver. Signed-off-by: Daniel Matuschek @@ -128169,10 +128183,10 @@ index 0000000000000000000000000000000000000000..9840e15d3e2be6396bc3ce6e74749408 +MODULE_DESCRIPTION("ASoC Driver for HifiBerry Digi"); +MODULE_LICENSE("GPL v2"); -From d8399bf3bd675104993779d1862d57fbbd31128a Mon Sep 17 00:00:00 2001 +From 22f66d64612f480e18c40432580c26c9b87b4e07 Mon Sep 17 00:00:00 2001 From: Gordon Garrity Date: Sat, 8 Mar 2014 16:56:57 +0000 -Subject: [PATCH 069/111] Add IQaudIO Sound Card support for Raspberry Pi +Subject: [PATCH 069/119] Add IQaudIO Sound Card support for Raspberry Pi Set a limit of 0dB on Digital Volume Control @@ -128502,10 +128516,37 @@ index 0000000000000000000000000000000000000000..4e8e6dec14bcf4a1ff286c43742d4097 +MODULE_DESCRIPTION("ASoC Driver for IQAudio DAC"); +MODULE_LICENSE("GPL v2"); -From e3b89bd7a255c275dd778e5f871304feb30986c1 Mon Sep 17 00:00:00 2001 +From 5fe905d5530a80cd548236e0d4d205f064756233 Mon Sep 17 00:00:00 2001 +From: popcornmix +Date: Mon, 25 Jul 2016 17:06:50 +0100 +Subject: [PATCH 070/119] iqaudio-dac: Compile fix - untested + +--- + sound/soc/bcm/iqaudio-dac.c | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/sound/soc/bcm/iqaudio-dac.c b/sound/soc/bcm/iqaudio-dac.c +index 4e8e6dec14bcf4a1ff286c43742d4097249d6777..aa15bc4b49ca95edec905fddd8fd0a6d839ca627 100644 +--- a/sound/soc/bcm/iqaudio-dac.c ++++ b/sound/soc/bcm/iqaudio-dac.c +@@ -76,7 +76,11 @@ static void snd_rpi_iqaudio_gpio_unmute(struct snd_soc_card *card) + static int snd_rpi_iqaudio_set_bias_level(struct snd_soc_card *card, + struct snd_soc_dapm_context *dapm, enum snd_soc_bias_level level) + { +- struct snd_soc_dai *codec_dai = card->rtd[0].codec_dai; ++ struct snd_soc_pcm_runtime *rtd; ++ struct snd_soc_dai *codec_dai; ++ ++ rtd = snd_soc_get_pcm_runtime(card, card->dai_link[0].name); ++ codec_dai = rtd->codec_dai; + + if (dapm->dev != codec_dai->dev) + return 0; + +From 951c89af714e4ab5c5d7b77d2de7f62599480274 Mon Sep 17 00:00:00 2001 From: Daniel Matuschek Date: Mon, 4 Aug 2014 10:06:56 +0200 -Subject: [PATCH 070/111] Added support for HiFiBerry DAC+ +Subject: [PATCH 071/119] Added support for HiFiBerry DAC+ The driver is based on the HiFiBerry DAC driver. However HiFiBerry DAC+ uses a different codec chip (PCM5122), therefore a new driver is necessary. @@ -129134,10 +129175,10 @@ index 047c48953a20cd4075000ac294a17fe59baedcde..090fe0ee08e8765f9edbb62777413bb6 dev_err(dev, "No LRCLK?\n"); return -EINVAL; -From 5d2e827ef45aeb4bad9c5881b213b093b4c35cd9 Mon Sep 17 00:00:00 2001 +From d0e800534e3c1cbfd6fd130cfa344643b2d33d41 Mon Sep 17 00:00:00 2001 From: Daniel Matuschek Date: Mon, 4 Aug 2014 11:09:58 +0200 -Subject: [PATCH 071/111] Added driver for HiFiBerry Amp amplifier add-on board +Subject: [PATCH 072/119] Added driver for HiFiBerry Amp amplifier add-on board The driver contains a low-level hardware driver for the TAS5713 and the drivers for the Raspberry Pi I2S subsystem. @@ -129969,10 +130010,207 @@ index 0000000000000000000000000000000000000000..8f019e04898754d2f87e9630137be9e8 + +#endif /* _TAS5713_H */ -From a071d287ae26904607ae671615e7d54e20eee74c Mon Sep 17 00:00:00 2001 +From 8dd563be7049a34ac038e20b9fe16878d8b0d045 Mon Sep 17 00:00:00 2001 +From: "Daniel Matuschek (HiFiBerry)" +Date: Tue, 26 Jul 2016 19:16:25 +0200 +Subject: [PATCH 073/119] Added HiFiBerry Digi+ Pro driver + +Signed-off-by: Daniel Matuschek +--- + arch/arm/boot/dts/overlays/Makefile | 1 + + arch/arm/boot/dts/overlays/README | 8 +++- + .../dts/overlays/hifiberry-digi-pro-overlay.dts | 41 +++++++++++++++++ + sound/soc/bcm/hifiberry_digi.c | 51 ++++++++++++++++++++++ + 4 files changed, 100 insertions(+), 1 deletion(-) + create mode 100644 arch/arm/boot/dts/overlays/hifiberry-digi-pro-overlay.dts + +diff --git a/arch/arm/boot/dts/overlays/Makefile b/arch/arm/boot/dts/overlays/Makefile +index 7e740c894436e8fd9ed9b451e5b1f7888806922f..d4f31b76931d693a09ced67ef8da900a884892ae 100644 +--- a/arch/arm/boot/dts/overlays/Makefile ++++ b/arch/arm/boot/dts/overlays/Makefile +@@ -31,6 +31,7 @@ dtbo-$(RPI_DT_OVERLAYS) += hifiberry-amp.dtbo + dtbo-$(RPI_DT_OVERLAYS) += hifiberry-dac.dtbo + dtbo-$(RPI_DT_OVERLAYS) += hifiberry-dacplus.dtbo + dtbo-$(RPI_DT_OVERLAYS) += hifiberry-digi.dtbo ++dtbo-$(RPI_DT_OVERLAYS) += hifiberry-digi-pro.dtbo + dtbo-$(RPI_DT_OVERLAYS) += hy28a.dtbo + dtbo-$(RPI_DT_OVERLAYS) += hy28b.dtbo + dtbo-$(RPI_DT_OVERLAYS) += i2c-gpio.dtbo +diff --git a/arch/arm/boot/dts/overlays/README b/arch/arm/boot/dts/overlays/README +index 780bf6dda5a6694cb312140329120fda3b0c2f61..57100ecd45721761546c443a3d6196d6e18879c6 100644 +--- a/arch/arm/boot/dts/overlays/README ++++ b/arch/arm/boot/dts/overlays/README +@@ -377,11 +377,17 @@ Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec + + + Name: hifiberry-digi +-Info: Configures the HifiBerry Digi audio card ++Info: Configures the HifiBerry Digi and Digi+ audio card + Load: dtoverlay=hifiberry-digi + Params: + + ++Name: hifiberry-digi-pro ++Info: Configures the HifiBerry Digi+ Pro audio card ++Load: dtoverlay=hifiberry-digi-pro ++Params: ++ ++ + Name: hy28a + Info: HY28A - 2.8" TFT LCD Display Module by HAOYU Electronics + Default values match Texy's display shield +diff --git a/arch/arm/boot/dts/overlays/hifiberry-digi-pro-overlay.dts b/arch/arm/boot/dts/overlays/hifiberry-digi-pro-overlay.dts +new file mode 100644 +index 0000000000000000000000000000000000000000..2a26d9cfffb0f3d7958eb3756ca7c4ba28400e1c +--- /dev/null ++++ b/arch/arm/boot/dts/overlays/hifiberry-digi-pro-overlay.dts +@@ -0,0 +1,41 @@ ++// Definitions for HiFiBerry Digi Pro ++/dts-v1/; ++/plugin/; ++ ++/ { ++ compatible = "brcm,bcm2708"; ++ ++ fragment@0 { ++ target = <&i2s>; ++ __overlay__ { ++ status = "okay"; ++ }; ++ }; ++ ++ fragment@1 { ++ target = <&i2c1>; ++ __overlay__ { ++ #address-cells = <1>; ++ #size-cells = <0>; ++ status = "okay"; ++ ++ wm8804@3b { ++ #sound-dai-cells = <0>; ++ compatible = "wlf,wm8804"; ++ reg = <0x3b>; ++ status = "okay"; ++ }; ++ }; ++ }; ++ ++ fragment@2 { ++ target = <&sound>; ++ __overlay__ { ++ compatible = "hifiberry,hifiberry-digi"; ++ i2s-controller = <&i2s>; ++ status = "okay"; ++ clock44-gpio = <&gpio 5 0>; ++ clock48-gpio = <&gpio 6 0>; ++ }; ++ }; ++}; +diff --git a/sound/soc/bcm/hifiberry_digi.c b/sound/soc/bcm/hifiberry_digi.c +index 9840e15d3e2be6396bc3ce6e74749408cc28c333..52ab9dea2e724c4238986ca53c59c8492f64e345 100644 +--- a/sound/soc/bcm/hifiberry_digi.c ++++ b/sound/soc/bcm/hifiberry_digi.c +@@ -23,6 +23,7 @@ + #include + #include + #include ++#include + + #include "../codecs/wm8804.h" + +@@ -30,9 +31,34 @@ static short int auto_shutdown_output = 0; + module_param(auto_shutdown_output, short, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP); + MODULE_PARM_DESC(auto_shutdown_output, "Shutdown SP/DIF output if playback is stopped"); + ++#define CLK_44EN_RATE 22579200UL ++#define CLK_48EN_RATE 24576000UL ++ ++static bool snd_rpi_hifiberry_is_digipro; ++static struct gpio_desc *snd_rpi_hifiberry_clk44gpio; ++static struct gpio_desc *snd_rpi_hifiberry_clk48gpio; + + static int samplerate=44100; + ++static uint32_t snd_rpi_hifiberry_digi_enable_clock(int sample_rate) ++{ ++ switch (sample_rate) { ++ case 11025: ++ case 22050: ++ case 44100: ++ case 88200: ++ case 176400: ++ gpiod_set_value_cansleep(snd_rpi_hifiberry_clk44gpio, 1); ++ gpiod_set_value_cansleep(snd_rpi_hifiberry_clk48gpio, 0); ++ return CLK_44EN_RATE; ++ default: ++ gpiod_set_value_cansleep(snd_rpi_hifiberry_clk48gpio, 1); ++ gpiod_set_value_cansleep(snd_rpi_hifiberry_clk44gpio, 0); ++ return CLK_48EN_RATE; ++ } ++} ++ ++ + static int snd_rpi_hifiberry_digi_init(struct snd_soc_pcm_runtime *rtd) + { + struct snd_soc_codec *codec = rtd->codec; +@@ -40,6 +66,14 @@ static int snd_rpi_hifiberry_digi_init(struct snd_soc_pcm_runtime *rtd) + /* enable TX output */ + snd_soc_update_bits(codec, WM8804_PWRDN, 0x4, 0x0); + ++ /* Initialize Digi+ Pro hardware */ ++ if (snd_rpi_hifiberry_is_digipro) { ++ struct snd_soc_dai_link *dai = rtd->dai_link; ++ ++ dai->name = "HiFiBerry Digi+ Pro"; ++ dai->stream_name = "HiFiBerry Digi+ Pro HiFi"; ++ } ++ + return 0; + } + +@@ -87,6 +121,9 @@ static int snd_rpi_hifiberry_digi_hw_params(struct snd_pcm_substream *substream, + mclk_freq=samplerate*128; + mclk_div=WM8804_MCLKDIV_128FS; + } ++ ++ if (snd_rpi_hifiberry_is_digipro) ++ sysclk = snd_rpi_hifiberry_digi_enable_clock(samplerate); + + switch (samplerate) { + case 32000: +@@ -121,6 +158,7 @@ static int snd_rpi_hifiberry_digi_hw_params(struct snd_pcm_substream *substream, + + ret = snd_soc_dai_set_sysclk(codec_dai, WM8804_TX_CLKSRC_PLL, + sysclk, SND_SOC_CLOCK_OUT); ++ + if (ret < 0) { + dev_err(codec->dev, + "Failed to set WM8804 SYSCLK: %d\n", ret); +@@ -187,6 +225,19 @@ static int snd_rpi_hifiberry_digi_probe(struct platform_device *pdev) + dai->platform_name = NULL; + dai->platform_of_node = i2s_node; + } ++ ++ snd_rpi_hifiberry_is_digipro = 1; ++ ++ snd_rpi_hifiberry_clk44gpio = ++ devm_gpiod_get(&pdev->dev, "clock44", GPIOD_OUT_LOW); ++ if (IS_ERR(snd_rpi_hifiberry_clk44gpio)) ++ snd_rpi_hifiberry_is_digipro = 0; ++ ++ snd_rpi_hifiberry_clk48gpio = ++ devm_gpiod_get(&pdev->dev, "clock48", GPIOD_OUT_LOW); ++ if (IS_ERR(snd_rpi_hifiberry_clk48gpio)) ++ snd_rpi_hifiberry_is_digipro = 0; ++ + } + + ret = snd_soc_register_card(&snd_rpi_hifiberry_digi); + +From 72820fee2ecf89e2f7a4ef82027c90b8f6b70037 Mon Sep 17 00:00:00 2001 From: Ryan Coe Date: Sat, 31 Jan 2015 18:25:49 -0700 -Subject: [PATCH 072/111] Update ds1307 driver for device-tree support +Subject: [PATCH 074/119] Update ds1307 driver for device-tree support Signed-off-by: Ryan Coe --- @@ -129999,10 +130237,10 @@ index 821d9c089cdb48a40a244d1c18ab912d6f0b9432..409ed8e449e54ea6751185b1c0760cfc .driver = { .name = "rtc-ds1307", -From c1c82394785fd988a7b800782009558c4464a316 Mon Sep 17 00:00:00 2001 +From 023ea30560a19eed47c4f805f9b9ea06b7ec3ff6 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 25 Mar 2015 09:26:17 +0100 -Subject: [PATCH 073/111] Add driver for rpi-proto +Subject: [PATCH 075/119] Add driver for rpi-proto Forward port of 3.10.x driver from https://github.com/koalo We are using a custom board and would like to use rpi 3.18.x @@ -130218,10 +130456,10 @@ index 0000000000000000000000000000000000000000..9db678e885efd63d84d60a098a84ed67 +MODULE_DESCRIPTION("ASoC Driver for Raspberry Pi connected to PROTO board (WM8731)"); +MODULE_LICENSE("GPL"); -From e7dd0527b17927b2e94d04e13edf24506f812e2e Mon Sep 17 00:00:00 2001 +From e2e8c864749a79c7642a30a9a79a539ad698c872 Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Mon, 24 Aug 2015 16:03:47 +0100 -Subject: [PATCH 074/111] RaspiDAC3 support +Subject: [PATCH 076/119] RaspiDAC3 support Signed-off-by: Jan Grulich @@ -130470,10 +130708,10 @@ index 0000000000000000000000000000000000000000..e7422e2dd3d70622a48ab3b2e1929869 +MODULE_DESCRIPTION("ASoC Driver for RaspiDAC Rev.3x"); +MODULE_LICENSE("GPL v2"); -From 3573e75f6f331207b9bd31a2ba536b7e109bc0c1 Mon Sep 17 00:00:00 2001 +From 811042dba5cb49d063d49654c80b039bae7dd7a6 Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Mon, 24 Aug 2015 16:02:34 +0100 -Subject: [PATCH 075/111] tpa6130a2: Add headphone switch control +Subject: [PATCH 077/119] tpa6130a2: Add headphone switch control Signed-off-by: Jan Grulich --- @@ -130564,10 +130802,10 @@ index 11d85c5c787addb8d8add7fc2b52ab91cc49b63d..3caaa17e28e91e995d6781ca7f88b747 /* -From 46c3097c1776e1fe84731643d691527a1cc856fa Mon Sep 17 00:00:00 2001 +From c16136f1fe865aefadbbe1d2900a8484ca2fb7fb Mon Sep 17 00:00:00 2001 From: Aaron Shaw Date: Thu, 7 Apr 2016 21:26:21 +0100 -Subject: [PATCH 076/111] Add Support for JustBoom Audio boards +Subject: [PATCH 078/119] Add Support for JustBoom Audio boards justboom-dac: Adjust for ALSA API change @@ -131021,10 +131259,10 @@ index 0000000000000000000000000000000000000000..91acb666380faa3c0deb2230f8a0f8bb +MODULE_DESCRIPTION("ASoC Driver for JustBoom PI Digi HAT Sound Card"); +MODULE_LICENSE("GPL v2"); -From a774bf62b65352d425d75c064ade27e67e4d51b0 Mon Sep 17 00:00:00 2001 +From 6c495e02ccebc9dd1d11f563f58a7d6dab5a693a Mon Sep 17 00:00:00 2001 From: Andrey Grodzovsky Date: Tue, 3 May 2016 22:10:59 -0400 -Subject: [PATCH 077/111] ARM: adau1977-adc: Add basic machine driver for +Subject: [PATCH 079/119] ARM: adau1977-adc: Add basic machine driver for adau1977 codec driver. This commit adds basic support for the codec usage including: Device tree overlay, @@ -131206,10 +131444,10 @@ index 0000000000000000000000000000000000000000..6e2ee027926ee63c89222f75ceb89e3d +MODULE_DESCRIPTION("ASoC Driver for ADAU1977 ADC"); +MODULE_LICENSE("GPL v2"); -From 50e698a0f5934beb1044d987d0fde684fc57583b Mon Sep 17 00:00:00 2001 +From 3d1b3ba90195ec409f82395661600ed1548e626d Mon Sep 17 00:00:00 2001 From: Matt Flax Date: Mon, 16 May 2016 21:36:31 +1000 -Subject: [PATCH 078/111] New AudioInjector.net Pi soundcard with low jitter +Subject: [PATCH 080/119] New AudioInjector.net Pi soundcard with low jitter audio in and out. Contains the sound/soc/bcm ALSA machine driver and necessary alterations to the Kconfig and Makefile. @@ -131458,10 +131696,10 @@ index 0000000000000000000000000000000000000000..5ff0985e07efb96b95634a65995f09f7 +MODULE_ALIAS("platform:audioinjector-pi-soundcard"); + -From 1f2eac04eced09d8ac3697b73155cc3db05c1a26 Mon Sep 17 00:00:00 2001 +From 1c2df2752dbf675b9335c96e91c89ab2adcac05f Mon Sep 17 00:00:00 2001 From: DigitalDreamtime Date: Thu, 30 Jun 2016 18:38:42 +0100 -Subject: [PATCH 079/111] Add IQAudIO Digi WM8804 board support +Subject: [PATCH 081/119] Add IQAudIO Digi WM8804 board support Support IQAudIO Digi board with iqaudio_digi machine driver and iqaudio-digi-wm8804-audio overlay. @@ -131761,10 +131999,10 @@ index 0000000000000000000000000000000000000000..9b6e829bcb5b1762a853775e78163196 +MODULE_DESCRIPTION("ASoC Driver for IQAudIO WM8804 Digi"); +MODULE_LICENSE("GPL v2"); -From 3163272227b6e87a808cbc2834b93bfa3ad03674 Mon Sep 17 00:00:00 2001 +From be6f601fc0467382088088a3a8856ab290921f42 Mon Sep 17 00:00:00 2001 From: escalator2015 Date: Tue, 24 May 2016 16:20:09 +0100 -Subject: [PATCH 080/111] New driver for RRA DigiDAC1 soundcard using WM8741 + +Subject: [PATCH 082/119] New driver for RRA DigiDAC1 soundcard using WM8741 + WM8804 --- @@ -132237,10 +132475,10 @@ index 0000000000000000000000000000000000000000..446796e7e4c14a7d95b2f2a01211d9a0 +MODULE_DESCRIPTION("ASoC Driver for RRA DigiDAC1"); +MODULE_LICENSE("GPL v2"); -From 9dc99dadefde0b3bb0140831fdda208c72f776c7 Mon Sep 17 00:00:00 2001 +From 321645738cac0f80ae22b26529d5886431e04dac Mon Sep 17 00:00:00 2001 From: DigitalDreamtime Date: Sat, 2 Jul 2016 16:26:19 +0100 -Subject: [PATCH 081/111] Add support for Dion Audio LOCO DAC-AMP HAT +Subject: [PATCH 083/119] Add support for Dion Audio LOCO DAC-AMP HAT Using dedicated machine driver and pcm5102a codec driver. @@ -132413,10 +132651,10 @@ index 0000000000000000000000000000000000000000..89e65317512bc774453ac8d0d5b0ff98 +MODULE_DESCRIPTION("ASoC Driver for DionAudio LOCO"); +MODULE_LICENSE("GPL v2"); -From c29ce2592d5e0975b06dffd115c738a8f7ca9be3 Mon Sep 17 00:00:00 2001 +From 2b9ffb0beec1a4b18eda671163e68887cee537d7 Mon Sep 17 00:00:00 2001 From: Matt Flax Date: Fri, 17 Jun 2016 14:48:16 +1000 -Subject: [PATCH 082/111] ASoc: wm8731: add 32bit mode. +Subject: [PATCH 084/119] ASoc: wm8731: add 32bit mode. commit cf5ef3a299ba32f6ac24c3c6ba18c1b7f1b5475f upstream. @@ -132455,10 +132693,10 @@ index 4bcf5f8ece50f3681948a9fbc47b85400d9a8b51..d18261a442560cd2c108c34295bd5b17 static const struct snd_soc_dai_ops wm8731_dai_ops = { .startup = wm8731_startup, -From 9b3d81c6b2b35518fc918d777b8b78677cb1658a Mon Sep 17 00:00:00 2001 +From b60575dbbfb801c4c10f60fbbc969fa0b1ae54c2 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 1 Jun 2016 15:40:58 +0100 -Subject: [PATCH 083/111] Revert "ASoC: bcm2835: Add S16_LE support via packed +Subject: [PATCH 085/119] Revert "ASoC: bcm2835: Add S16_LE support via packed DMA transfers" This reverts commit beff053c0ef6983897e3481169292e6435ef0a2d. @@ -132487,10 +132725,10 @@ index 6ba20498202ed36906b52096893a88867a79269f..a0026e2d2f0afd700751b1b4fa252358 dev->bclk_ratio = 0; -From 9031c85c4614817d9356a6e58e50e98c030f5727 Mon Sep 17 00:00:00 2001 +From 71c559c6050f641d310d771da0e0c5955bd2ddc4 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 1 Jun 2016 15:41:01 +0100 -Subject: [PATCH 084/111] Revert "ASoC: bcm2835: setup clock only if CPU is +Subject: [PATCH 086/119] Revert "ASoC: bcm2835: setup clock only if CPU is clock master" This reverts commit 60507fe191f524e82986fa737e5b27b4d3ad9289. @@ -132521,10 +132759,10 @@ index a0026e2d2f0afd700751b1b4fa2523585829173e..d2663e79ece1a2b649377e4a89460aa5 /* Setup the frame format */ format = BCM2835_I2S_CHEN; -From 49d7323355837c4cffd22aa242a8b5d50a2b47e6 Mon Sep 17 00:00:00 2001 +From 2cdbbbacfd4f75bcd57e6b7884e9727d7a1d8e2c Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 1 Jun 2016 15:41:03 +0100 -Subject: [PATCH 085/111] Revert "ASoC: bcm2835: add 24bit support" +Subject: [PATCH 087/119] Revert "ASoC: bcm2835: add 24bit support" This reverts commit a34b027dca5ea840fbc84121db66488375acfdea. --- @@ -132571,10 +132809,10 @@ index d2663e79ece1a2b649377e4a89460aa5a6d150b5..1c1f2210387b26e9551959378f6792f1 }, .ops = &bcm2835_i2s_dai_ops, -From 426600f81c84eb9581de55c5c364e402b744d627 Mon Sep 17 00:00:00 2001 +From 38170c7455fe28858e500124bc82e9647291c907 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 1 Jun 2016 15:41:09 +0100 -Subject: [PATCH 086/111] Revert "ASoC: bcm2835: move to use the clock +Subject: [PATCH 088/119] Revert "ASoC: bcm2835: move to use the clock framework" This reverts commit 517e7a1537ae4663268be5d0c0ec62c563b9fc99. @@ -132997,10 +133235,10 @@ index 1c1f2210387b26e9551959378f6792f18648652e..3303d5f58082f68b68b535b2bdf7ce8d /* Set the bus width */ dev->dma_data[SNDRV_PCM_STREAM_PLAYBACK].addr_width = -From 6177fc8dc11d1e50040c306c0171b7c42bde4bbf Mon Sep 17 00:00:00 2001 +From 9c1654cd3d53621b50ff62b0fe21e42f111246d2 Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Sun, 11 Oct 2015 16:44:05 +0200 -Subject: [PATCH 087/111] bcm2835-i2s: get base address for DMA from devicetree +Subject: [PATCH 089/119] bcm2835-i2s: get base address for DMA from devicetree Code copied from spi-bcm2835. Get physical address from devicetree instead of using hardcoded constant. @@ -133065,10 +133303,10 @@ index 3303d5f58082f68b68b535b2bdf7ce8d14cafcc4..0f25db4cd198c0a511e8a205b0cb2be6 /* Set the bus width */ dev->dma_data[SNDRV_PCM_STREAM_PLAYBACK].addr_width = -From e985f4747dd5ff6f91e500c50c2de8a9457f583d Mon Sep 17 00:00:00 2001 +From def571fa6c3dc0c46f0bc630696abcb8d928997e Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Sun, 11 Oct 2015 15:21:16 +0200 -Subject: [PATCH 088/111] bcm2835-i2s: add 24bit support, update bclk_ratio to +Subject: [PATCH 090/119] bcm2835-i2s: add 24bit support, update bclk_ratio to more correct values Code ported from bcm2708-i2s driver in Raspberry Pi tree. @@ -133147,10 +133385,10 @@ index 0f25db4cd198c0a511e8a205b0cb2be62ba94adf..0f35d7c0f4026bb50a7223461b907b97 }, .ops = &bcm2835_i2s_dai_ops, -From ab780704d0a48a2d76dcfaca85e980fd0e3f4adc Mon Sep 17 00:00:00 2001 +From c80c24f5107b6d4489edc67e7908612ecb713038 Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Sun, 11 Oct 2015 15:25:51 +0200 -Subject: [PATCH 089/111] bcm2835-i2s: setup clock only if CPU is clock master +Subject: [PATCH 091/119] bcm2835-i2s: setup clock only if CPU is clock master Code ported from bcm2708-i2s driver in Raspberry Pi tree. @@ -133205,10 +133443,10 @@ index 0f35d7c0f4026bb50a7223461b907b9797bd9a05..d5e412302811ed8b007fc53f0aa2b5dd /* Setup the frame format */ format = BCM2835_I2S_CHEN; -From dd3eeab4f8eea34bceb8b247fb502e86f4f20fdb Mon Sep 17 00:00:00 2001 +From 4274dd24fee0d47cf65592584beffd04370a2945 Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Sun, 11 Oct 2015 15:49:51 +0200 -Subject: [PATCH 090/111] bcm2835-i2s: Eliminate debugfs directory error +Subject: [PATCH 092/119] bcm2835-i2s: Eliminate debugfs directory error Code ported from bcm2708-i2s driver in Raspberry Pi tree. @@ -133244,10 +133482,10 @@ index d5e412302811ed8b007fc53f0aa2b5ddd12774b6..2d29050e739b0af02d0f5122d18178b6 }; -From e59331ce7f065c28e1a50831c8546a96deb5d05d Mon Sep 17 00:00:00 2001 +From 6ecdfdf4adacd4fe80fa448e9e2be6512b628428 Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Sun, 11 Oct 2015 15:35:20 +0200 -Subject: [PATCH 091/111] bcm2835-i2s: Register PCM device +Subject: [PATCH 093/119] bcm2835-i2s: Register PCM device Code ported from bcm2708-i2s driver in Raspberry Pi tree. @@ -133310,10 +133548,10 @@ index 2d29050e739b0af02d0f5122d18178b61c024bea..ce93ef0579ab142c788736f0d309c926 dev_err(&pdev->dev, "Could not register PCM: %d\n", ret); return ret; -From 0eec3739078dcf418f6804e3df7012f8c87618dd Mon Sep 17 00:00:00 2001 +From d5213772ae47d7ca423e9a16aa34624f1ec77fda Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Sun, 11 Oct 2015 15:55:21 +0200 -Subject: [PATCH 092/111] bcm2835-i2s: Enable MMAP support via a DT property +Subject: [PATCH 094/119] bcm2835-i2s: Enable MMAP support via a DT property Code ported from bcm2708-i2s driver in Raspberry Pi tree. @@ -133357,10 +133595,10 @@ index ce93ef0579ab142c788736f0d309c92636b8983d..6f60c2cebb412524bb0e30d0339fe556 for (i = 0; i <= 1; i++) { void __iomem *base; -From 5213ee508a24ff0c66e142ffe1fc5a000630dd0e Mon Sep 17 00:00:00 2001 +From 71a9af52e8b8ebb7f3eb2bb48d715cc3da47d80e Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Thu, 21 Apr 2016 15:44:14 +0100 -Subject: [PATCH 093/111] bcm2835-i2s: Reduce the TX DREQ threshold +Subject: [PATCH 095/119] bcm2835-i2s: Reduce the TX DREQ threshold TX FIFO overrun is thought to be the cause of channel swapping, so reducing the DREQ threshold seems reasonable and appears to be @@ -133408,10 +133646,10 @@ index 6f60c2cebb412524bb0e30d0339fe556680e8637..b26f9587dec01d62606df3f47b3ef00c /* Clear FIFOs */ bcm2835_i2s_clear_fifos(dev, true, true); -From 1653c95a0b5cd0bc5e215e74472b1d46cc55735c Mon Sep 17 00:00:00 2001 +From c2da3f61c8bcd26088c49ccc64da5fd09b9225fb Mon Sep 17 00:00:00 2001 From: P33M Date: Wed, 21 Oct 2015 14:55:21 +0100 -Subject: [PATCH 094/111] rpi_display: add backlight driver and overlay +Subject: [PATCH 096/119] rpi_display: add backlight driver and overlay Add a mailbox-driven backlight controller for the Raspberry Pi DSI touchscreen display. Requires updated GPU firmware to recognise the @@ -133580,10 +133818,10 @@ index 0000000000000000000000000000000000000000..14a0d9b037395497c1fdae2961feccd5 +MODULE_DESCRIPTION("Raspberry Pi mailbox based Backlight Driver"); +MODULE_LICENSE("GPL"); -From 81774f735f07a2f7d11977c9fab867ed9911df18 Mon Sep 17 00:00:00 2001 +From a6b20426b48edbef48f39d0d7aeb7cf05e4c8546 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Tue, 23 Feb 2016 19:56:04 +0000 -Subject: [PATCH 095/111] bcm2835-virtgpio: Virtual GPIO driver +Subject: [PATCH 097/119] bcm2835-virtgpio: Virtual GPIO driver Add a virtual GPIO driver that uses the firmware mailbox interface to request that the VPU toggles LEDs. @@ -133809,10 +134047,10 @@ index 0000000000000000000000000000000000000000..f3e0f1620b979e4fa3c7e556eb785ac2 +MODULE_DESCRIPTION("brcmvirt GPIO driver"); +MODULE_ALIAS("platform:brcmvirt-gpio"); -From 064af96e705f3ff93567cac0465bf928bf33ae41 Mon Sep 17 00:00:00 2001 +From 06a331fcab9977b8975daca74240f95f353e8ad3 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Fri, 4 Mar 2016 12:49:09 +0000 -Subject: [PATCH 096/111] DRM_VC4: Allow to be built for ARCH_BCM270x +Subject: [PATCH 098/119] DRM_VC4: Allow to be built for ARCH_BCM270x --- drivers/gpu/drm/vc4/Kconfig | 2 +- @@ -133831,10 +134069,10 @@ index e53df59cb139f25f8e6ae916bca93abf0c49e063..f6e938208b73512f20eab46a383ca91b select DRM_KMS_HELPER select DRM_KMS_CMA_HELPER -From 4b2c5bb334b191e1aa5b7b96c298e743c3e3cf37 Mon Sep 17 00:00:00 2001 +From 7bb919f581dce128a6fcd28da141aa413e427919 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Tue, 23 Feb 2016 17:26:48 +0000 -Subject: [PATCH 097/111] amba_pl011: Don't use DT aliases for numbering +Subject: [PATCH 099/119] amba_pl011: Don't use DT aliases for numbering The pl011 driver looks for DT aliases of the form "serial", and if found uses as the device ID. This can cause @@ -133863,10 +134101,10 @@ index 1b7331e40d795e1ec5482d6a82871bd5ce050b60..a04d27ef682792808301ac2d2bfb67d5 uap->old_cr = 0; uap->port.dev = dev; -From 082aed07db3aa644e700e6356da328303db9bba2 Mon Sep 17 00:00:00 2001 +From d6484eb31ca7b0298fce4f0ed2a0278e08a94d82 Mon Sep 17 00:00:00 2001 From: Pantelis Antoniou Date: Wed, 3 Dec 2014 13:23:28 +0200 -Subject: [PATCH 098/111] OF: DT-Overlay configfs interface +Subject: [PATCH 100/119] OF: DT-Overlay configfs interface This is a port of Pantelis Antoniou's v3 port that makes use of the new upstreamed configfs support for binary attributes. @@ -134298,10 +134536,10 @@ index 0000000000000000000000000000000000000000..0037e6868a6cda8706c88194c6a4454b +} +late_initcall(of_cfs_init); -From 68e731d04d752b18a9ea4390ad44877db907a15e Mon Sep 17 00:00:00 2001 +From 5c8c09bd604f05bb436f7358360c0aecc48c2143 Mon Sep 17 00:00:00 2001 From: Cheong2K Date: Fri, 26 Feb 2016 18:20:10 +0800 -Subject: [PATCH 099/111] brcm: adds support for BCM43341 wifi +Subject: [PATCH 101/119] brcm: adds support for BCM43341 wifi --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c | 2 ++ @@ -134341,10 +134579,10 @@ index 699f2c2782ee9d898a25c95e0c5d45744d0777ff..15598b3687a213d8c00d45965a6b9351 #define BRCM_CC_4335_CHIP_ID 0x4335 #define BRCM_CC_4339_CHIP_ID 0x4339 -From f73574193c7e04c75ce884a9846af4ebbda4fa6f Mon Sep 17 00:00:00 2001 +From a88ce4432297fbdc7314529e5638b949f8ca7688 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 9 Mar 2016 17:25:59 +0000 -Subject: [PATCH 100/111] brcmfmac: Disable power management +Subject: [PATCH 102/119] brcmfmac: Disable power management Disable wireless power saving in the brcmfmac WLAN driver. This is a temporary measure until the connectivity loss resulting from power @@ -134369,10 +134607,10 @@ index 62f475e31077ca1fa1df15863f02ee0911c46997..d001128266f462beee5f9672c64ed2c0 if (!check_vif_up(ifp->vif)) { -From 089cba52a9de814bc56c71d41d4e8bc8a3b6d54e Mon Sep 17 00:00:00 2001 +From 69772f124d1cb0d31de04c768dc779f2f8b118d6 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Thu, 28 Apr 2016 17:13:47 +0100 -Subject: [PATCH 101/111] brcmfmac: Use original country code as a fallback +Subject: [PATCH 103/119] brcmfmac: Use original country code as a fallback Commit 73345fd212980d2e28a5c6d83801c903bd773680: @@ -134431,10 +134669,10 @@ index d001128266f462beee5f9672c64ed2c0d9200334..90eb79cc104427597046f2459e6f46de ccreq->country_abbrev[1] = alpha2[1]; ccreq->country_abbrev[2] = 0; -From 3a98d12b8d4ca8989dfb0ef12bd866251b5bc592 Mon Sep 17 00:00:00 2001 +From c81a9772926ffe219c9ddb80ed38bd50c2e850aa Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Thu, 19 May 2016 15:36:09 +0100 -Subject: [PATCH 102/111] brcmfmac: Plug memory leak in brcmf_fill_bss_param +Subject: [PATCH 104/119] brcmfmac: Plug memory leak in brcmf_fill_bss_param See: https://github.com/raspberrypi/linux/issues/1471 @@ -134467,10 +134705,10 @@ index 90eb79cc104427597046f2459e6f46de09702784..27a59a9f7b9c108e728bdc7fc8d95139 static s32 -From 7162955f6e9b7b838a3bf8bbe681f819024cecd7 Mon Sep 17 00:00:00 2001 +From 678e4a71084b991fca8366eda27c572c133e0e0c Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Thu, 17 Dec 2015 13:37:07 +0000 -Subject: [PATCH 103/111] hci_h5: Don't send conf_req when ACTIVE +Subject: [PATCH 105/119] hci_h5: Don't send conf_req when ACTIVE Without this patch, a modem and kernel can continuously bombard each other with conf_req and conf_rsp messages, in a demented game of tag. @@ -134493,10 +134731,10 @@ index 0879d64b1caf58afb6e5d494c07d9ab7e7cdf983..5161ab30fd533d50f516bb93d5b9f402 if (H5_HDR_LEN(hdr) > 2) h5->tx_win = (data[2] & 0x07); -From 081af7570d4772f38c75f3ecb6b851a0615b8c61 Mon Sep 17 00:00:00 2001 +From 070f632477a257c5732b1e2d3239ffbb8a8fd072 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 22 Jan 2016 13:06:39 -0800 -Subject: [PATCH 104/111] drm/vc4: Add a debugfs node for tracking execution +Subject: [PATCH 106/119] drm/vc4: Add a debugfs node for tracking execution state. Signed-off-by: Eric Anholt @@ -134556,10 +134794,10 @@ index 46899d6de6753c28c7ca6c721119a28d72792148..cbb1bc0b0db88f1c83ce3a630b2efe67 vc4_queue_hangcheck(struct drm_device *dev) { -From 27166f5ae197a2c23959a7eff08adc65f64588ee Mon Sep 17 00:00:00 2001 +From 280b96889f2a3892b44f4f03f56c0a229693a724 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 25 Jan 2016 13:03:33 -0800 -Subject: [PATCH 105/111] drm/vc4: Include vc4_drm.h in uapi in downstream +Subject: [PATCH 107/119] drm/vc4: Include vc4_drm.h in uapi in downstream build. Signed-off-by: Eric Anholt @@ -134580,10 +134818,10 @@ index 9355dd8eff3ba39401dfe37e7fbf7737f0397f11..68828bf586f05a8d9b0a6ab409ee91a7 header-y += vmwgfx_drm.h header-y += msm_drm.h -From 6546a741d421620b3f6ceaa3d205bc44f2664f31 Mon Sep 17 00:00:00 2001 +From 54527e3981e953cc84e6e11bf99a18a8070c52c3 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 30 Mar 2016 17:23:15 +0100 -Subject: [PATCH 106/111] cpufreq: Temporarily ignore io_is_busy=1 +Subject: [PATCH 108/119] cpufreq: Temporarily ignore io_is_busy=1 To speed testing of the new sdhost driver that adapts to changes in core_freq, hack the on-demand governor to treat io_is_busy=1 as @@ -134614,10 +134852,10 @@ index 300163430516766d56b842d8d12dc33175eee66b..9ab7b40005cb7ddfafc3917dc874eea8 /* we need to re-evaluate prev_cpu_idle */ gov_update_cpu_data(dbs_data); -From b3b6562bdf13284b9a7d129bed5400853735dd0e Mon Sep 17 00:00:00 2001 +From c48aa30fc6858f37f1bf43538fbea1d9ca102f56 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 14 Oct 2015 11:32:14 -0700 -Subject: [PATCH 107/111] drm/vc4: Force HDMI to connected. +Subject: [PATCH 109/119] drm/vc4: Force HDMI to connected. For some reason on the downstream tree, the HPD GPIO isn't working. @@ -134640,10 +134878,10 @@ index fd2644d231ff867a4409840eba7f8234a4a1faba..ed9c5274d06a215331aee44da1f7214a if (gpio_get_value_cansleep(vc4->hdmi->hpd_gpio) ^ vc4->hdmi->hpd_active_low) -From 2ab2541de11bd82a0f0a2e33c1da98cfba1cc268 Mon Sep 17 00:00:00 2001 +From f6366a4c9cf5245af1f8c10d9c19ad287bb1bf02 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 19 Apr 2016 15:55:02 -0700 -Subject: [PATCH 108/111] ARM: bcm2708: Enable building power domain driver. +Subject: [PATCH 110/119] ARM: bcm2708: Enable building power domain driver. Signed-off-by: Eric Anholt --- @@ -134663,10 +134901,10 @@ index 3066edea184d765a670ded0cead470597654abc1..e23518142ceac6651641cc30c327d60d select PM_GENERIC_DOMAINS if PM select PM_GENERIC_DOMAINS_OF if PM -From 65dc3c63bb358171b0cff73177a563b2d5b22059 Mon Sep 17 00:00:00 2001 +From 00541946c0141e5eff08499e6560dbbf8b6bcc7c Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 15 Jun 2016 16:48:41 +0100 -Subject: [PATCH 109/111] rtc: Add SPI alias for pcf2123 driver +Subject: [PATCH 111/119] rtc: Add SPI alias for pcf2123 driver Without this alias, Device Tree won't cause the driver to be loaded. @@ -134686,10 +134924,10 @@ index f22e060709e547528b29b747f796b45c445d23fa..76b7bd7d9d33a0dcefcdb5fe3e0df4de MODULE_LICENSE("GPL"); +MODULE_ALIAS("spi:rtc-pcf2123"); -From fd34a5c7e7d87ead50d299aea015bd7483d88a7c Mon Sep 17 00:00:00 2001 +From 510b1c017049ea1d1b27ddef1d2243b4afd48f3e Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 1 Jul 2016 22:09:24 +0100 -Subject: [PATCH 110/111] spi-bcm2835: Disable forced software CS +Subject: [PATCH 112/119] spi-bcm2835: Disable forced software CS Select software CS in bcm2708_common.dtsi, and disable the automatic conversion in the driver to allow hardware CS to be re-enabled with an @@ -134723,29 +134961,444 @@ index 5dfe20ffc2866fa6789825016c585175a29705b6..8493474d286f7a1ac6454a22c61c8c2c return 0; } -From 3758f08ddbd97dd81fad915d20b11aa9e48bd769 Mon Sep 17 00:00:00 2001 +From df1eaf37c912a78982c325ff6d1726edc112fe05 Mon Sep 17 00:00:00 2001 From: popcornmix -Date: Mon, 25 Jul 2016 17:06:50 +0100 -Subject: [PATCH 111/111] iqaudio-dac: Compile fix - untested +Date: Thu, 28 Jul 2016 11:39:51 +0100 +Subject: [PATCH 113/119] config: Enable CONFIG_USER_NS --- - sound/soc/bcm/iqaudio-dac.c | 6 +++++- - 1 file changed, 5 insertions(+), 1 deletion(-) + arch/arm/configs/bcm2709_defconfig | 2 +- + arch/arm/configs/bcmrpi_defconfig | 1 + + 2 files changed, 2 insertions(+), 1 deletion(-) -diff --git a/sound/soc/bcm/iqaudio-dac.c b/sound/soc/bcm/iqaudio-dac.c -index 4e8e6dec14bcf4a1ff286c43742d4097249d6777..aa15bc4b49ca95edec905fddd8fd0a6d839ca627 100644 ---- a/sound/soc/bcm/iqaudio-dac.c -+++ b/sound/soc/bcm/iqaudio-dac.c -@@ -76,7 +76,11 @@ static void snd_rpi_iqaudio_gpio_unmute(struct snd_soc_card *card) - static int snd_rpi_iqaudio_set_bias_level(struct snd_soc_card *card, - struct snd_soc_dapm_context *dapm, enum snd_soc_bias_level level) - { -- struct snd_soc_dai *codec_dai = card->rtd[0].codec_dai; -+ struct snd_soc_pcm_runtime *rtd; -+ struct snd_soc_dai *codec_dai; -+ -+ rtd = snd_soc_get_pcm_runtime(card, card->dai_link[0].name); -+ codec_dai = rtd->codec_dai; +diff --git a/arch/arm/configs/bcm2709_defconfig b/arch/arm/configs/bcm2709_defconfig +index af34386096ebc5b3c7d7cf60120e5ad48ba635b8..ed0b455b49f9efff4be980d8bdd59df4f5ee0639 100644 +--- a/arch/arm/configs/bcm2709_defconfig ++++ b/arch/arm/configs/bcm2709_defconfig +@@ -22,6 +22,7 @@ CONFIG_CPUSETS=y + CONFIG_CGROUP_DEVICE=y + CONFIG_CGROUP_CPUACCT=y + CONFIG_NAMESPACES=y ++CONFIG_USER_NS=y + CONFIG_SCHED_AUTOGROUP=y + CONFIG_BLK_DEV_INITRD=y + CONFIG_EMBEDDED=y +@@ -586,7 +587,6 @@ CONFIG_BRCM_CHAR_DRIVERS=y + CONFIG_BCM_VC_CMA=y + CONFIG_BCM_VCIO=y + CONFIG_BCM_VC_SM=y +-CONFIG_DEVPTS_MULTIPLE_INSTANCES=y + # CONFIG_LEGACY_PTYS is not set + # CONFIG_DEVKMEM is not set + CONFIG_SERIAL_8250=y +diff --git a/arch/arm/configs/bcmrpi_defconfig b/arch/arm/configs/bcmrpi_defconfig +index da2df3d30e15a55a34b45d3ebbf98e906da6379c..6c885f0518d0c015357a6fea1438841db344cc46 100644 +--- a/arch/arm/configs/bcmrpi_defconfig ++++ b/arch/arm/configs/bcmrpi_defconfig +@@ -21,6 +21,7 @@ CONFIG_CPUSETS=y + CONFIG_CGROUP_DEVICE=y + CONFIG_CGROUP_CPUACCT=y + CONFIG_NAMESPACES=y ++CONFIG_USER_NS=y + CONFIG_SCHED_AUTOGROUP=y + CONFIG_BLK_DEV_INITRD=y + CONFIG_EMBEDDED=y + +From 6f5c348828f93b34955442c7dea5e9aacf2d1e96 Mon Sep 17 00:00:00 2001 +From: popcornmix +Date: Tue, 9 Aug 2016 22:19:28 +0100 +Subject: [PATCH 114/119] smsc95xx: Experimental: Enable turbo_mode and + packetsize=2560 by default + +See: http://forum.kodi.tv/showthread.php?tid=285288 +--- + drivers/net/usb/smsc95xx.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c +index d22a2324085fbf61fbd8920362bfc7b9f72bebe3..c846c55075387398d9bcb0957e31f5c82fd7d58d 100644 +--- a/drivers/net/usb/smsc95xx.c ++++ b/drivers/net/usb/smsc95xx.c +@@ -77,7 +77,7 @@ struct smsc95xx_priv { + struct usbnet *dev; + }; - if (dapm->dev != codec_dai->dev) - return 0; +-static bool turbo_mode = false; ++static bool turbo_mode = true; + module_param(turbo_mode, bool, 0644); + MODULE_PARM_DESC(turbo_mode, "Enable multiple frames per Rx transaction"); + +@@ -85,7 +85,7 @@ static bool truesize_mode = false; + module_param(truesize_mode, bool, 0644); + MODULE_PARM_DESC(truesize_mode, "Report larger truesize value"); + +-static int packetsize = 0; ++static int packetsize = 2560; + module_param(packetsize, int, 0644); + MODULE_PARM_DESC(packetsize, "Override the RX URB packet size"); + + +From b249cb38f2fe1ef603f8aec92ac3196803a894ce Mon Sep 17 00:00:00 2001 +From: popcornmix +Date: Fri, 12 Aug 2016 13:21:32 +0100 +Subject: [PATCH 115/119] smsc95xx: squash: Bump to packetsize=4096 + +--- + drivers/net/usb/smsc95xx.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c +index c846c55075387398d9bcb0957e31f5c82fd7d58d..e663cd24653411e502deb28d0ea9b8280223a008 100644 +--- a/drivers/net/usb/smsc95xx.c ++++ b/drivers/net/usb/smsc95xx.c +@@ -85,7 +85,7 @@ static bool truesize_mode = false; + module_param(truesize_mode, bool, 0644); + MODULE_PARM_DESC(truesize_mode, "Report larger truesize value"); + +-static int packetsize = 2560; ++static int packetsize = 4096; + module_param(packetsize, int, 0644); + MODULE_PARM_DESC(packetsize, "Override the RX URB packet size"); + + +From 9e1e5a251e0acb18522805009b51acc1cbd0c047 Mon Sep 17 00:00:00 2001 +From: James Adams +Date: Fri, 12 Aug 2016 14:35:00 +0100 +Subject: [PATCH 116/119] Add cm3 dts file + +--- + arch/arm/boot/dts/Makefile | 1 + + arch/arm/boot/dts/bcm2710-rpi-cm3.dts | 176 ++++++++++++++++++++++++++++++++++ + 2 files changed, 177 insertions(+) + create mode 100644 arch/arm/boot/dts/bcm2710-rpi-cm3.dts + +diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile +index 93f2529ccbdfedb4b4e54898abf44911b47d2656..1bebcca8565b04fbf8ff2c276646525c3ddd25ad 100644 +--- a/arch/arm/boot/dts/Makefile ++++ b/arch/arm/boot/dts/Makefile +@@ -6,6 +6,7 @@ dtb-$(CONFIG_ARCH_BCM2708) += bcm2708-rpi-cm.dtb + dtb-$(CONFIG_ARCH_BCM2835) += bcm2835-rpi-cm.dtb + dtb-$(CONFIG_ARCH_BCM2709) += bcm2709-rpi-2-b.dtb + dtb-$(CONFIG_ARCH_BCM2709) += bcm2710-rpi-3-b.dtb ++dtb-$(CONFIG_ARCH_BCM2709) += bcm2710-rpi-cm3.dtb + + # Raspberry Pi + ifeq ($(CONFIG_ARCH_BCM2708),y) +diff --git a/arch/arm/boot/dts/bcm2710-rpi-cm3.dts b/arch/arm/boot/dts/bcm2710-rpi-cm3.dts +new file mode 100644 +index 0000000000000000000000000000000000000000..6a3d2f21295a63e9211638b9e4ba202753c8181b +--- /dev/null ++++ b/arch/arm/boot/dts/bcm2710-rpi-cm3.dts +@@ -0,0 +1,176 @@ ++/dts-v1/; ++ ++#include "bcm2710.dtsi" ++ ++/ { ++ compatible = "brcm,bcm2710","brcm,bcm2709"; ++ model = "Raspberry Pi Compute Module 3"; ++}; ++ ++&gpio { ++ ++ mmc_pins: mmc_pins { ++ brcm,pins = <48 49 50 51 52 53>; ++ brcm,function = <7>; /* alt3 */ ++ brcm,pull = <0 2 2 2 2 2>; ++ }; ++ ++ spi0_pins: spi0_pins { ++ brcm,pins = <9 10 11>; ++ brcm,function = <4>; /* alt0 */ ++ }; ++ ++ spi0_cs_pins: spi0_cs_pins { ++ brcm,pins = <8 7>; ++ brcm,function = <1>; /* output */ ++ }; ++ ++ i2c0_pins: i2c0 { ++ brcm,pins = <0 1>; ++ brcm,function = <4>; ++ }; ++ ++ i2c1_pins: i2c1 { ++ brcm,pins = <2 3>; ++ brcm,function = <4>; ++ }; ++ ++ i2s_pins: i2s { ++ brcm,pins = <18 19 20 21>; ++ brcm,function = <4>; /* alt0 */ ++ }; ++ ++ uart0_pins: uart0_pins { ++ brcm,pins; ++ brcm,function; ++ brcm,pull = <0 2>; ++ }; ++ ++ audio_pins: audio_pins { ++ brcm,pins; ++ brcm,function; ++ }; ++}; ++ ++&mmc { ++ pinctrl-names = "default"; ++ pinctrl-0 = <&mmc_pins>; ++ non-removable; ++ bus-width = <4>; ++ status = "okay"; ++ brcm,overclock-50 = <0>; ++}; ++ ++&soc { ++ virtgpio: virtgpio { ++ compatible = "brcm,bcm2835-virtgpio"; ++ gpio-controller; ++ #gpio-cells = <2>; ++ firmware = <&firmware>; ++ status = "okay"; ++ }; ++}; ++ ++&fb { ++ status = "okay"; ++}; ++ ++&uart0 { ++ pinctrl-names = "default"; ++ pinctrl-0 = <&uart0_pins>; ++ status = "okay"; ++}; ++ ++&spi0 { ++ pinctrl-names = "default"; ++ pinctrl-0 = <&spi0_pins &spi0_cs_pins>; ++ cs-gpios = <&gpio 8 1>, <&gpio 7 1>; ++ ++ spidev0: spidev@0{ ++ compatible = "spidev"; ++ reg = <0>; /* CE0 */ ++ #address-cells = <1>; ++ #size-cells = <0>; ++ spi-max-frequency = <500000>; ++ }; ++ ++ spidev1: spidev@1{ ++ compatible = "spidev"; ++ reg = <1>; /* CE1 */ ++ #address-cells = <1>; ++ #size-cells = <0>; ++ spi-max-frequency = <500000>; ++ }; ++}; ++ ++&i2c0 { ++ pinctrl-names = "default"; ++ pinctrl-0 = <&i2c0_pins>; ++ clock-frequency = <100000>; ++}; ++ ++&i2c1 { ++ pinctrl-names = "default"; ++ pinctrl-0 = <&i2c1_pins>; ++ clock-frequency = <100000>; ++}; ++ ++&i2c2 { ++ clock-frequency = <100000>; ++}; ++ ++&i2s { ++ #sound-dai-cells = <0>; ++ pinctrl-names = "default"; ++ pinctrl-0 = <&i2s_pins>; ++}; ++ ++&random { ++ status = "okay"; ++}; ++ ++&leds { ++ act_led: act { ++ label = "led0"; ++ linux,default-trigger = "mmc0"; ++ gpios = <&virtgpio 0 0>; ++ }; ++}; ++ ++&hdmi { ++ hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>; ++}; ++ ++&audio { ++ pinctrl-names = "default"; ++ pinctrl-0 = <&audio_pins>; ++}; ++ ++/ { ++ __overrides__ { ++ uart0 = <&uart0>,"status"; ++ uart0_clkrate = <&clk_uart0>,"clock-frequency:0"; ++ uart1 = <&uart1>,"status"; ++ i2s = <&i2s>,"status"; ++ spi = <&spi0>,"status"; ++ i2c0 = <&i2c0>,"status"; ++ i2c1 = <&i2c1>,"status"; ++ i2c2_iknowwhatimdoing = <&i2c2>,"status"; ++ i2c0_baudrate = <&i2c0>,"clock-frequency:0"; ++ i2c1_baudrate = <&i2c1>,"clock-frequency:0"; ++ i2c2_baudrate = <&i2c2>,"clock-frequency:0"; ++ core_freq = <&clk_core>,"clock-frequency:0"; ++ ++ act_led_gpio = <&act_led>,"gpios:4"; ++ act_led_activelow = <&act_led>,"gpios:8"; ++ act_led_trigger = <&act_led>,"linux,default-trigger"; ++ ++ audio = <&audio>,"status"; ++ watchdog = <&watchdog>,"status"; ++ random = <&random>,"status"; ++ sd_overclock = <&sdhost>,"brcm,overclock-50:0"; ++ sd_force_pio = <&sdhost>,"brcm,force-pio?"; ++ sd_pio_limit = <&sdhost>,"brcm,pio-limit:0"; ++ sd_debug = <&sdhost>,"brcm,debug"; ++ }; ++}; + +From 5dd4fc9c7d2c31973201e48b108fd9c00b9c4820 Mon Sep 17 00:00:00 2001 +From: popcornmix +Date: Fri, 12 Aug 2016 17:12:32 +0100 +Subject: [PATCH 117/119] config: Enable SENSORS_LM75 + +--- + arch/arm/configs/bcm2709_defconfig | 1 + + arch/arm/configs/bcmrpi_defconfig | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/arch/arm/configs/bcm2709_defconfig b/arch/arm/configs/bcm2709_defconfig +index ed0b455b49f9efff4be980d8bdd59df4f5ee0639..a55d3e3eb96a59ac9e8ec760f7cec65c12fb08a3 100644 +--- a/arch/arm/configs/bcm2709_defconfig ++++ b/arch/arm/configs/bcm2709_defconfig +@@ -640,6 +640,7 @@ CONFIG_BATTERY_DS2760=m + CONFIG_POWER_RESET=y + CONFIG_POWER_RESET_GPIO=y + CONFIG_HWMON=m ++CONFIG_SENSORS_LM75=m + CONFIG_SENSORS_SHT21=m + CONFIG_SENSORS_SHTC1=m + CONFIG_THERMAL=y +diff --git a/arch/arm/configs/bcmrpi_defconfig b/arch/arm/configs/bcmrpi_defconfig +index 6c885f0518d0c015357a6fea1438841db344cc46..7f02ad070f3f71c289a5e3d19f5eb68253efc8fe 100644 +--- a/arch/arm/configs/bcmrpi_defconfig ++++ b/arch/arm/configs/bcmrpi_defconfig +@@ -631,6 +631,7 @@ CONFIG_BATTERY_DS2760=m + CONFIG_POWER_RESET=y + CONFIG_POWER_RESET_GPIO=y + CONFIG_HWMON=m ++CONFIG_SENSORS_LM75=m + CONFIG_SENSORS_SHT21=m + CONFIG_SENSORS_SHTC1=m + CONFIG_THERMAL=y + +From 7c6676878e09288ad1aa958fff54f56624fef8f2 Mon Sep 17 00:00:00 2001 +From: popcornmix +Date: Fri, 12 Aug 2016 17:00:18 +0100 +Subject: [PATCH 118/119] config: Enable SERIAL_SC16IS7XX + +--- + arch/arm/configs/bcm2709_defconfig | 1 + + arch/arm/configs/bcmrpi_defconfig | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/arch/arm/configs/bcm2709_defconfig b/arch/arm/configs/bcm2709_defconfig +index a55d3e3eb96a59ac9e8ec760f7cec65c12fb08a3..e85cf56113b432221816008fcf8453ae57f6933b 100644 +--- a/arch/arm/configs/bcm2709_defconfig ++++ b/arch/arm/configs/bcm2709_defconfig +@@ -598,6 +598,7 @@ CONFIG_SERIAL_8250_RUNTIME_UARTS=0 + CONFIG_SERIAL_OF_PLATFORM=y + CONFIG_SERIAL_AMBA_PL011=y + CONFIG_SERIAL_AMBA_PL011_CONSOLE=y ++CONFIG_SERIAL_SC16IS7XX=m + CONFIG_TTY_PRINTK=y + CONFIG_HW_RANDOM=y + CONFIG_RAW_DRIVER=y +diff --git a/arch/arm/configs/bcmrpi_defconfig b/arch/arm/configs/bcmrpi_defconfig +index 7f02ad070f3f71c289a5e3d19f5eb68253efc8fe..4b50842b84daf91adb553be669737a71f6837dc8 100644 +--- a/arch/arm/configs/bcmrpi_defconfig ++++ b/arch/arm/configs/bcmrpi_defconfig +@@ -590,6 +590,7 @@ CONFIG_SERIAL_8250_RUNTIME_UARTS=0 + CONFIG_SERIAL_OF_PLATFORM=y + CONFIG_SERIAL_AMBA_PL011=y + CONFIG_SERIAL_AMBA_PL011_CONSOLE=y ++CONFIG_SERIAL_SC16IS7XX=m + CONFIG_TTY_PRINTK=y + CONFIG_HW_RANDOM=y + CONFIG_RAW_DRIVER=y + +From 628768a57451cad9149b6794b8ab83da65e1ea1a Mon Sep 17 00:00:00 2001 +From: popcornmix +Date: Fri, 12 Aug 2016 15:46:21 +0100 +Subject: [PATCH 119/119] snd-bcm2835: Don't allow responses from VC to be + interrupted by user signals + +There should always be a response, and retry after a signal interruption is not handled, so don't report +we are interruptible. + +See: https://github.com/raspberrypi/linux/issues/1560 +--- + sound/arm/bcm2835-vchiq.c | 25 ++++++------------------- + 1 file changed, 6 insertions(+), 19 deletions(-) + +diff --git a/sound/arm/bcm2835-vchiq.c b/sound/arm/bcm2835-vchiq.c +index 3de30945d8155b90d244734881a7caa81930fa7c..7ee436ca9fa2903d41d1bdd8f8f0774025d22ae0 100755 +--- a/sound/arm/bcm2835-vchiq.c ++++ b/sound/arm/bcm2835-vchiq.c +@@ -511,12 +511,7 @@ static int bcm2835_audio_set_ctls_chan(bcm2835_alsa_stream_t * alsa_stream, + } + + /* We are expecting a reply from the videocore */ +- ret = wait_for_completion_interruptible(&instance->msg_avail_comp); +- if (ret) { +- LOG_DBG("%s: failed on waiting for event (status=%d)\n", +- __func__, success); +- goto unlock; +- } ++ wait_for_completion(&instance->msg_avail_comp); + + if (instance->result != 0) { + LOG_ERR("%s: result=%d\n", __func__, instance->result); +@@ -615,12 +610,7 @@ int bcm2835_audio_set_params(bcm2835_alsa_stream_t * alsa_stream, + } + + /* We are expecting a reply from the videocore */ +- ret = wait_for_completion_interruptible(&instance->msg_avail_comp); +- if (ret) { +- LOG_DBG("%s: failed on waiting for event (status=%d)\n", +- __func__, success); +- goto unlock; +- } ++ wait_for_completion(&instance->msg_avail_comp); + + if (instance->result != 0) { + LOG_ERR("%s: result=%d", __func__, instance->result); +@@ -761,14 +751,11 @@ int bcm2835_audio_close(bcm2835_alsa_stream_t * alsa_stream) + goto unlock; + } + +- ret = wait_for_completion_interruptible(&instance->msg_avail_comp); +- if (ret) { +- LOG_DBG("%s: failed on waiting for event (status=%d)\n", +- __func__, success); +- goto unlock; +- } ++ /* We are expecting a reply from the videocore */ ++ wait_for_completion(&instance->msg_avail_comp); ++ + if (instance->result != 0) { +- LOG_ERR("%s: failed result (status=%d)\n", ++ LOG_ERR("%s: failed result (result=%d)\n", + __func__, instance->result); + + ret = -1;