diff --git a/packages/network/wireless-regdb/package.mk b/packages/network/wireless-regdb/package.mk index 66589d4601..7ff41b0ce8 100644 --- a/packages/network/wireless-regdb/package.mk +++ b/packages/network/wireless-regdb/package.mk @@ -17,7 +17,7 @@ ################################################################################ PKG_NAME="wireless-regdb" -PKG_VERSION="2015.09.25" +PKG_VERSION="2015.10.13" PKG_REV="1" PKG_ARCH="any" PKG_LICENSE="GPL" diff --git a/projects/RPi/patches/linux/linux-01-RPi_support.patch b/projects/RPi/patches/linux/linux-01-RPi_support.patch index dfccd7cdaa..34a0d4ec06 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 609529b2f8865f8ad63cf2bc3be48a009c8e6f9d Mon Sep 17 00:00:00 2001 +From 9975098c7b72c7755daa08816990dc286be525f2 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Sun, 12 May 2013 12:24:19 +0100 -Subject: [PATCH 001/192] Main bcm2708/bcm2709 linux port +Subject: [PATCH 001/194] Main bcm2708/bcm2709 linux port MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -7002,10 +7002,10 @@ index b5bedae..b0258e8 100644 mmc_pm_flag_t pm_caps; /* supported pm features */ -From b13e8a3ef8cefa74548308f24bcdfc341aca70ee Mon Sep 17 00:00:00 2001 +From f8e5576fbb3b504ce7ca5eaeda0fe5d1741c620e Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 8 Oct 2014 18:50:05 +0100 -Subject: [PATCH 002/192] Add bcm2708_gpio driver +Subject: [PATCH 002/194] Add bcm2708_gpio driver Signed-off-by: popcornmix @@ -7635,10 +7635,10 @@ index 0000000..fb69624 + +#endif -From 3b96584732e783101c33b3f93685fdb9c29f2f56 Mon Sep 17 00:00:00 2001 +From 9fada5af830488a1143eaf1fb69a480e23aeb26c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 1 May 2015 19:11:03 +0200 -Subject: [PATCH 003/192] mailbox: bcm2708: Add bcm2708-vcio +Subject: [PATCH 003/194] mailbox: bcm2708: Add bcm2708-vcio MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -8269,10 +8269,10 @@ index 0000000..cc284ed + +#endif -From 1682b073c4ee65bbad4d422dc7e1e4335fb7520f Mon Sep 17 00:00:00 2001 +From 686130a63a40d31f400357bfa1f01b53ea3069a5 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 1 May 2013 19:46:17 +0100 -Subject: [PATCH 004/192] Add dwc_otg driver +Subject: [PATCH 004/194] Add dwc_otg driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -69546,10 +69546,10 @@ index 0000000..cdc9963 +test_main(); +0; -From 5aad6d9cc7a07fab68fa8a809d1ef68227815b4e Mon Sep 17 00:00:00 2001 +From 8142dba5bbfd4a4a85bffc7689b030889ae05c32 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 1 May 2013 19:54:32 +0100 -Subject: [PATCH 005/192] bcm2708 watchdog driver +Subject: [PATCH 005/194] bcm2708 watchdog driver Signed-off-by: popcornmix --- @@ -69986,10 +69986,10 @@ index 0000000..8a27d68 +MODULE_ALIAS_MISCDEV(TEMP_MINOR); +MODULE_LICENSE("GPL"); -From 0d7d0291c377904694bb5b28fee22c47c8842d88 Mon Sep 17 00:00:00 2001 +From bd8c59a25518c0f3ad741d86af581fe3721078d6 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 17 Jun 2015 17:06:34 +0100 -Subject: [PATCH 006/192] bcm2708 framebuffer driver +Subject: [PATCH 006/194] bcm2708 framebuffer driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -73428,10 +73428,10 @@ index 3c14e43..7626beb6a 100644 +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 8f7071a6b7d56dcacdb37d4dd106344b083275b6 Mon Sep 17 00:00:00 2001 +From 292c431c94ff9f822f352f12d3f38a51572e4fbb Mon Sep 17 00:00:00 2001 From: Florian Meier Date: Fri, 22 Nov 2013 14:22:53 +0100 -Subject: [PATCH 007/192] dmaengine: Add support for BCM2708 +Subject: [PATCH 007/194] dmaengine: Add support for BCM2708 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -75199,10 +75199,10 @@ index 0000000..2310e34 + +#endif /* _PLAT_BCM2708_DMA_H */ -From e07323745508bb0f376e4d459a54480fd3e31d44 Mon Sep 17 00:00:00 2001 +From 97761099d44a41a8df57b703ae9a89c6e2b56062 Mon Sep 17 00:00:00 2001 From: gellert Date: Fri, 15 Aug 2014 16:35:06 +0100 -Subject: [PATCH 008/192] MMC: added alternative MMC driver +Subject: [PATCH 008/194] MMC: added alternative MMC driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -77018,10 +77018,10 @@ index 0000000..b7c4883 +MODULE_LICENSE("GPL v2"); +MODULE_AUTHOR("Gellert Weisz"); -From dc41079232e59b916ca82d40e4e7206d4ab62aaa Mon Sep 17 00:00:00 2001 +From ebe6211e7e197d9e434c9cec4f150bc372a36be7 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 25 Mar 2015 17:49:47 +0000 -Subject: [PATCH 009/192] Adding bcm2835-sdhost driver, and an overlay to +Subject: [PATCH 009/194] Adding bcm2835-sdhost driver, and an overlay to enable it BCM2835 has two SD card interfaces. This driver uses the other one. @@ -78791,10 +78791,10 @@ index 0000000..eef8a24 +MODULE_LICENSE("GPL v2"); +MODULE_AUTHOR("Phil Elwell"); -From 9377edd0d7701aaeeabb96cafd00c0716e34c571 Mon Sep 17 00:00:00 2001 +From 93a7e6a8ad9b76f0f426f71afbe0c9c49abc11c5 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 3 Jul 2013 00:31:47 +0100 -Subject: [PATCH 010/192] cma: Add vc_cma driver to enable use of CMA +Subject: [PATCH 010/194] cma: Add vc_cma driver to enable use of CMA Signed-off-by: popcornmix @@ -80119,10 +80119,10 @@ index 0000000..5325832 + +#endif /* VC_CMA_H */ -From c19f082a656bb2d1d95030a5950c505ea48489b3 Mon Sep 17 00:00:00 2001 +From a5910e614bf60dd590932bd6c62c40dcb4a620a2 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Mon, 26 Mar 2012 22:15:50 +0100 -Subject: [PATCH 011/192] bcm2708: alsa sound driver +Subject: [PATCH 011/194] bcm2708: alsa sound driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -82964,10 +82964,10 @@ index 0000000..af3e6eb + +#endif // _VC_AUDIO_DEFS_H_ -From 1576308395a8e3ae6a6f8f9777929618ef427c89 Mon Sep 17 00:00:00 2001 +From 0293a3d83cbf9cd1778b2cbd34cfa7366b3da2f3 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Tue, 2 Jul 2013 23:42:01 +0100 -Subject: [PATCH 012/192] bcm2708 vchiq driver +Subject: [PATCH 012/194] bcm2708 vchiq driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -96221,10 +96221,10 @@ index 0000000..b6bfa21 + return vchiq_build_time; +} -From f17e4badf3975d0a1b7b1c20b524f2ef4a21571b Mon Sep 17 00:00:00 2001 +From 3aca37235e8642ca143e97066f0f9bafb01e8903 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 17 Jun 2015 16:07:06 +0100 -Subject: [PATCH 013/192] vc_mem: Add vc_mem driver +Subject: [PATCH 013/194] vc_mem: Add vc_mem driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -97230,10 +97230,10 @@ index 0000000..20a4753 + +#endif /* _VC_MEM_H */ -From 6f96fdd646856cefb12b44e5f08ece670f0181c2 Mon Sep 17 00:00:00 2001 +From 28d20ca0e48cb659bc2f6a629636397378b80f91 Mon Sep 17 00:00:00 2001 From: Tim Gover Date: Tue, 22 Jul 2014 15:41:04 +0100 -Subject: [PATCH 014/192] vcsm: VideoCore shared memory service for BCM2835 +Subject: [PATCH 014/194] vcsm: VideoCore shared memory service for BCM2835 Add experimental support for the VideoCore shared memory service. This allows user processes to allocate memory from VideoCore's @@ -101643,10 +101643,10 @@ index 0000000..0bfb42e +MODULE_DESCRIPTION("VideoCore SharedMemory Driver"); +MODULE_LICENSE("GPL v2"); -From 8ced4cc73e1a9ea263ac6fd724bd8959879b3da0 Mon Sep 17 00:00:00 2001 +From 5026ce3b4e280f8c69c792473316dcf0ef9cf7bb Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 3 Jul 2013 00:51:55 +0100 -Subject: [PATCH 015/192] Add hwrng (hardware random number generator) driver +Subject: [PATCH 015/194] Add hwrng (hardware random number generator) driver --- drivers/char/hw_random/Kconfig | 13 +++- @@ -101823,10 +101823,10 @@ index 0000000..340f004 +MODULE_DESCRIPTION("BCM2708 H/W Random Number Generator (RNG) driver"); +MODULE_LICENSE("GPL and additional rights"); -From b669c0907ef1104dd084fea17c12650131eca5e5 Mon Sep 17 00:00:00 2001 +From bb39dc15ebce6c54d6b2416b8b26e5afea580fbf Mon Sep 17 00:00:00 2001 From: Aron Szabo Date: Sat, 16 Jun 2012 12:15:55 +0200 -Subject: [PATCH 016/192] lirc: added support for RaspberryPi GPIO +Subject: [PATCH 016/194] 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 @@ -102679,10 +102679,10 @@ index 0000000..24563ec +module_param(debug, bool, S_IRUGO | S_IWUSR); +MODULE_PARM_DESC(debug, "Enable debugging messages"); -From 557f263ec0d9a8c0ac86327ee6f82fb430321138 Mon Sep 17 00:00:00 2001 +From b86f8631e2d540d09df3c950f53eb5c8c2160c01 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 3 Jul 2013 00:49:20 +0100 -Subject: [PATCH 017/192] Add cpufreq driver +Subject: [PATCH 017/194] Add cpufreq driver Signed-off-by: popcornmix --- @@ -102955,10 +102955,10 @@ index 0000000..6735da9 +module_init(bcm2835_cpufreq_module_init); +module_exit(bcm2835_cpufreq_module_exit); -From 9bcee345f285fc890d89c13ab810e00011c746e0 Mon Sep 17 00:00:00 2001 +From 408055fb17cc2615b730f8ca781bf00836ff4058 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Tue, 26 Mar 2013 19:24:24 +0000 -Subject: [PATCH 018/192] Added hwmon/thermal driver for reporting core +Subject: [PATCH 018/194] Added hwmon/thermal driver for reporting core temperature. Thanks Dorian MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 @@ -103255,10 +103255,10 @@ index 0000000..3bc80f1 + +module_platform_driver(bcm2835_thermal_driver); -From 400a88cfab32bbc52f75adf0383dc1b0894e7c3f Mon Sep 17 00:00:00 2001 +From f612d1c8b575aba42c328a48d6b442e411937d3b Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 17 Jun 2015 15:41:33 +0100 -Subject: [PATCH 019/192] Add Chris Boot's spi driver. +Subject: [PATCH 019/194] Add Chris Boot's spi driver. spi: bcm2708: add device tree support @@ -104170,10 +104170,10 @@ index 0000000..041b5e2 +MODULE_LICENSE("GPL v2"); +MODULE_ALIAS("platform:" DRV_NAME); -From d5c4f6a12d0593030ea5a934fb2c83f45298f412 Mon Sep 17 00:00:00 2001 +From 71b325cf11468a3aea102146173c8b061e4af9cd Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 17 Jun 2015 15:44:08 +0100 -Subject: [PATCH 020/192] Add Chris Boot's i2c driver +Subject: [PATCH 020/194] Add Chris Boot's i2c driver i2c-bcm2708: fixed baudrate @@ -104974,10 +104974,10 @@ index 0000000..8773203 +MODULE_LICENSE("GPL v2"); +MODULE_ALIAS("platform:" DRV_NAME); -From c3abf3ec4df5a8aaf4b5772ab69636734d87997b Mon Sep 17 00:00:00 2001 +From 83442dc82575a0e27f036d37ad2e6070e2ac9612 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 30 Jan 2013 12:45:18 +0000 -Subject: [PATCH 021/192] bcm2835: add v4l2 camera device +Subject: [PATCH 021/194] bcm2835: add v4l2 camera device - Supports raw YUV capture, preview, JPEG and H264. - Uses videobuf2 for data transfer, using dma_buf. @@ -112304,10 +112304,10 @@ index 0000000..9d1d11e + +#endif /* MMAL_VCHIQ_H */ -From 7b9ed5d65c02cce23d54b30c3e51ae404d2a7f48 Mon Sep 17 00:00:00 2001 +From 8329756aea16aec7cf3b751506a9183189b63e0a Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 23 Jan 2015 14:48:55 +0000 -Subject: [PATCH 022/192] scripts/dtc: Update to upstream version with overlay +Subject: [PATCH 022/194] scripts/dtc: Update to upstream version with overlay patches --- @@ -117520,10 +117520,10 @@ index 54d4e904..d644002 100644 -#define DTC_VERSION "DTC 1.4.0-dirty" +#define DTC_VERSION "DTC 1.4.1-g36c70742" -From 032973fcd78ccde1187013067269944722eaed55 Mon Sep 17 00:00:00 2001 +From 5659258d92d8e737c1d2051f76288964bfffd732 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 11 May 2015 09:00:42 +0100 -Subject: [PATCH 023/192] scripts: Add mkknlimg and knlinfo scripts from tools +Subject: [PATCH 023/194] scripts: Add mkknlimg and knlinfo scripts from tools repo The Raspberry Pi firmware looks for a trailer on the kernel image to @@ -118008,17 +118008,17 @@ index 0000000..3dff948 + return (($val eq 'y') || ($val eq '1')); +} -From 0f413a81d7dcf73f80a51b348cff64341dee7eb4 Mon Sep 17 00:00:00 2001 +From a745783eaa9f2c7bb386d5b2e2eb5c630a720d45 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 5 Dec 2014 17:26:26 +0000 -Subject: [PATCH 024/192] fdt: Add support for the CONFIG_CMDLINE_EXTEND option +Subject: [PATCH 024/194] fdt: Add support for the CONFIG_CMDLINE_EXTEND option --- drivers/of/fdt.c | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c -index cde35c5d01..dd7fbfe 100644 +index d91f721..02feb00 100644 --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c @@ -933,19 +933,38 @@ int __init early_init_dt_scan_chosen(unsigned long node, const char *uname, @@ -118066,10 +118066,10 @@ index cde35c5d01..dd7fbfe 100644 pr_debug("Command line is: %s\n", (char*)data); -From 33131a27961d07a2a612c9e8d3c7a1133e08f4e1 Mon Sep 17 00:00:00 2001 +From 40422f4d1e477646fe048603ef640d260b162bef Mon Sep 17 00:00:00 2001 From: notro Date: Wed, 9 Jul 2014 14:46:08 +0200 -Subject: [PATCH 025/192] BCM2708: Add core Device Tree support +Subject: [PATCH 025/194] BCM2708: Add core Device Tree support Add the bare minimum needed to boot BCM2708 from a Device Tree. @@ -121946,10 +121946,10 @@ index 0000000..66a98f6 + }; +}; -From 3ad1dddd91565b7f8246685072c5a7582c4c1030 Mon Sep 17 00:00:00 2001 +From d3d477c85c9dfb667c233debe50362a0e8f8fae6 Mon Sep 17 00:00:00 2001 From: Siarhei Siamashka Date: Mon, 17 Jun 2013 13:32:11 +0300 -Subject: [PATCH 026/192] fbdev: add FBIOCOPYAREA ioctl +Subject: [PATCH 026/194] fbdev: add FBIOCOPYAREA ioctl Based on the patch authored by Ali Gholami Rudi at https://lkml.org/lkml/2009/7/13/153 @@ -122042,10 +122042,10 @@ index fb795c3..fa72af0 100644 #define FB_TYPE_PACKED_PIXELS 0 /* Packed Pixels */ #define FB_TYPE_PLANES 1 /* Non interleaved planes */ -From cedcba17d7d61f257782b8a27d476207d9013699 Mon Sep 17 00:00:00 2001 +From 65c2f3ef479f7832252cba9776f20488aa3d8171 Mon Sep 17 00:00:00 2001 From: Harm Hanemaaijer Date: Thu, 20 Jun 2013 20:21:39 +0200 -Subject: [PATCH 029/192] Speed up console framebuffer imageblit function +Subject: [PATCH 029/194] 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 @@ -122254,10 +122254,10 @@ index a2bb276..436494f 100644 start_index, pitch_index); } else -From 1b61dd3ec17ab86f48f36710318c26bae5ee1acc Mon Sep 17 00:00:00 2001 +From 46c415aa3d9d901af90d3ee968a7e20eb865d224 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Tue, 26 Mar 2013 17:26:38 +0000 -Subject: [PATCH 030/192] Allow mac address to be set in smsc95xx +Subject: [PATCH 030/194] Allow mac address to be set in smsc95xx Signed-off-by: popcornmix --- @@ -122348,10 +122348,10 @@ index 26423ad..e29a323 100644 if (smsc95xx_read_eeprom(dev, EEPROM_MAC_OFFSET, ETH_ALEN, dev->net->dev_addr) == 0) { -From 875b987168c33dbd9e3ffb259277d62a535970ab Mon Sep 17 00:00:00 2001 +From ccba4f76d2d8acf925cb0173e7865cab162d6031 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 8 May 2013 11:46:50 +0100 -Subject: [PATCH 031/192] enabling the realtime clock 1-wire chip DS1307 and +Subject: [PATCH 031/194] 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 @@ -122749,10 +122749,10 @@ index d58594a..feae942 100644 unsigned int ext_pullup_enable_pin; unsigned int pullup_duration; -From a7a7923fb977c1511cca7992d36d70c2c5b304d4 Mon Sep 17 00:00:00 2001 +From 04bc86ea16b589d4c5392441a9226f365eb4e934 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 18 Dec 2013 22:16:19 +0000 -Subject: [PATCH 033/192] config: Enable CONFIG_MEMCG, but leave it disabled +Subject: [PATCH 033/194] config: Enable CONFIG_MEMCG, but leave it disabled (due to memory cost). Enable with cgroup_enable=memory. --- @@ -122807,10 +122807,10 @@ index a04225d..a2ef8af 100644 /** -From 0e5e372ca2240e9d70ae4c52662a49c3e16f7ba9 Mon Sep 17 00:00:00 2001 +From eddb6053ac89b626ffe6b60c678437a334b06075 Mon Sep 17 00:00:00 2001 From: Florian Meier Date: Fri, 22 Nov 2013 14:33:38 +0100 -Subject: [PATCH 034/192] ASoC: Add support for BCM2708 +Subject: [PATCH 034/194] ASoC: Add support for BCM2708 This driver adds support for digital audio (I2S) for the BCM2708 SoC that is used by the @@ -123953,10 +123953,10 @@ index 0000000..6fdcbc1 + +#endif -From b2e44c6378b2db6d65be04c95ab877b91b8d9f1e Mon Sep 17 00:00:00 2001 +From ff4a754b75bfac31eb14c3a06805d6a6bd21318b Mon Sep 17 00:00:00 2001 From: Florian Meier Date: Fri, 22 Nov 2013 14:59:51 +0100 -Subject: [PATCH 035/192] ASoC: Add support for PCM5102A codec +Subject: [PATCH 035/194] ASoC: Add support for PCM5102A codec Some definitions to support the PCM5102A codec by Texas Instruments. @@ -124081,10 +124081,10 @@ index 0000000..126f1e9 +MODULE_AUTHOR("Florian Meier "); +MODULE_LICENSE("GPL v2"); -From 7d8babed7b82e7e0288b21e4e7230cf6afe60c8d Mon Sep 17 00:00:00 2001 +From c2f0f13aa7a56c787693a286a66b7efa523a9721 Mon Sep 17 00:00:00 2001 From: Florian Meier Date: Fri, 22 Nov 2013 19:04:54 +0100 -Subject: [PATCH 036/192] BCM2708: Add I2S support to board file +Subject: [PATCH 036/194] BCM2708: Add I2S support to board file Adds the required initializations for I2S to the board file of mach-bcm2708. @@ -124173,10 +124173,10 @@ index a3b65dc..a515992 100644 for (i = 0; i <= 1; i++) { void __iomem *base; -From 5ac22a8bd8d72cdd0943c5253f69246a9f67d809 Mon Sep 17 00:00:00 2001 +From 55d1827c5a972cfd10da253aa06d8f8abc80498b Mon Sep 17 00:00:00 2001 From: Florian Meier Date: Fri, 22 Nov 2013 19:19:08 +0100 -Subject: [PATCH 037/192] ASoC: Add support for HifiBerry DAC +Subject: [PATCH 037/194] ASoC: Add support for HifiBerry DAC This adds a machine driver for the HifiBerry DAC. It is a sound card that can @@ -124325,10 +124325,10 @@ index 0000000..4b70b45 +MODULE_DESCRIPTION("ASoC Driver for HifiBerry DAC"); +MODULE_LICENSE("GPL v2"); -From 20d20b334afca6fd5e71e036285f542a74375d16 Mon Sep 17 00:00:00 2001 +From 55da93510f26d0155f6d4844688fc8808613fc29 Mon Sep 17 00:00:00 2001 From: Florian Meier Date: Fri, 22 Nov 2013 19:21:34 +0100 -Subject: [PATCH 038/192] BCM2708: Add HifiBerry DAC to board file +Subject: [PATCH 038/194] BCM2708: Add HifiBerry DAC to board file This adds the initalization of the HifiBerry DAC to the mach-bcm2708 board file. @@ -124376,10 +124376,10 @@ index 01f2de7..1d9b788 100644 for (i = 0; i < ARRAY_SIZE(amba_devs); i++) { struct amba_device *d = amba_devs[i]; -From cad54b0a9c94257e08529fc9d2e673543851e817 Mon Sep 17 00:00:00 2001 +From 98736acf9857e9bbf038b0b7134c0c14ddef69a8 Mon Sep 17 00:00:00 2001 From: Florian Meier Date: Fri, 6 Dec 2013 20:50:28 +0100 -Subject: [PATCH 039/192] ASoC: BCM2708: Add support for RPi-DAC +Subject: [PATCH 039/194] ASoC: BCM2708: Add support for RPi-DAC This adds a machine driver for the RPi-DAC. @@ -124674,10 +124674,10 @@ index 0000000..b4eaa44 +MODULE_AUTHOR("Florian Meier "); +MODULE_LICENSE("GPL v2"); -From 2efb8725682fe9c9997677ce267f795db66b220e Mon Sep 17 00:00:00 2001 +From 7a7a54178ae9dbcdb98ffb2c986976ccec24143d Mon Sep 17 00:00:00 2001 From: Daniel Matuschek Date: Wed, 15 Jan 2014 21:41:23 +0100 -Subject: [PATCH 040/192] ASoC: wm8804: Implement MCLK configuration options, +Subject: [PATCH 040/194] 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 @@ -124717,10 +124717,10 @@ index 1e403f6..d4efa85 100644 #define WM8804_RATES (SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 | \ SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_64000 | \ -From 575c0192a56f9b78175226f441dac7f850d5570a Mon Sep 17 00:00:00 2001 +From 80a8450207698b78e1e2706c78be917a0a2d226e Mon Sep 17 00:00:00 2001 From: Daniel Matuschek Date: Wed, 15 Jan 2014 21:42:08 +0100 -Subject: [PATCH 041/192] ASoC: BCM:Add support for HiFiBerry Digi. Driver is +Subject: [PATCH 041/194] ASoC: BCM:Add support for HiFiBerry Digi. Driver is based on the patched WM8804 driver. Signed-off-by: Daniel Matuschek @@ -124985,10 +124985,10 @@ index 0000000..92e9e46 +MODULE_DESCRIPTION("ASoC Driver for HifiBerry Digi"); +MODULE_LICENSE("GPL v2"); -From 7be683eb602b189605fd7fc7c0871ff69ba60319 Mon Sep 17 00:00:00 2001 +From e9935d1eae17cdcb2c0b7b6cdb3120462673efd2 Mon Sep 17 00:00:00 2001 From: Daniel Matuschek Date: Thu, 16 Jan 2014 07:26:08 +0100 -Subject: [PATCH 042/192] BCM2708: Added support for HiFiBerry Digi board Board +Subject: [PATCH 042/194] BCM2708: Added support for HiFiBerry Digi board Board initalization by I2C Signed-off-by: Daniel Matuschek @@ -125035,10 +125035,10 @@ index 6d53beb..a062d7f 100644 bcm_register_device_dt(&snd_rpi_dac_device); bcm_register_device_dt(&snd_pcm1794a_codec_device); -From f65b15497d822d0ee124653988e1c1a77d7e1c39 Mon Sep 17 00:00:00 2001 +From af889ad42b8707233529ff69e4777cdbebdb1fda Mon Sep 17 00:00:00 2001 From: Daniel Matuschek Date: Thu, 16 Jan 2014 07:36:35 +0100 -Subject: [PATCH 043/192] ASoC: wm8804: Set idle_bias_off to false Idle bias +Subject: [PATCH 043/194] ASoC: wm8804: Set idle_bias_off to false Idle bias has been change to remove warning on driver startup Signed-off-by: Daniel Matuschek @@ -125060,10 +125060,10 @@ index d4efa85..f3f26a2 100644 .dapm_widgets = wm8804_dapm_widgets, .num_dapm_widgets = ARRAY_SIZE(wm8804_dapm_widgets), -From a3a8607f21c913660338ecfeab3e8f09e6f46a7e Mon Sep 17 00:00:00 2001 +From cb559a1b74c95bcdf53c269f4b3c439d494b95cf Mon Sep 17 00:00:00 2001 From: Gordon Garrity Date: Sat, 8 Mar 2014 16:56:57 +0000 -Subject: [PATCH 044/192] Add IQaudIO Sound Card support for Raspberry Pi +Subject: [PATCH 044/194] Add IQaudIO Sound Card support for Raspberry Pi Set a limit of 0dB on Digital Volume Control @@ -125271,10 +125271,10 @@ index 0000000..aff7377 +MODULE_DESCRIPTION("ASoC Driver for IQAudio DAC"); +MODULE_LICENSE("GPL v2"); -From a83f2448dd653557e1532d92b581c56e4dc471c2 Mon Sep 17 00:00:00 2001 +From 98b208c6abab24c6ffa353c71933902ae0eca8b0 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 18 Jun 2014 13:42:01 +0100 -Subject: [PATCH 045/192] vmstat: Workaround for issue where dirty page count +Subject: [PATCH 045/194] vmstat: Workaround for issue where dirty page count goes negative See: @@ -125301,10 +125301,10 @@ index 82e7db7..f87d16d 100644 static inline void __inc_zone_page_state(struct page *page, -From 4678e30fad78c70aa9fb1489c2c585e74d308973 Mon Sep 17 00:00:00 2001 +From 92feba25f0f1820019519a4da1f22c9583b030b3 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Mon, 14 Jul 2014 22:02:09 +0100 -Subject: [PATCH 046/192] hid: Reduce default mouse polling interval to 60Hz +Subject: [PATCH 046/194] hid: Reduce default mouse polling interval to 60Hz Reduces overhead when using X --- @@ -125340,10 +125340,10 @@ index eab5bd6..ca47de9 100644 ret = -ENOMEM; if (usb_endpoint_dir_in(endpoint)) { -From e00dd94e1cf5cf4f7c9c49271d624695acfe2e6a Mon Sep 17 00:00:00 2001 +From 047bb9ea625a0e2d10cb3185fdab05eb3c123fae Mon Sep 17 00:00:00 2001 From: Daniel Matuschek Date: Mon, 4 Aug 2014 10:06:56 +0200 -Subject: [PATCH 047/192] Added support for HiFiBerry DAC+ +Subject: [PATCH 047/194] 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. @@ -125554,10 +125554,10 @@ index 0000000..c63387b +MODULE_DESCRIPTION("ASoC Driver for HiFiBerry DAC+"); +MODULE_LICENSE("GPL v2"); -From 169fecad9b21239bfa863add3a28c2b28c0771d5 Mon Sep 17 00:00:00 2001 +From d417f6c0d6949188bf72f572791ecb35afdd4ea5 Mon Sep 17 00:00:00 2001 From: Daniel Matuschek Date: Mon, 4 Aug 2014 11:09:58 +0200 -Subject: [PATCH 048/192] Added driver for HiFiBerry Amp amplifier add-on board +Subject: [PATCH 048/194] 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. @@ -126426,10 +126426,10 @@ index 0000000..8f019e0 + +#endif /* _TAS5713_H */ -From bfaa96ef753c4e4b8bd6fa32d98dec3d29a27828 Mon Sep 17 00:00:00 2001 +From 03d656c1e3f44f046045801e81cd04ffb240ae1a Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 13 Apr 2015 19:14:18 +0100 -Subject: [PATCH 049/192] bcm2708: Allow option card devices to be configured +Subject: [PATCH 049/194] bcm2708: Allow option card devices to be configured via DT If the kernel is built with Device Tree support, and if a DT blob @@ -126454,10 +126454,10 @@ index 03fa1cb..c816526 100644 static struct platform_driver bcm2835_i2s_driver = { .probe = bcm2835_i2s_probe, -From 004ae70ecd0ba75f44339b5ecd4e1741051ac6fa Mon Sep 17 00:00:00 2001 +From b6953d682b2b312f1a259dac2595d4a1f39996af Mon Sep 17 00:00:00 2001 From: popcornmix Date: Mon, 13 Apr 2015 18:45:39 +0100 -Subject: [PATCH 050/192] Adding Device Tree support for some RPi audio cards +Subject: [PATCH 050/194] Adding Device Tree support for some RPi audio cards --- arch/arm/mach-bcm2709/bcm2709.c | 143 ++++++++++++++++++++++++++++++++++++++ @@ -126820,10 +126820,10 @@ index 126f1e9..7c6598e 100644 }; -From 9ec5f902ca815afa5ad61c4820b16e7bfe6e8497 Mon Sep 17 00:00:00 2001 +From 59955697bc15f97b2c9d39fdfd07d0cc44f6bce8 Mon Sep 17 00:00:00 2001 From: Timo Kokkonen Date: Wed, 29 Oct 2014 23:30:30 -0700 -Subject: [PATCH 051/192] Added support to reserve/enable a GPIO pin to be used +Subject: [PATCH 051/194] Added support to reserve/enable a GPIO pin to be used from pps-gpio module (LinuxPPS). Enable PPS modules in default config for RPi. @@ -126959,10 +126959,10 @@ index 57e1f3d..721559b 100644 +module_param(pps_gpio_pin, int, 0644); +MODULE_PARM_DESC(pps_gpio_pin, "Set GPIO pin to reserve for PPS"); -From 48370c036cd319379aba97fb3b5b0bc5a476c34d Mon Sep 17 00:00:00 2001 +From c26d9c1d3493331c6a87f2301a4fc1aa755debd1 Mon Sep 17 00:00:00 2001 From: Ryan Coe Date: Sat, 31 Jan 2015 18:25:49 -0700 -Subject: [PATCH 052/192] Update ds1307 driver for device-tree support +Subject: [PATCH 052/194] Update ds1307 driver for device-tree support Signed-off-by: Ryan Coe --- @@ -126989,10 +126989,10 @@ index 4ffabb3..c6789a7 100644 .driver = { .name = "rtc-ds1307", -From 55ac310dca9f3610902db3937ebf301b18b3f6ba Mon Sep 17 00:00:00 2001 +From 5a10e7bdb11bdeb128f7705d9409d0597dba138d Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 6 Feb 2015 13:50:57 +0000 -Subject: [PATCH 053/192] BCM270x_DT: Add pwr_led, and the required "input" +Subject: [PATCH 053/194] BCM270x_DT: Add pwr_led, and the required "input" trigger The "input" trigger makes the associated GPIO an input. This is to support @@ -127103,10 +127103,10 @@ index 0000000..2ca2b98 +MODULE_DESCRIPTION("Set LED GPIO to Input \"trigger\""); +MODULE_LICENSE("GPL"); -From 022a8e47780f3e5077d6b2710734b6603c44952b Mon Sep 17 00:00:00 2001 +From 72874b8ea7e0163a45c85f516b97e26349821b1d Mon Sep 17 00:00:00 2001 From: popcornmix Date: Fri, 20 Jun 2014 17:19:27 +0100 -Subject: [PATCH 054/192] bcm2709: Simplify and strip down IRQ handler +Subject: [PATCH 054/194] bcm2709: Simplify and strip down IRQ handler --- arch/arm/include/asm/entry-macro-multi.S | 2 + @@ -127325,10 +127325,10 @@ index d08591b..08d184c 100644 +1: get_irqnr_and_base r0, r2, r6, lr + .endm -From 0583ae47b0a83f3e8ace8bf7c5d0da6de8efe28e Mon Sep 17 00:00:00 2001 +From 84aa8f7265e0ec7e51faf76854c44176e0d4ba00 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Thu, 12 Feb 2015 11:17:53 +0000 -Subject: [PATCH 055/192] Fix LED "input" trigger implementation for 3.19 +Subject: [PATCH 055/194] Fix LED "input" trigger implementation for 3.19 --- drivers/leds/leds-gpio.c | 10 +++++++++- @@ -127415,10 +127415,10 @@ index 9a2b000..60accc5 100644 /* Set LED brightness level */ /* Must not sleep, use a workqueue if needed */ -From 7c65cd90b282b3ed93ad70f855db6131db3a265d Mon Sep 17 00:00:00 2001 +From d0ed177e729b655e9c30381cc1eb7bcf4707cb97 Mon Sep 17 00:00:00 2001 From: notro Date: Thu, 10 Jul 2014 13:59:47 +0200 -Subject: [PATCH 056/192] pinctrl-bcm2835: Set base to 0 give expected gpio +Subject: [PATCH 056/194] pinctrl-bcm2835: Set base to 0 give expected gpio numbering Signed-off-by: Noralf Tronnes @@ -127440,10 +127440,10 @@ index 8d908e3..7a1900d 100644 .can_sleep = false, }; -From a5aa225de371133af222f8cc2d64cca5845f245f Mon Sep 17 00:00:00 2001 +From 5f91a4dffe91a3cfabe202b31d40e58f9c4300cd Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 4 Feb 2015 10:02:24 +0000 -Subject: [PATCH 057/192] pinctrl-bcm2835: bcm2835_gpio_direction_output must +Subject: [PATCH 057/194] pinctrl-bcm2835: bcm2835_gpio_direction_output must set the value --- @@ -127471,10 +127471,10 @@ index 7a1900d..62f85aa 100644 static void bcm2835_gpio_set(struct gpio_chip *chip, unsigned offset, int value) -From 93528a99004c5273cfbacbd3efa439f919f35126 Mon Sep 17 00:00:00 2001 +From 7231eb4f1d3c4438cef92ebc28508f882d70c67e Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Tue, 24 Feb 2015 13:40:50 +0000 -Subject: [PATCH 058/192] pinctrl-bcm2835: Fix interrupt handling for GPIOs +Subject: [PATCH 058/194] pinctrl-bcm2835: Fix interrupt handling for GPIOs 28-31 and 46-53 Contrary to the documentation, the BCM2835 GPIO controller actually has @@ -127620,10 +127620,10 @@ index 62f85aa..c7cf266 100644 }, }; -From 350a32f43794babaedca70c9686bf91a4d76ec79 Mon Sep 17 00:00:00 2001 +From a829200d363d26f99e477ba78c466b1fdb216bb9 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Thu, 26 Feb 2015 09:58:22 +0000 -Subject: [PATCH 059/192] pinctrl-bcm2835: Only request the interrupts listed +Subject: [PATCH 059/194] pinctrl-bcm2835: Only request the interrupts listed in the DTB Although the GPIO controller can generate three interrupts (four counting @@ -127650,10 +127650,10 @@ index c7cf266..986779a 100644 pc->irq_data[i].irqgroup = i; -From 002d8609b029cb3240dfeb872587427d8ad7cfa8 Mon Sep 17 00:00:00 2001 +From 6f80523ec529eae5c842f5d0c7897b20aa60b5b3 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 27 Feb 2015 15:10:24 +0000 -Subject: [PATCH 060/192] enc28j60: Add device tree compatible string and an +Subject: [PATCH 060/194] enc28j60: Add device tree compatible string and an overlay --- @@ -127687,10 +127687,10 @@ index b1b5f66..c6b6e1a 100644 .probe = enc28j60_probe, .remove = enc28j60_remove, -From 9a7f2623274c034d489d2bde8479050ab7e8c00a Mon Sep 17 00:00:00 2001 +From f7a9d41164cc17757413b9320171b8ffa2d37ab3 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 25 Mar 2015 09:26:17 +0100 -Subject: [PATCH 061/192] Add driver for rpi-proto +Subject: [PATCH 061/194] 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 @@ -127905,10 +127905,10 @@ index 0000000..c6e45a0 +MODULE_DESCRIPTION("ASoC Driver for Raspberry Pi connected to PROTO board (WM8731)"); +MODULE_LICENSE("GPL"); -From 8372895d37d8430a0ebd1a6ecaac2e1c5a3b812d Mon Sep 17 00:00:00 2001 +From 69e7cec8f40f4dfb74a8a90765e6ec3e620a2c77 Mon Sep 17 00:00:00 2001 From: Clive Messer Date: Thu, 2 Apr 2015 12:22:55 +0100 -Subject: [PATCH 062/192] Add Device Tree support for RPi-DAC. +Subject: [PATCH 062/194] Add Device Tree support for RPi-DAC. --- sound/soc/bcm/rpi-dac.c | 21 +++++++++++++++++++++ @@ -127983,10 +127983,10 @@ index b4eaa44..afe1b41 100644 }; -From 583994e31e3e463163484a0d4b5ca4fb6249c014 Mon Sep 17 00:00:00 2001 +From 2ba0215ccee2c6c6ade529efcbb3596d54855fde Mon Sep 17 00:00:00 2001 From: popcornmix Date: Mon, 13 Apr 2015 17:16:29 +0100 -Subject: [PATCH 063/192] config: Add default configs +Subject: [PATCH 063/194] config: Add default configs --- arch/arm/configs/bcm2709_defconfig | 1204 ++++++++++++++++++++++++++++++++++++ @@ -130411,10 +130411,10 @@ index 0000000..6a41231 +CONFIG_CRC_ITU_T=y +CONFIG_LIBCRC32C=y -From 1f4b5f09c42a0cffa2cb1edb046b40c3edf0876d Mon Sep 17 00:00:00 2001 +From 36014aab6345095255df33a004a5b1cc53c9519d Mon Sep 17 00:00:00 2001 From: Steve Glendinning Date: Thu, 19 Feb 2015 18:47:12 +0000 -Subject: [PATCH 064/192] smsx95xx: fix crimes against truesize +Subject: [PATCH 064/194] 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. @@ -130449,10 +130449,10 @@ index e29a323..aff63dc usbnet_skb_return(dev, ax_skb); } -From 0b6139e6075209396b47af33509cec1a78cc9fcb Mon Sep 17 00:00:00 2001 +From 11c84b6f4514f3080a198e11169df17488decdd2 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Fri, 17 Apr 2015 16:58:45 +0100 -Subject: [PATCH 065/192] smsc95xx: Disable turbo mode by default +Subject: [PATCH 065/194] smsc95xx: Disable turbo mode by default --- drivers/net/usb/smsc95xx.c | 2 +- @@ -130472,10 +130472,10 @@ index aff63dc..08a8a8c 100755 MODULE_PARM_DESC(turbo_mode, "Enable multiple frames per Rx transaction"); -From 2334df3103a87c0f035438ae4965e9068439bdf3 Mon Sep 17 00:00:00 2001 +From 31beb06e2bf776509f4747a42f14ea0d98f72e98 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 17 Apr 2015 19:30:22 +0100 -Subject: [PATCH 066/192] Add blk_pos parameter to mmc multi_io_quirk callback +Subject: [PATCH 066/194] Add blk_pos parameter to mmc multi_io_quirk callback --- drivers/mmc/card/block.c | 1 + @@ -130558,10 +130558,10 @@ index b0258e8..d3cdad9 100644 struct mmc_card; -From b4681b0522340cc6b5437ed1c0599b8fd90a6f6a Mon Sep 17 00:00:00 2001 +From 46e4522a701337da606e48acc878cb44de55bf7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Wed, 29 Apr 2015 17:24:02 +0200 -Subject: [PATCH 067/192] bcm2835: bcm2835_defconfig +Subject: [PATCH 067/194] bcm2835: bcm2835_defconfig MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -131891,10 +131891,10 @@ index 31cb073..2e8a95a 100644 # CONFIG_XZ_DEC_ARM is not set # CONFIG_XZ_DEC_ARMTHUMB is not set -From 2a9988d49a89b6decd3594930753f2a26f65bd24 Mon Sep 17 00:00:00 2001 +From 79b69b32c28af0ee8ef144635982f6ba2908ca78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 1 May 2015 23:00:15 +0200 -Subject: [PATCH 068/192] BCM270x_DT: Add mailbox bcm2708-vcio +Subject: [PATCH 068/194] BCM270x_DT: Add mailbox bcm2708-vcio MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -131935,10 +131935,10 @@ index 721559b..4a00561 100644 #ifdef CONFIG_BCM2708_GPIO bcm_register_device_dt(&bcm2708_gpio_device); -From ae4cde25a8fb5a195befa3b731b5a66e324a23e2 Mon Sep 17 00:00:00 2001 +From c1d19f13510c4a60e9b95f8cbad3cda438fe76c8 Mon Sep 17 00:00:00 2001 From: Gordon Hollingworth Date: Tue, 12 May 2015 14:47:56 +0100 -Subject: [PATCH 069/192] rpi-ft5406: Add touchscreen driver for pi LCD display +Subject: [PATCH 069/194] rpi-ft5406: Add touchscreen driver for pi LCD display --- drivers/input/touchscreen/Kconfig | 7 + @@ -132255,10 +132255,10 @@ index cc284ed..d3ea839 100644 VCMSG_SET_CURSOR_STATE = 0x00008011, }; -From d22a193b895ee5d962c1ca9af1da96f1b6390c04 Mon Sep 17 00:00:00 2001 +From 07cd5d06d9fee39942dcc430231db73bb53c7e5b Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 13 Oct 2014 11:47:53 +0100 -Subject: [PATCH 070/192] Improve __copy_to_user and __copy_from_user +Subject: [PATCH 070/194] Improve __copy_to_user and __copy_from_user performance Provide a __copy_from_user that uses memcpy. On BCM2708, use @@ -133783,10 +133783,10 @@ index 3e58d71..0622891 100644 static unsigned long noinline __clear_user_memset(void __user *addr, unsigned long n) -From 9873c8a1e6a5a473081af4cc91d7de1a05d1f7ca Mon Sep 17 00:00:00 2001 +From edc3241b67c3654ee59acfaead768b91aa84df02 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 27 May 2015 17:22:15 +0100 -Subject: [PATCH 071/192] bcm2835-audio: Create the platform device if the DT +Subject: [PATCH 071/194] bcm2835-audio: Create the platform device if the DT node is disabled For backwards compatibility, allow the built-in ALSA driver to be enabled @@ -133840,10 +133840,10 @@ index 4a00561..dec8043 100644 bcm_register_device_dt(&bcm2708_spi_device); -From 428c15e2c44134e3965874ea636ff17b1f30647e Mon Sep 17 00:00:00 2001 +From 344087912784db8b1eee766a136a02ff817c8fca 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 072/192] ARM: bcm2835: Set Serial number and Revision +Subject: [PATCH 072/194] ARM: bcm2835: Set Serial number and Revision MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -133902,10 +133902,10 @@ index 70f2f39..f7fdacd 100644 static const char * const bcm2835_compat[] = { -From 0dfd9537626392726c642be4349428c2c9ff30cc Mon Sep 17 00:00:00 2001 +From f3602346755806054cfcf1cf2f905b29468af420 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Tue, 16 Jun 2015 17:47:27 +0100 -Subject: [PATCH 073/192] platform: Add force_core command line setting to boot +Subject: [PATCH 073/194] platform: Add force_core command line setting to boot from a different core number --- @@ -133976,10 +133976,10 @@ index dec8043..fe71c50 100644 module_param(serial, uint, 0644); module_param(uart_clock, uint, 0644); -From bd76380d909bf43f5b0e58ba97cac4de78ed112f Mon Sep 17 00:00:00 2001 +From 45c0c407d8f793347af885fa66d158dce5fdb452 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Thu, 18 Jun 2015 17:46:17 +0100 -Subject: [PATCH 074/192] mach-bcm270x: Enable the building of pinctrl-bcm2835 +Subject: [PATCH 074/194] mach-bcm270x: Enable the building of pinctrl-bcm2835 --- drivers/pinctrl/Makefile | 1 + @@ -133998,10 +133998,10 @@ index 6eadf04..9119513 100644 obj-$(CONFIG_ARCH_BERLIN) += berlin/ obj-y += freescale/ -From 540db38d70932afa9082b471b8e0cef881ee9c93 Mon Sep 17 00:00:00 2001 +From 56add5560092eda46f452d9f9dfa3c26c44fd7b8 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 19 Jun 2015 16:41:39 +0100 -Subject: [PATCH 075/192] BCM270X_DT: Document the i2s-mmap overlay +Subject: [PATCH 075/194] BCM270X_DT: Document the i2s-mmap overlay --- arch/arm/boot/dts/overlays/README | 6 ++++++ @@ -134025,10 +134025,10 @@ index 3e08f98..7fa6d33 100644 Info: Configures the IQaudio DAC audio card Load: dtoverlay=iqaudio-dac -From 777f50046b3972b9adbb72dcf0e8a6222295d021 Mon Sep 17 00:00:00 2001 +From 894275ddffee89565ddb77ae2e1bf98aff7cfc09 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 17 Jun 2015 11:36:53 +0100 -Subject: [PATCH 076/192] bcm2835-sdhost: Improve error handling and recovery +Subject: [PATCH 076/194] bcm2835-sdhost: Improve error handling and recovery 1) Expose the hw_reset method to the MMC framework, removing many internal calls by the driver. @@ -135120,10 +135120,10 @@ index eef8a24..6277e43 100644 if (host->allow_dma) { -From 5129948c33f7747e199f35cfc4b800a14bb60874 Mon Sep 17 00:00:00 2001 +From e8a98639901cab1a1a82b0282d8b49364fe547b2 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 4 Jun 2015 13:11:46 -0700 -Subject: [PATCH 077/192] ARM: bcm2835: Add the Raspberry Pi firmware driver +Subject: [PATCH 077/194] ARM: bcm2835: Add the Raspberry Pi firmware driver This gives us a function for making mailbox property channel requests of the firmware, which is most notable in that it will let us get and @@ -135557,10 +135557,10 @@ index 0000000..9d9efb7 + void *data, size_t tag_size); +struct rpi_firmware *rpi_firmware_get(struct device_node *firmware_node); -From db77f4974bcf574c2e8171752cb1e5c4aa57e367 Mon Sep 17 00:00:00 2001 +From 167951d88cd1d4a33ff993c661fb4e41ab469153 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Sun, 22 Mar 2015 13:33:23 +0000 -Subject: [PATCH 078/192] config: Enable ZSMALLOC, ZRAM and PGTABLE_MAPPING +Subject: [PATCH 078/194] config: Enable ZSMALLOC, ZRAM and PGTABLE_MAPPING --- arch/arm/configs/bcm2709_defconfig | 4 ++++ @@ -135612,10 +135612,10 @@ index 6a41231..cacde14 100644 CONFIG_BLK_DEV_CRYPTOLOOP=m CONFIG_BLK_DEV_DRBD=m -From 13fe405dc46bf5fbc787303ea266ac5f8968e367 Mon Sep 17 00:00:00 2001 +From a11d3d8a1598bc8f95e7ea50c3187d33ddd64a28 Mon Sep 17 00:00:00 2001 From: Gordon Hollingworth Date: Mon, 22 Jun 2015 16:27:07 +0100 -Subject: [PATCH 079/192] Add rpi-ft5406 overlay Add rpi-ft5406 driver as +Subject: [PATCH 079/194] Add rpi-ft5406 overlay Add rpi-ft5406 driver as module --- @@ -135702,10 +135702,10 @@ index cacde14..f952ff2 100644 CONFIG_TOUCHSCREEN_STMPE=m CONFIG_INPUT_MISC=y -From c2187533e3a163020c2fa5f93a307c8f009a9beb Mon Sep 17 00:00:00 2001 +From fe5fb63fcee650a8a86620ae28b340c1a26254b5 Mon Sep 17 00:00:00 2001 From: Gordon Hollingworth Date: Tue, 23 Jun 2015 09:53:40 +0100 -Subject: [PATCH 080/192] Fix driver detection failure Check that the buffer +Subject: [PATCH 080/194] Fix driver detection failure Check that the buffer response is non-zero meaning the touchscreen was detected --- @@ -135726,10 +135726,10 @@ index f55151b..d41851d 100644 dev_dbg(&pdev->dev, "Got TS buffer 0x%x\n", request.tag.val); } -From 14882c1c06a7fc116a527c56939d624a3ff31a93 Mon Sep 17 00:00:00 2001 +From e61f9b07f84cc33909e24abac78bd6d409c58378 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Tue, 23 Jun 2015 13:24:01 +0100 -Subject: [PATCH 081/192] config: Enable 8250 serial port +Subject: [PATCH 081/194] config: Enable 8250 serial port --- arch/arm/configs/bcm2709_defconfig | 7 +++++++ @@ -135777,10 +135777,10 @@ index f952ff2..0c25d8b 100644 CONFIG_HW_RANDOM=y CONFIG_HW_RANDOM_BCM2835=m -From 3a51951e18f4346bcf8297e5c14f8ff26d8c2ecb Mon Sep 17 00:00:00 2001 +From 65f477430998ae66a22db184a70e607fc3181a28 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Tue, 23 Jun 2015 14:10:58 +0100 -Subject: [PATCH 082/192] config: Enable POWER_RESET_GPIO +Subject: [PATCH 082/194] config: Enable POWER_RESET_GPIO --- arch/arm/configs/bcm2709_defconfig | 2 ++ @@ -135814,10 +135814,10 @@ index 0c25d8b..e757db6 100644 CONFIG_THERMAL=y CONFIG_THERMAL_BCM2835=y -From cfdf9d309e1e63e88876aa12a7e9579bebfae6de Mon Sep 17 00:00:00 2001 +From 35aa75e5d747e46e1198f67134c763b4f1b98594 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Fri, 26 Jun 2015 17:37:38 +0100 -Subject: [PATCH 083/192] bcm2708-vcio: Remove restriction of only a single +Subject: [PATCH 083/194] bcm2708-vcio: Remove restriction of only a single instance being open We need more than one process to be able to use mailbox interface (e.g. HW cursor in fbturbo and hello_fft). @@ -135862,10 +135862,10 @@ index d91672b..06fb2c2f 100644 return 0; -From 8d9f0a812d37b52a72dd33b082c5681efb72c539 Mon Sep 17 00:00:00 2001 +From 35f7329f05c2ecaae027667885877a8c56b94713 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 26 Jun 2015 08:39:19 +0100 -Subject: [PATCH 084/192] BCM270X_DT: Create a "core" clock, use it for SPI and +Subject: [PATCH 084/194] BCM270X_DT: Create a "core" clock, use it for SPI and sdhost --- @@ -136016,10 +136016,10 @@ index b408ab4..897204a 100644 }; }; -From 7903edbb124634b2f953e9573d0a8995212a229f Mon Sep 17 00:00:00 2001 +From 4f6c6987f229e576177ac3808eaac7ecbb8be626 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 24 Jun 2015 09:24:31 +0100 -Subject: [PATCH 085/192] BCM270X_DT: Add MCP7941X to i2c-rtc overlay +Subject: [PATCH 085/194] BCM270X_DT: Add MCP7941X to i2c-rtc overlay --- arch/arm/boot/dts/overlays/README | 3 +++ @@ -136072,10 +136072,10 @@ index 6bccfdc..7052c71 100644 pcf8523 = <&pcf8523>,"status"; pcf8563 = <&pcf8563>,"status"; -From a0ec918bcbee508aa2225dcbe1661082cc84339c Mon Sep 17 00:00:00 2001 +From 11475d2c168fcfcf83b8b6bdc29650471f096ec2 Mon Sep 17 00:00:00 2001 From: P33M Date: Wed, 24 Jun 2015 11:23:06 +0100 -Subject: [PATCH 086/192] dts/overlays: document DHT11 overlay +Subject: [PATCH 086/194] dts/overlays: document DHT11 overlay --- arch/arm/boot/dts/overlays/README | 8 ++++++++ @@ -136101,10 +136101,10 @@ index 425eb19..9406cf3 100644 -From cb0cf2cf18e4f6a672bcb7cd5c36d8b7c29fb4c3 Mon Sep 17 00:00:00 2001 +From b6439fecdf33f97e09a351de75d930c804c141fc Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Thu, 25 Jun 2015 12:16:11 +0100 -Subject: [PATCH 087/192] gpio-poweroff: Allow it to work on Raspberry Pi +Subject: [PATCH 087/194] 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 @@ -136219,10 +136219,10 @@ index e5332f1..6e3fec2 100644 "%s: pm_power_off function already registered", __func__); -From 422f627455cd585e82251a4980509b58b8a24bdc Mon Sep 17 00:00:00 2001 +From adaad06ec8f94c9cd95013453af95644956f9474 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 17 Jun 2015 17:10:40 +0100 -Subject: [PATCH 088/192] BCM270x_DT: Default Compute Module i2c, i2s and spi +Subject: [PATCH 088/194] BCM270x_DT: Default Compute Module i2c, i2s and spi support --- @@ -136312,10 +136312,10 @@ index e82fcb2..af252bd 100755 }; }; -From 0b3f2c73d03ef9541e05e35ccd69b6731a1e44f1 Mon Sep 17 00:00:00 2001 +From d0cd28880a9eb9b2a268164c147050544256cb5a Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 22 Jun 2015 14:21:55 +0100 -Subject: [PATCH 089/192] BCM270X_DT: Sort nodes by bus address, and +Subject: [PATCH 089/194] BCM270X_DT: Sort nodes by bus address, and consolidate aliases --- @@ -136557,10 +136557,10 @@ index 24fa849..ccb9c31 100644 &gpio { -From 596aae25defa66a027ff755bfbaa4927b4069ea5 Mon Sep 17 00:00:00 2001 +From 8ca88ac3ab583e9e33cc19c1bfdc67cec98a4116 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 22 Jun 2015 14:23:03 +0100 -Subject: [PATCH 090/192] i2c-bcm2708/BCM270X_DT: Add support for I2C2 +Subject: [PATCH 090/194] i2c-bcm2708/BCM270X_DT: Add support for I2C2 The third I2C bus (I2C2) is normally reserved for HDMI use. Careless use of this bus can break an attached display - use with caution. @@ -136733,10 +136733,10 @@ index 8773203..7a24fbe 100644 goto out_free_bi; } -From 6b690b074fef2a156777f6cfe4b039be5f750580 Mon Sep 17 00:00:00 2001 +From bd2634c01ce6a19ebe2a02dc9640103c964f9a57 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 29 Jun 2015 12:14:02 +0100 -Subject: [PATCH 091/192] BCM270X_DT: Correct the lirc-rpi overlay +Subject: [PATCH 091/194] BCM270X_DT: Correct the lirc-rpi overlay documentation The polarity of the "sense" parameter was inverted with respect to reality. @@ -136762,10 +136762,10 @@ index 0ed7094..ec762d2 100644 (default "-1") -From d4e71046e5780edf317b9f46339ac4806ea523ef Mon Sep 17 00:00:00 2001 +From 7c518fad8a540daf0f0f4ce23f120ad335ee84ba Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Thu, 25 Jun 2015 08:47:09 +0100 -Subject: [PATCH 092/192] bcm2835-sdhost: Further improve overclock back-off +Subject: [PATCH 092/194] bcm2835-sdhost: Further improve overclock back-off --- drivers/mmc/host/bcm2835-sdhost.c | 144 +++++++++++++++++++++----------------- @@ -137057,10 +137057,10 @@ index 6277e43..a03db06 100644 iomem = platform_get_resource(pdev, IORESOURCE_MEM, 0); -From b6a92ce71483993af45e67ea6f36169a0f830345 Mon Sep 17 00:00:00 2001 +From df5af6405a664dd3613dd6000e0026d0b8d6560e Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Tue, 30 Jun 2015 10:28:59 +0100 -Subject: [PATCH 093/192] i2c-bcm2708: Increase timeouts to allow larger +Subject: [PATCH 093/194] i2c-bcm2708: Increase timeouts to allow larger transfers Use the timeout value provided by the I2C_TIMEOUT ioctl when waiting @@ -137098,10 +137098,10 @@ index 7a24fbe..8b8762d 100644 dev_err(&adap->dev, "transfer timed out\n"); goto error_timeout; -From 06903fef22d5a4aa1d01d074ace7525b08700de6 Mon Sep 17 00:00:00 2001 +From cf7320fe23958eadcb8c885a4e6626f61d1758a6 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Tue, 30 Jun 2015 10:33:52 +0100 -Subject: [PATCH 094/192] spi-bcm2708: Increase timeout from 150ms to 1s +Subject: [PATCH 094/194] spi-bcm2708: Increase timeout from 150ms to 1s See: https://github.com/raspberrypi/linux/issues/260 --- @@ -137125,10 +137125,10 @@ index 041b5e2..5c0214e 100644 struct bcm2708_spi { spinlock_t lock; -From 407ee1c2c3e70a2aefc441582e65e84ed89fc157 Mon Sep 17 00:00:00 2001 +From 92405d1da943839b52b2a7d8ceb32ecc14884fe4 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 15 Jun 2015 09:59:38 +0100 -Subject: [PATCH 095/192] bcm2708-spi: Don't use static pin configuration with +Subject: [PATCH 095/194] bcm2708-spi: Don't use static pin configuration with DT Also remove superfluous error checking - the SPI framework ensures the @@ -137167,10 +137167,10 @@ index 5c0214e..781c747 100644 master = spi_alloc_master(&pdev->dev, sizeof(*bs)); if (!master) { -From 72fd701def8bc905196e699d8dc7920145920985 Mon Sep 17 00:00:00 2001 +From 44d3b1308f37ddb8233ec1d4ff0bc37035db2580 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 15 Jun 2015 10:10:59 +0100 -Subject: [PATCH 096/192] bcm2708-i2s: Don't use static pin configuration with +Subject: [PATCH 096/194] bcm2708-i2s: Don't use static pin configuration with DT --- @@ -137193,10 +137193,10 @@ index a515992..5e93cd6 100644 /* * Adjust the data length according to the format. -From bb84c0676d675942bba9b1028e58558525aa1555 Mon Sep 17 00:00:00 2001 +From 2a1da619b98c4efc002e67e20c3b05d5c0019bb7 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Tue, 30 Jun 2015 14:12:42 +0100 -Subject: [PATCH 097/192] serial: 8250: Don't crash when nr_uarts is 0 +Subject: [PATCH 097/194] serial: 8250: Don't crash when nr_uarts is 0 --- drivers/tty/serial/8250/8250_core.c | 2 ++ @@ -137216,10 +137216,10 @@ index 4506e40..f03a19a 100644 for (i = 0; i < nr_uarts; i++) { struct uart_8250_port *up = &serial8250_ports[i]; -From 815181f5a9b19b78999ab59ddcf633e5a7109eaf Mon Sep 17 00:00:00 2001 +From e3ca03c3d79b6b1c748b3a660681653bb9aaad23 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 26 Jun 2015 08:50:11 +0100 -Subject: [PATCH 098/192] BCM270X_DT: Add overlay to enable uart1 +Subject: [PATCH 098/194] BCM270X_DT: Add overlay to enable uart1 N.B. The UART1 clock is derived from the core clock. The firmware will update clock-frequency if core_freq is set, but be aware @@ -137388,10 +137388,10 @@ index e757db6..363c894 100644 CONFIG_SERIAL_AMBA_PL011_CONSOLE=y CONFIG_SERIAL_OF_PLATFORM=y -From e61326ded97b93b02072eb60490487fb0082a819 Mon Sep 17 00:00:00 2001 +From 3ff51303559b9d4af4d624ae1d995547714ffa33 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 24 Jun 2015 14:10:44 +0100 -Subject: [PATCH 099/192] spi-bcm2835: Support pin groups other than 7-11 +Subject: [PATCH 099/194] 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 @@ -137472,10 +137472,10 @@ index a506773..cf3190f 100644 /* and set up the "mode" and level */ dev_info(&spi->dev, "setting up native-CS%i as GPIO %i\n", -From 716af635225849cc0b689e794e0ce5174d5a2218 Mon Sep 17 00:00:00 2001 +From 1cb594e055d515441db699c6830e6118b3249141 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Tue, 30 Jun 2015 17:37:38 +0100 -Subject: [PATCH 100/192] BCM270X_DT: Change pio_limit of sdhost driver to 1 +Subject: [PATCH 100/194] BCM270X_DT: Change pio_limit of sdhost driver to 1 --- arch/arm/boot/dts/overlays/sdhost-overlay.dts | 2 +- @@ -137495,10 +137495,10 @@ index 897204a..2da14a4 100644 }; }; -From 11f29a2e4b02f7a16b50e4aec2491fbfee5048ae Mon Sep 17 00:00:00 2001 +From ff86e95037b78274e2902d18d76090dcb003e0f2 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 1 Jul 2015 12:51:52 +0100 -Subject: [PATCH 101/192] bcm2835-sdhost: Clear HBLC for PIO mode +Subject: [PATCH 101/194] bcm2835-sdhost: Clear HBLC for PIO mode Also update pio_limit default in overlay README. --- @@ -137534,10 +137534,10 @@ index a03db06..d65870a 100644 BUG_ON(!host->data); } -From 9b4922dff10f1ca81cdc0d4074beeb7a3ad59850 Mon Sep 17 00:00:00 2001 +From df4296ba4b42b56831e16c492dc70f1097a7c502 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 3 Jul 2015 12:21:01 +0100 -Subject: [PATCH 102/192] BCM270X_DT: I2S needs function Alt2 +Subject: [PATCH 102/194] BCM270X_DT: I2S needs function Alt2 --- arch/arm/boot/dts/bcm2708-rpi-b-plus.dts | 2 +- @@ -137599,10 +137599,10 @@ index f25f0a2..62d1c62 100644 }; -From 50fd96b5cb84dc39a0f4c1901230338822b99000 Mon Sep 17 00:00:00 2001 +From ac63105dd026fcea06b4879913f2bac239203296 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 26 Jun 2015 14:16:15 +0200 -Subject: [PATCH 103/192] configs: Incorporate v4.1 dependency changes +Subject: [PATCH 103/194] configs: Incorporate v4.1 dependency changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -137765,10 +137765,10 @@ index 363c894..80f84d7 100644 CONFIG_CRC_ITU_T=y CONFIG_LIBCRC32C=y -From bee1ff8246521c98c30d45c8b6b443ae10312d49 Mon Sep 17 00:00:00 2001 +From 8d3f34752522072649e35cc388247776f7516c80 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 3 Jul 2015 15:47:33 +0100 -Subject: [PATCH 104/192] bcmrpi_defconfigs: Add SND_SOC_WM8804_I2C (for +Subject: [PATCH 104/194] bcmrpi_defconfigs: Add SND_SOC_WM8804_I2C (for HifiBerry Digi) 4.1 has split out support for the I2C and SPI variants, so it now @@ -137803,10 +137803,10 @@ index 80f84d7..14b91fdf 100644 CONFIG_SOUND_PRIME=m CONFIG_HIDRAW=y -From 8309bfc0b04c5c60f2f65398d6691829dccb3841 Mon Sep 17 00:00:00 2001 +From 78f7ddbbccddd77abc39c534e4181c067268f057 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Sat, 4 Jul 2015 19:55:23 +0100 -Subject: [PATCH 105/192] squash: BCM270X_DT: I2S only needs Alt2 on 28-31 +Subject: [PATCH 105/194] squash: BCM270X_DT: I2S only needs Alt2 on 28-31 See: https://github.com/raspberrypi/linux/issues/1046 --- @@ -137855,10 +137855,10 @@ index 62d1c62..f25f0a2 100644 }; -From 172aff3948311932c95b7a2e211df26638e3a07e Mon Sep 17 00:00:00 2001 +From 8a6c44d157b3d7b8a2ffbb5bfcd9929112e285cb Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 8 Jul 2015 14:48:57 +0100 -Subject: [PATCH 106/192] vchiq_arm: Two cacheing fixes +Subject: [PATCH 106/194] vchiq_arm: Two cacheing fixes 1) Make fragment size vary with cache line size Without this patch, non-cache-line-aligned transfers may corrupt @@ -138129,10 +138129,10 @@ index c739083..5edba23 100644 kfree(pagelist); } -From 607d6a667b81d12a1acd00e847769fcbae5fdc06 Mon Sep 17 00:00:00 2001 +From 6aee5d67caeb35ea46173fd667acb8db50d4b8e3 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Tue, 30 Jun 2015 09:10:36 +0100 -Subject: [PATCH 107/192] BCM270X_DT: Overlay for the Fen Logic VGA666 board +Subject: [PATCH 107/194] BCM270X_DT: Overlay for the Fen Logic VGA666 board The VGA666 board requires GPIOs 2-21 (so no I2C or UART). Using the overlay (instead of a custom dt-blob.bin) has the advantage that it will @@ -138214,10 +138214,10 @@ index 0000000..7fcab96 + }; +}; -From 79d8c2b5d515b281a7edb90d131ffb5b40abe175 Mon Sep 17 00:00:00 2001 +From ceeff37240ae30a6dcaaaa60139d07250d815ad2 Mon Sep 17 00:00:00 2001 From: petit-miner Date: Fri, 10 Jul 2015 13:59:18 +0200 -Subject: [PATCH 108/192] Added support for 2 mcp2515 CAN Bus IC +Subject: [PATCH 108/194] Added support for 2 mcp2515 CAN Bus IC See: https://github.com/raspberrypi/linux/issues/1018 https://github.com/raspberrypi/linux/pull/1049 @@ -138347,10 +138347,10 @@ index 0000000..6bef9ae + }; +}; -From 0e7e559458e0ac6cd98e31d22bdec517d4fbc5ac Mon Sep 17 00:00:00 2001 +From da5403849fcc135a3448b43e89642e2ea6551c0d Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Tue, 5 May 2015 13:27:45 -0700 -Subject: [PATCH 109/192] mailbox: Enable BCM2835 mailbox support +Subject: [PATCH 109/194] mailbox: Enable BCM2835 mailbox support This mailbox driver provides a single mailbox channel to write 32-bit values to the VPU and get a 32-bit response. The Raspberry Pi @@ -138629,10 +138629,10 @@ index 0000000..4b13268 +MODULE_DESCRIPTION("BCM2835 mailbox IPC driver"); +MODULE_LICENSE("GPL v2"); -From 895893101b62145fbbf31701d8d21b5ed1b388b5 Mon Sep 17 00:00:00 2001 +From 7ce183a315873dea7a5e7bbe87aed0b014da3e2f Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 13 May 2015 13:10:32 -0700 -Subject: [PATCH 110/192] mailbox/bcm2835: Fix mailbox full detection. +Subject: [PATCH 110/194] mailbox/bcm2835: Fix mailbox full detection. With the VC reader blocked and the ARM writing, MAIL0_STA reads empty permanently while MAIL1_STA goes from empty (0x40000000) to non-empty @@ -138671,10 +138671,10 @@ index 4b13268..0b47dd4 100644 return ret; } -From 06b12346293fb13dc45bb7fcc7a66abd1358e881 Mon Sep 17 00:00:00 2001 +From 4fe6ec85193b087974ff98c9f045c75e1140f4df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 26 Jun 2015 14:19:30 +0200 -Subject: [PATCH 111/192] mailbox: bcm2835: Support ARCH_BCM270x +Subject: [PATCH 111/194] mailbox: bcm2835: Support ARCH_BCM270x MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -138790,10 +138790,10 @@ index 19b491d..cc07d71 100644 dev_dbg(dev, "%s: mailbox not free\n", __func__); mutex_unlock(&con_mutex); -From b1528cb117ad1b7245dd08e1169b3a6763ca2fc3 Mon Sep 17 00:00:00 2001 +From 84366c44917358cb25a7d32db1a875a76dc01172 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 4 Jun 2015 13:11:47 -0700 -Subject: [PATCH 112/192] ARM: bcm2835: Add the firmware driver information to +Subject: [PATCH 112/194] ARM: bcm2835: Add the firmware driver information to the RPi DT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 @@ -138827,10 +138827,10 @@ index 466f02b..5cdfd5a 100644 audio: audio { compatible = "brcm,bcm2835-audio"; -From a598409cb3143b78a7b7d14af0013c8ef23360c2 Mon Sep 17 00:00:00 2001 +From 32122f07a1b53f457f2e58f70e36d8ba40830747 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 26 Jun 2015 14:21:20 +0200 -Subject: [PATCH 113/192] firmware: bcm2835: Add missing property tags +Subject: [PATCH 113/194] firmware: bcm2835: Add missing property tags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -138892,10 +138892,10 @@ index 9d9efb7..d3933af 100644 RPI_FIRMWARE_GET_COMMAND_LINE = 0x00050001, RPI_FIRMWARE_GET_DMA_CHANNELS = 0x00060001, -From 053d4a654a4c93a03673b75558096a71a96188b6 Mon Sep 17 00:00:00 2001 +From 3a4eb21d0f34ac3731ad50254d9647a9c6149b60 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 114/192] firmware: bcm2835: Support ARCH_BCM270x +Subject: [PATCH 114/194] firmware: bcm2835: Support ARCH_BCM270x MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -139001,10 +139001,10 @@ index dd506cd3..b980d53 100644 MODULE_AUTHOR("Eric Anholt "); MODULE_DESCRIPTION("Raspberry Pi firmware driver"); -From c283182d1690a0cc5425276386eaa259af64cc25 Mon Sep 17 00:00:00 2001 +From 6bb3159eec777f0be2bde6fa326630902922fa1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 26 Jun 2015 14:26:10 +0200 -Subject: [PATCH 115/192] firmware: bcm2835: Support legacy mailbox API +Subject: [PATCH 115/194] firmware: bcm2835: Support legacy mailbox API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -139094,10 +139094,10 @@ index d3933af..9a08cf1 100644 u32 tag, void *data, size_t len); int rpi_firmware_property_list(struct rpi_firmware *fw, -From 5f8125ffe004ab3feac693049b27054aa421f751 Mon Sep 17 00:00:00 2001 +From ae8233fb7fb37dff484ef02baa582505c603fe56 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 116/192] char: broadcom: Add vcio module +Subject: [PATCH 116/194] char: broadcom: Add vcio module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -139321,10 +139321,10 @@ index 0000000..c19bc20 +MODULE_DESCRIPTION("Mailbox userspace access"); +MODULE_LICENSE("GPL"); -From 1d303f5e9c3ec0dbc6f8486e334dd4c9943142c8 Mon Sep 17 00:00:00 2001 +From bedcb6319a1def5a4c70a6759d4bb9ce7254d896 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 26 Jun 2015 14:37:19 +0200 -Subject: [PATCH 117/192] BCM270x: Switch to firmware driver +Subject: [PATCH 117/194] BCM270x: Switch to firmware driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -139931,10 +139931,10 @@ index 06fb2c2f..2e4031b 100644 MODULE_DESCRIPTION("ARM I/O to VideoCore processor"); MODULE_LICENSE("GPL"); -From ce2bb52fb7a2cd00f96c4977e00fa0a6fd3993a6 Mon Sep 17 00:00:00 2001 +From d5d6dd768567d336540aa3c1d7d32d15b27206ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 26 Jun 2015 14:39:21 +0200 -Subject: [PATCH 118/192] bcm2835: Switch to firmware driver +Subject: [PATCH 118/194] bcm2835: Switch to firmware driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -139990,10 +139990,10 @@ index 47f2a6a..c284414 100644 CONFIG_EXT2_FS_XATTR=y CONFIG_EXT2_FS_POSIX_ACL=y -From 8539add30257919e1313ca766c63f715b0f3337b Mon Sep 17 00:00:00 2001 +From 68b75a870ee4e2d22cc4891458b46a3fc5efcd61 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 13 Jul 2015 13:25:31 +0100 -Subject: [PATCH 119/192] Merge pull request #1059 from pelwell/rpi-4.0.y +Subject: [PATCH 119/194] Merge pull request #1059 from pelwell/rpi-4.0.y w1_therm: Back-port locking improvements from 4.2-rc1 --- @@ -140188,10 +140188,10 @@ index 55eb86c..2f029e8 100644 { int err, i; -From 42d3e810841a1f6e2076f30aa7dcb436f7dd6165 Mon Sep 17 00:00:00 2001 +From 3d5d028cce3291fb16c6b121205a9a737a8d62d5 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Tue, 14 Jul 2015 11:11:51 +0100 -Subject: [PATCH 120/192] vchiq_arm: Sort out the vmalloc case +Subject: [PATCH 120/194] vchiq_arm: Sort out the vmalloc case See: https://github.com/raspberrypi/linux/issues/1055 --- @@ -140230,10 +140230,10 @@ index 5edba23..56bff05 100644 *need_release = 0; /* do not try and release vmalloc pages */ } else { -From 368b0be0685c3adf312bc6db8a8f37e19ece8a57 Mon Sep 17 00:00:00 2001 +From 0695304c6d74cd2e5eabc66f121e9d6b1bbbcff8 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Tue, 14 Jul 2015 10:26:09 +0100 -Subject: [PATCH 121/192] spidev: Add "spidev" compatible string to silence +Subject: [PATCH 121/194] spidev: Add "spidev" compatible string to silence warning See: https://github.com/raspberrypi/linux/issues/1054 @@ -140254,10 +140254,10 @@ index 92c909e..0535375 100644 }; MODULE_DEVICE_TABLE(of, spidev_dt_ids); -From 99061bbd52c6b72e32b65c8c1e7b8b315cf242eb Mon Sep 17 00:00:00 2001 +From c17de280cbfd43d84d3948dc5b175c596d090009 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Tue, 14 Jul 2015 14:32:47 +0100 -Subject: [PATCH 122/192] Merge pull request #1043 from XECDesign/sense-4.0 +Subject: [PATCH 122/194] Merge pull request #1043 from XECDesign/sense-4.0 mfd: Add Raspberry Pi Sense HAT core driver --- @@ -141190,10 +141190,10 @@ index 0000000..56196dc + +#endif -From fe5f9d51a9a506546fd4eed8c2df8ed86eba938e Mon Sep 17 00:00:00 2001 +From 33a379e0beaafde495f48d17808d40694e1b8620 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 15 Jul 2015 13:46:08 +0100 -Subject: [PATCH 123/192] leds-gpio: Implement the brightness_get method +Subject: [PATCH 123/194] leds-gpio: Implement the brightness_get method The power LED uses some clever logic that means it is driven by a voltage measuring circuit when configured as input, otherwise @@ -141236,10 +141236,10 @@ index 3cfbd6a..4e4e132 100644 state = !!gpiod_get_value_cansleep(led_dat->gpiod); else -From 660e3b8498bc3069ea74571f87a937ec0e9719e6 Mon Sep 17 00:00:00 2001 +From 4ecae9ad0da8efb48cc08dce1d3d97997c926cc5 Mon Sep 17 00:00:00 2001 From: Robert Tiemann Date: Fri, 17 Jul 2015 09:50:55 +0200 -Subject: [PATCH 124/192] dmaengine: bcm2708-dmaengine: Fix memory leak when +Subject: [PATCH 124/194] dmaengine: bcm2708-dmaengine: Fix memory leak when stopping a running transfer --- @@ -141259,10 +141259,10 @@ index 987ed53..73c6c00 100644 bcm2835_dma_abort(c->chan_base); -From fbb4e35f5138fcf615dafdad6c560b285e30d30c Mon Sep 17 00:00:00 2001 +From 4d518ff962f2e8438973b9f73020799e7bcc70db Mon Sep 17 00:00:00 2001 From: Robert Tiemann Date: Mon, 20 Jul 2015 11:01:13 +0200 -Subject: [PATCH 125/192] BCM270X_DT: Fix I2S register map +Subject: [PATCH 125/194] BCM270X_DT: Fix I2S register map --- arch/arm/boot/dts/bcm2708_common.dtsi | 4 ++-- @@ -141284,10 +141284,10 @@ index 2dd25f7..728e14a 100644 //dmas = <&dma 2>, // <&dma 3>; -From 0e979a30a41088e31e6f364afb962a92dece990f Mon Sep 17 00:00:00 2001 +From 1bba8a917a825f6457ee3fe7cca8a9a2fd92e91d Mon Sep 17 00:00:00 2001 From: Robert Tiemann Date: Mon, 20 Jul 2015 11:01:25 +0200 -Subject: [PATCH 126/192] BCM2835_DT: Fix I2S register map +Subject: [PATCH 126/194] BCM2835_DT: Fix I2S register map --- Documentation/devicetree/bindings/dma/brcm,bcm2835-dma.txt | 4 ++-- @@ -141341,10 +141341,10 @@ index 4a63704..1135120 100644 dmas = <&dma 2>, <&dma 3>; -From 5f2426c4b7a9043f0390d1b4268ef4b4a83a2e3d Mon Sep 17 00:00:00 2001 +From dc4cd36944230334e0049fdf5942ef901b1ceb06 Mon Sep 17 00:00:00 2001 From: David Frey Date: Tue, 14 Jul 2015 15:57:36 +0200 -Subject: [PATCH 127/192] config: Enable SHT drivers for raspberry pi +Subject: [PATCH 127/194] config: Enable SHT drivers for raspberry pi The SHT temperature and humidity sensors are often used in weather station projects. @@ -141386,10 +141386,10 @@ index b9b5bdf..7b24274 100644 CONFIG_THERMAL_BCM2835=y CONFIG_WATCHDOG=y -From d0b201bfe2ca24227632e744c06e6612e4a52de4 Mon Sep 17 00:00:00 2001 +From 89699711869bb4499d5c9302886fba0d71702c0b Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 20 Jul 2015 14:07:14 +0100 -Subject: [PATCH 128/192] BCM270X_DT: Correct typo in overlays/README +Subject: [PATCH 128/194] BCM270X_DT: Correct typo in overlays/README --- arch/arm/boot/dts/overlays/README | 2 +- @@ -141409,10 +141409,10 @@ index 8792f98..ed484ae 100644 i2c_arm Set to "on" to enable the ARM's i2c interface -From a13b6ec4c9d17246df1a3cb7b4e4ce5f1c62ec32 Mon Sep 17 00:00:00 2001 +From 9903a1a6f323e28e05b9b04a19de02c7df0133f8 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 20 Jul 2015 10:53:26 +0100 -Subject: [PATCH 129/192] bcm2835-sdhost: Add the ERASE capability +Subject: [PATCH 129/194] bcm2835-sdhost: Add the ERASE capability See: https://github.com/raspberrypi/linux/issues/1076 --- @@ -141433,10 +141433,10 @@ index d65870a..57a6ad3 100644 spin_lock_init(&host->lock); -From d619c2d2963b97eea071434b0ba4f2da88bb8e8d Mon Sep 17 00:00:00 2001 +From c14ab5b4110d51e1ade3077efe9969d331728ee8 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 20 Jul 2015 17:32:18 +0100 -Subject: [PATCH 130/192] bcm2835-sdhost: Ignore CRC7 for MMC CMD1 +Subject: [PATCH 130/194] bcm2835-sdhost: Ignore CRC7 for MMC CMD1 It seems that the sdhost interface returns CRC7 errors for CMD1, which is the MMC-specific SEND_OP_COND. Returning these errors to @@ -141500,10 +141500,10 @@ index 57a6ad3..84f645f 100644 if (host->cmd->flags & MMC_RSP_PRESENT) { -From a308ade267a5e55f928258def08529290cf3c66e Mon Sep 17 00:00:00 2001 +From ee0ecbdb990546c53e8d20de1215c649a925879d Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 20 Jul 2015 14:48:21 +0100 -Subject: [PATCH 131/192] BCM270X_DT: Add unit address to gpio node name +Subject: [PATCH 131/194] BCM270X_DT: Add unit address to gpio node name --- arch/arm/boot/dts/bcm2708_common.dtsi | 2 +- @@ -141523,10 +141523,10 @@ index 728e14a..cb608df 100644 reg = <0x7e200000 0xb4>; interrupts = <2 17>, <2 18>; -From 2e0f8d9d1cb87fea0a6e0cb3c8736d067d594e15 Mon Sep 17 00:00:00 2001 +From 134dd470533b0304634917c810af737596f55b3a Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 24 Jul 2015 10:36:32 +0100 -Subject: [PATCH 132/192] BCM270X_DT: Use i2c_arm for rtc and bmp085 overlays +Subject: [PATCH 132/194] BCM270X_DT: Use i2c_arm for rtc and bmp085 overlays --- arch/arm/boot/dts/overlays/bmp085_i2c-sensor-overlay.dts | 2 +- @@ -141560,10 +141560,10 @@ index 7052c71..fed4bd8 100644 #address-cells = <1>; #size-cells = <0>; -From db8ee9703f6dcf58156f1154468f761d4a2aaf27 Mon Sep 17 00:00:00 2001 +From 0322e2739a646f00cd41938f3d763e4126397e11 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 24 Jul 2015 12:11:31 +0100 -Subject: [PATCH 133/192] BCM2708_DT: CM dtparams for audio, watchdog and RNG +Subject: [PATCH 133/194] BCM2708_DT: CM dtparams for audio, watchdog and RNG --- arch/arm/boot/dts/bcm2708-rpi-cm.dtsi | 8 ++++---- @@ -141593,10 +141593,10 @@ index 34d4bc6..713e5a2 100644 }; }; -From 5ee323dd815f9a10b56ccb79f9db3b03cb10a957 Mon Sep 17 00:00:00 2001 +From df40be6f5b7bb5ec4242345a73056d71a3c196d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Mon, 20 Jul 2015 12:13:18 +0200 -Subject: [PATCH 134/192] vchiq: Use firmware API +Subject: [PATCH 134/194] vchiq: Use firmware API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -141712,10 +141712,10 @@ index 31e2cba..e11c0e0 100644 err = vchiq_debugfs_init(); if (err != 0) -From c8494b6d8b9c4a09d5802c5bd214b81abb24076e Mon Sep 17 00:00:00 2001 +From 0953a5b5383f6aa7745bece0883a695ec1b96393 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Mon, 20 Jul 2015 12:17:10 +0200 -Subject: [PATCH 135/192] thermal: bcm2835: Use firmware API +Subject: [PATCH 135/194] thermal: bcm2835: Use firmware API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -141998,10 +141998,10 @@ index 3bc80f1..c1d8f1b 100644 -module_platform_driver(bcm2835_thermal_driver); +MODULE_LICENSE("GPL"); -From 80165470382ba4f58bb1c15abfae346681424e73 Mon Sep 17 00:00:00 2001 +From 5b489616c6e3191cd60eb2f866e32478d6cb78d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Mon, 20 Jul 2015 12:18:36 +0200 -Subject: [PATCH 136/192] cpufreq: bcm2835: Use firmware API +Subject: [PATCH 136/194] cpufreq: bcm2835: Use firmware API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -142185,10 +142185,10 @@ index 6735da9..3eb9e93 100644 } -From 0c0902575883dcd51e97c4aed67a9854688046d1 Mon Sep 17 00:00:00 2001 +From 3f72415c74de28fe33eede566540ec9cd6fa0b52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Mon, 20 Jul 2015 12:20:59 +0200 -Subject: [PATCH 137/192] fbdev: bcm2708: Use firmware API +Subject: [PATCH 137/194] fbdev: bcm2708: Use firmware API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -142604,10 +142604,10 @@ index f6ac7da..06a96d16 100644 free_irq(fb->dma_irq, fb); -From 1d8059b467a053294c0d09d77ed8b327bec980f8 Mon Sep 17 00:00:00 2001 +From a2dad85cdc74f121669eaddb8e576e5743c248d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Mon, 20 Jul 2015 12:27:17 +0200 -Subject: [PATCH 138/192] bcm2835: Add firmware property to affected devices +Subject: [PATCH 138/194] bcm2835: Add firmware property to affected devices MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -142688,10 +142688,10 @@ index 1135120..807264d 100644 clocks { -From 0b404a0bb7397a70fda6917887baf12d3d1738b8 Mon Sep 17 00:00:00 2001 +From 404e9a3e613083673abdb945c8d79e834c0a6b78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Tue, 21 Jul 2015 19:09:39 +0200 -Subject: [PATCH 139/192] rpi-ft5406: Use firmware API +Subject: [PATCH 139/194] rpi-ft5406: Use firmware API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -142831,10 +142831,10 @@ index d41851d..c08817e 100644 ts->regs = (struct ft5406_regs *) ts->ts_base; -From 84575dc4faf5752d6799114c23523d21f79185b8 Mon Sep 17 00:00:00 2001 +From 6ef97ddf4dde5d01d5c01ef848826c83e976228a 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 140/192] irqchip: bcm2835: Add FIQ support +Subject: [PATCH 140/194] irqchip: bcm2835: Add FIQ support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -142966,10 +142966,10 @@ index 5916d6c..db66246 100644 } -From 739f93ecccd3dab84ea01874f11c318342cabc6b Mon Sep 17 00:00:00 2001 +From 93d022bc449cbaf4bb24f404ebd1adf2bdb8447e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 24 Jul 2015 15:50:04 +0200 -Subject: [PATCH 141/192] dwc_otg: Add ARCH_BCM2835 support +Subject: [PATCH 141/194] dwc_otg: Add ARCH_BCM2835 support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -143022,10 +143022,10 @@ index 0f4ebcd..5c83309 100644 } -From 09a1b81021504e4ca5b46e5fdb93acd917c7f0b7 Mon Sep 17 00:00:00 2001 +From 96796c87f3d4ef8362a5bf657f881d3d237c8763 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 24 Jul 2015 15:50:24 +0200 -Subject: [PATCH 142/192] bcm2835: Use DWC_OTG +Subject: [PATCH 142/194] bcm2835: Use DWC_OTG MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -143068,10 +143068,10 @@ index c284414..14ef294 100644 CONFIG_USB_STORAGE=y CONFIG_USB_STORAGE_REALTEK=m -From 909ccc236c5073e67181862026b117415c5508ec Mon Sep 17 00:00:00 2001 +From b824f8f74d8ff163a6295d45e43a80453871e605 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 24 Jul 2015 19:33:16 +0200 -Subject: [PATCH 143/192] Fix RASPBERRYPI_FIRMWARE dependents +Subject: [PATCH 143/194] Fix RASPBERRYPI_FIRMWARE dependents MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -143152,10 +143152,10 @@ index 3444a4c..c073d55 100644 select FB_CFB_COPYAREA select FB_CFB_IMAGEBLIT -From a8a882bd995ade6396b700e9fa50d52e14c2d773 Mon Sep 17 00:00:00 2001 +From 980367c4780a8a2296abe7f0e76e196c07a3ba40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 24 Jul 2015 19:33:46 +0200 -Subject: [PATCH 144/192] vc_mem: Remove unnecessary include +Subject: [PATCH 144/194] vc_mem: Remove unnecessary include MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -143178,10 +143178,10 @@ index fcde6b1..be64f23 100644 #define DRIVER_NAME "vc-mem" -From 2915e91353123b4e57a9b7fea529e76733fa804d Mon Sep 17 00:00:00 2001 +From e2b13e12e8c557916da8b6c2aece43bd82f0a93d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 24 Jul 2015 19:34:06 +0200 -Subject: [PATCH 145/192] configs: Remove BCM2708_MBOX +Subject: [PATCH 145/194] configs: Remove BCM2708_MBOX MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -143230,10 +143230,10 @@ index 7b24274..0859113 100644 # CONFIG_IOMMU_SUPPORT is not set CONFIG_EXTCON=m -From edfc6b5684eb61ca1c7bb8d726a876b3510c7967 Mon Sep 17 00:00:00 2001 +From aa1bf770f553d34bab0b7fa7db0bbfddf34ba5be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 24 Jul 2015 19:34:31 +0200 -Subject: [PATCH 146/192] bcm2708-vcio: Remove module +Subject: [PATCH 146/194] bcm2708-vcio: Remove module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -143507,10 +143507,10 @@ index d3ea839..0000000 - -#endif -From b50a77017186456a6eac9f5879527011ad639735 Mon Sep 17 00:00:00 2001 +From 7de83afcd8a39c2f790db3f3f989ca48ff318ea9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 24 Jul 2015 19:34:55 +0200 -Subject: [PATCH 147/192] Revert "firmware: bcm2835: Support legacy mailbox +Subject: [PATCH 147/194] Revert "firmware: bcm2835: Support legacy mailbox API" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 @@ -143601,10 +143601,10 @@ index 9a08cf1..d3933af 100644 u32 tag, void *data, size_t len); int rpi_firmware_property_list(struct rpi_firmware *fw, -From 6a216d3e39f569440e30e699ce0c937d5bb18f8f Mon Sep 17 00:00:00 2001 +From 5d191ced68dbf7b2e60fc302855852b124fbd097 Mon Sep 17 00:00:00 2001 From: Jonathan Bell Date: Tue, 30 Jun 2015 12:35:39 +0100 -Subject: [PATCH 148/192] pinctrl: bcm2835: Clear the event latch register when +Subject: [PATCH 148/194] pinctrl: bcm2835: Clear the event latch register when disabling interrupts It's possible to hit a race condition if interrupts are generated on a GPIO @@ -143641,10 +143641,10 @@ index 986779a..61ef002 100644 spin_unlock_irqrestore(&pc->irq_lock[bank], flags); } -From c3ad1ccc7ba3cef5f36c1919b05c9cb1b43c7d41 Mon Sep 17 00:00:00 2001 +From 72f64c3b9f0e8a60737e69d259f1564eb5115717 Mon Sep 17 00:00:00 2001 From: P33M Date: Tue, 4 Aug 2015 01:15:20 +0100 -Subject: [PATCH 149/192] dwc_otg: fiq_fsm: Make high-speed isochronous strided +Subject: [PATCH 149/194] dwc_otg: fiq_fsm: Make high-speed isochronous strided transfers work properly Certain low-bandwidth high-speed USB devices (specialist audio devices, @@ -143784,10 +143784,10 @@ index 3f71f29..8db3dfc 100644 case FIQ_PER_SPLIT_LS_ABORTED: -From d713fd8a8c98886c4965393cb35351eec484ecb6 Mon Sep 17 00:00:00 2001 +From 6e59584bbf12062b6ffd778af12fe8146d340f6f Mon Sep 17 00:00:00 2001 From: Uli Middelberg Date: Wed, 17 Jun 2015 10:36:56 +0200 -Subject: [PATCH 150/192] added basic docker support +Subject: [PATCH 150/194] added basic docker support --- arch/arm/configs/bcm2709_defconfig | 3 +++ @@ -143851,10 +143851,10 @@ index 0859113..06e7529 100644 CONFIG_FSCACHE_STATS=y CONFIG_FSCACHE_HISTOGRAM=y -From d0f6349262824e0c97c3348203fe38c98acb559b Mon Sep 17 00:00:00 2001 +From f3ace91a8cacdb53cac9cc8b4f927ad0ae43a33a Mon Sep 17 00:00:00 2001 From: Garrett Date: Thu, 2 Jul 2015 19:32:04 -0500 -Subject: [PATCH 151/192] bcm2835 camera planar/packed stride length +Subject: [PATCH 151/194] bcm2835 camera planar/packed stride length Added a field to the mmal_fmt struct used to compute the bytes per line when using a particular format. This results in the correct stride being @@ -144026,10 +144026,10 @@ index 35698c8..15788a1 100644 /* buffer for one video frame */ -From c6586122744f32872b423f29cd60f80bc9ec817c Mon Sep 17 00:00:00 2001 +From 5e105b5e431139026cbe7835b761fff2b29aee4f Mon Sep 17 00:00:00 2001 From: popcornmix Date: Tue, 28 Jul 2015 13:55:04 +0100 -Subject: [PATCH 153/192] config: Add Mediatek mt7601u wifi driver +Subject: [PATCH 153/194] config: Add Mediatek mt7601u wifi driver --- arch/arm/configs/bcm2709_defconfig | 2 ++ @@ -144063,10 +144063,10 @@ index 06e7529..a377222 100644 CONFIG_ZD1211RW=m CONFIG_MWIFIEX=m -From 9ade15dfc93bc7c34e6e48a4dc061eaa70f54b41 Mon Sep 17 00:00:00 2001 +From 6a5e6cda778f96483adee945041ea0b3a6e2a0cb Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 17 Aug 2015 10:49:44 +0100 -Subject: [PATCH 154/192] BCM270X_DT: Add pwm and pwm-2chan overlays +Subject: [PATCH 154/194] BCM270X_DT: Add pwm and pwm-2chan overlays From the README entries: Legal pin,function combinations for each channel: @@ -144332,10 +144332,10 @@ index b1541f4..90591a9 100644 PWM framework driver for BCM2835 controller (Raspberry Pi) -From c2159b8e35da50b260b86b2752c369262f03e5aa Mon Sep 17 00:00:00 2001 +From eb76a4418bd958fb754608bc7852037955e52004 Mon Sep 17 00:00:00 2001 From: Martin Sperl Date: Wed, 22 Apr 2015 07:33:03 +0000 -Subject: [PATCH 155/192] spi: bcm2835: fallback to interrupt for polling +Subject: [PATCH 155/194] spi: bcm2835: fallback to interrupt for polling timeouts exceeding 2 jiffies The polling mode of the driver is designed for transfers that run @@ -144471,10 +144471,10 @@ index cf3190f..505a993 100644 struct spi_device *spi, struct spi_transfer *tfr) -From ca6851997c29f85cb1965470c3c649cb04c83e04 Mon Sep 17 00:00:00 2001 +From 84a8c093f3479a5d6e4d9fceb6aeb5963aa07a9d Mon Sep 17 00:00:00 2001 From: Martin Sperl Date: Sun, 10 May 2015 20:47:28 +0000 -Subject: [PATCH 156/192] spi: bcm2835: enable dma modes for transfers meeting +Subject: [PATCH 156/194] spi: bcm2835: enable dma modes for transfers meeting certain conditions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 @@ -144897,10 +144897,10 @@ index 505a993..27fb5b0 100644 } -From 37c41ffd1ccf9a9051b461f2786a988a1d4f9f5f Mon Sep 17 00:00:00 2001 +From d3937547b145fb1ef5e8883a00a68269a7b1dc0a Mon Sep 17 00:00:00 2001 From: Martin Sperl Date: Tue, 12 May 2015 10:32:08 +0000 -Subject: [PATCH 157/192] spi: bcm2835: fix kbuild compile warnings/errors and +Subject: [PATCH 157/194] spi: bcm2835: fix kbuild compile warnings/errors and a typo fixes several warnings/error emmitted by the kbuild system: @@ -144956,10 +144956,10 @@ index 27fb5b0..52aaf2d 100644 "Unaligned spi tx-transfer bridging page\n"); return false; -From 4fa31f69b2b08f8b6b57ac80664efd3bfb510532 Mon Sep 17 00:00:00 2001 +From ad924a632bd4f7a15387fb4fc7ce9c055fd0be0e Mon Sep 17 00:00:00 2001 From: kbuild test robot Date: Tue, 12 May 2015 19:43:59 +0800 -Subject: [PATCH 158/192] spi: bcm2835: bcm2835_dma_release() can be static +Subject: [PATCH 158/194] spi: bcm2835: bcm2835_dma_release() can be static Signed-off-by: Fengguang Wu Signed-off-by: Mark Brown @@ -144991,10 +144991,10 @@ index 52aaf2d..bad36c5 100644 struct dma_slave_config slave_config; const __be32 *addr; -From 0281d714a74623919046ec0a7871cbfffaa129fa Mon Sep 17 00:00:00 2001 +From 4cfec4d6b6889bf80a0a4b78f278eb071d670173 Mon Sep 17 00:00:00 2001 From: Martin Sperl Date: Wed, 22 Jul 2015 08:34:41 +0000 -Subject: [PATCH 159/192] dt-overlay to enable dma for spi driver +Subject: [PATCH 159/194] dt-overlay to enable dma for spi driver Signed-off-by: Martin Sperl --- @@ -145042,10 +145042,10 @@ index 0000000..266cf9d + }; + }; -From 5601dff1bc5af8007e0cd741e6314777dcc26950 Mon Sep 17 00:00:00 2001 +From c4c4a9243b463177ecf35babdeed7a46c5db77a0 Mon Sep 17 00:00:00 2001 From: Martin Sperl Date: Wed, 22 Jul 2015 12:41:54 +0000 -Subject: [PATCH 160/192] dt: overlay: added documentation of spi-dma overlay +Subject: [PATCH 160/194] dt: overlay: added documentation of spi-dma overlay Signed-off-by: Martin Sperl --- @@ -145070,10 +145070,10 @@ index 1cd2140..bda8c14 100644 Info: 3.5" Color TFT Display by www.tinylcd.com Options: Touch, RTC, keypad -From a0f798dc95f6e80210560c2f539531ac8cd727ba Mon Sep 17 00:00:00 2001 +From 663e4788b5c220726356fc77be5fee0d23d42e69 Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Mon, 17 Aug 2015 18:06:16 +0100 -Subject: [PATCH 161/192] rpisense-fb: add low-light mode and gamma control +Subject: [PATCH 161/194] rpisense-fb: add low-light mode and gamma control --- drivers/video/fbdev/rpisense-fb.c | 68 +++++++++++++++++++++++++++++--- @@ -145216,10 +145216,10 @@ index c4c1118..2ba95d7 100644 struct rpisense; -From ae6f1c2b07d663f56d74520dd112e70fb0a345da Mon Sep 17 00:00:00 2001 +From 39bd59c69c467b6801e1955e2b1d9b8f4b38da71 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 19 Aug 2015 11:38:10 +0100 -Subject: [PATCH 162/192] BCM270X_DT: README - add note on indentation +Subject: [PATCH 162/194] BCM270X_DT: README - add note on indentation --- arch/arm/boot/dts/overlays/README | 4 ++++ @@ -145241,10 +145241,10 @@ index bda8c14..ac9c427 100644 Info: Configures the base Raspberry Pi hardware Load: -From 533a2295a023e63baa2da24f7ceb464f50481e86 Mon Sep 17 00:00:00 2001 +From 91f627205613e4f3c0c0190eaf7612aa6d0bb6f1 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Thu, 20 Aug 2015 13:50:18 +0100 -Subject: [PATCH 163/192] bcm2708-dmaengine: Use more DMA channels (but not 12) +Subject: [PATCH 163/194] bcm2708-dmaengine: Use more DMA channels (but not 12) 1) Only the bcm2708_fb drivers uses the legacy DMA API, and it requires a BULK-capable channel, so all other types @@ -145418,10 +145418,10 @@ index 73c6c00..85ce18b 100644 rc = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); if (rc) -From 2565daf4ff590ea8bfff9242920b7046855f8c14 Mon Sep 17 00:00:00 2001 +From 049f81e60b931b8492c1ad9ed2f6422ce71bafb4 Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Mon, 24 Aug 2015 16:03:47 +0100 -Subject: [PATCH 164/192] RaspiDAC3 support +Subject: [PATCH 164/194] RaspiDAC3 support Signed-off-by: Jan Grulich --- @@ -145772,10 +145772,10 @@ index 0000000..fddaeec +MODULE_DESCRIPTION("ASoC Driver for RaspiDAC Rev.3x"); +MODULE_LICENSE("GPL v2"); -From e07994e21afdb0689e92735f5251fb32c781dead Mon Sep 17 00:00:00 2001 +From 8230a1d029de0a92704b59e4d14ff19cfdaf1e05 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Tue, 14 Jul 2015 16:55:02 +0100 -Subject: [PATCH 165/192] config: Add SND_SOC_ADAU1701 module +Subject: [PATCH 165/194] config: Add SND_SOC_ADAU1701 module --- arch/arm/configs/bcm2709_defconfig | 1 + @@ -145807,10 +145807,10 @@ index 8979f23..7dd4fd4 100644 CONFIG_SND_SIMPLE_CARD=m CONFIG_SOUND_PRIME=m -From 8673fd1c1cdf2581b8e55049850feb454641c833 Mon Sep 17 00:00:00 2001 +From 21b558621652d5f40365de2049d2906499c12f75 Mon Sep 17 00:00:00 2001 From: Martin Sperl Date: Wed, 29 Jul 2015 07:34:10 +0000 -Subject: [PATCH 166/192] spi: bcm2835: fix overflow in calculation of transfer +Subject: [PATCH 166/194] spi: bcm2835: fix overflow in calculation of transfer time This resulted in the use of polling mode when other approaches @@ -145863,10 +145863,10 @@ index bad36c5..b68991c 100644 /* for short requests run polling*/ if (xfer_time_us <= BCM2835_SPI_POLLING_LIMIT_US) -From 0cbc260f0615a727118bf81a0a96f1a943ea1496 Mon Sep 17 00:00:00 2001 +From bd3acf9398a07807eb1c604234dc14a81fac13a4 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Tue, 8 Sep 2015 15:14:50 +0100 -Subject: [PATCH 167/192] BCM270X_DT: Add SDIO overlay +Subject: [PATCH 167/194] BCM270X_DT: Add SDIO overlay Enable SDIO from MMC interface via GPIOs 22-27. Includes the sdhost overlay to free up the MMC interface. @@ -145951,10 +145951,10 @@ index 0000000..164f269 + }; +}; -From 744173c6e20ce4939cb0df99b5a413badcc9b0be Mon Sep 17 00:00:00 2001 +From e2221d87449f7c8995e90703e4d74b438ca34b6e Mon Sep 17 00:00:00 2001 From: Luke Wren Date: Fri, 21 Aug 2015 23:14:48 +0100 -Subject: [PATCH 168/192] Add /dev/gpiomem device for rootless user GPIO access +Subject: [PATCH 168/194] Add /dev/gpiomem device for rootless user GPIO access Signed-off-by: Luke Wren --- @@ -146299,10 +146299,10 @@ index 0000000..0085e13 +MODULE_DESCRIPTION("gpiomem driver for accessing GPIO from userspace"); +MODULE_AUTHOR("Luke Wren "); -From b716c7690be5dca3f1329bd3bcb6468033bb1696 Mon Sep 17 00:00:00 2001 +From 8adbbbadf6a3bcd19905e9ab8a38f208af1107fd Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Mon, 24 Aug 2015 16:02:34 +0100 -Subject: [PATCH 169/192] tpa6130a2: Add headphone switch control +Subject: [PATCH 169/194] tpa6130a2: Add headphone switch control Signed-off-by: Jan Grulich --- @@ -146393,10 +146393,10 @@ index 6fac9e0..f60ebe1c 100644 /* -From dec2eb1d6594733d66a5f2da0e2e59f21e8cad90 Mon Sep 17 00:00:00 2001 +From 085ec663985ce405fb1e54124368a27e4d8dd9e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Sat, 11 Jul 2015 18:48:10 +0200 -Subject: [PATCH 170/192] staging: fbtft: Add reset to fbtft_init_display_dt() +Subject: [PATCH 170/194] staging: fbtft: Add reset to fbtft_init_display_dt() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -146428,10 +146428,10 @@ index 53b748b..4f165d3 100644 if (val & FBTFT_OF_INIT_CMD) { val &= 0xFFFF; -From 0f1a50554d440626c49ba73113efbad679ca1fa1 Mon Sep 17 00:00:00 2001 +From 6cc40be074b969a4b41ea3fcd2e8766c665515e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Sun, 19 Jul 2015 18:57:06 +0200 -Subject: [PATCH 171/192] BCM270X_DT: mz61581: Revert to spi-bcm2708 +Subject: [PATCH 171/194] BCM270X_DT: mz61581: Revert to spi-bcm2708 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -146462,10 +146462,10 @@ index c06fe12..f674a66 100644 spidev@0{ -From 7dabf2942aac0a52a59e429e992b58d1213c7024 Mon Sep 17 00:00:00 2001 +From 2d3ec5ab0191289c1f060eaa51c5b85c4c51eed6 Mon Sep 17 00:00:00 2001 From: Colin Ian King Date: Tue, 1 Sep 2015 16:52:34 +0000 -Subject: [PATCH 172/192] vchiq: fix NULL pointer dereference when closing +Subject: [PATCH 172/194] vchiq: fix NULL pointer dereference when closing driver The following code run as root will cause a null pointer dereference oops: @@ -146565,10 +146565,10 @@ index f4d0b66..4055d4b 100644 struct semaphore pop; struct semaphore push; -From b6bed67a8b4fc7ac46554940153aa550f889f08c Mon Sep 17 00:00:00 2001 +From be71354c73cc689307b9518e8393a1186080c5f4 Mon Sep 17 00:00:00 2001 From: Colin Ian King Date: Wed, 2 Sep 2015 07:13:17 -0400 -Subject: [PATCH 173/192] bcm2708_fb: remove redundant code as detected by +Subject: [PATCH 173/194] bcm2708_fb: remove redundant code as detected by static analysis static analysis with cppcheck detected some redundant code which @@ -146600,10 +146600,10 @@ index 06a96d16..fed0672 100644 } -From 3277fb201dd353df15a0181afefbc966d1700b93 Mon Sep 17 00:00:00 2001 +From a79b4171d2f06440c6aa9de4b858dca1fc32293a Mon Sep 17 00:00:00 2001 From: Colin Ian King Date: Wed, 2 Sep 2015 07:15:38 -0400 -Subject: [PATCH 174/192] bcm2708_fb: remove unnecessary initialization of +Subject: [PATCH 174/194] bcm2708_fb: remove unnecessary initialization of result static analysis by cppcheck detected an unnecessary initialization @@ -146632,10 +146632,10 @@ index fed0672..0f62d76 100644 info->var.yoffset = var->yoffset; result = bcm2708_fb_set_par(info); -From 3a8c5b7cd8499af8718d1628646c1704a38b6cec Mon Sep 17 00:00:00 2001 +From 2295e77f5b4bc01a115af6a4e2d0f0b37a572a57 Mon Sep 17 00:00:00 2001 From: Colin Ian King Date: Wed, 2 Sep 2015 07:27:36 -0400 -Subject: [PATCH 175/192] vcsm: increment res_stats MAP_FAIL stats before we +Subject: [PATCH 175/194] vcsm: increment res_stats MAP_FAIL stats before we potentially release the resource resource can be kfree'd when the reference count is zero, so we should @@ -146669,10 +146669,10 @@ index 0bfb42e..b62a3b2 100644 } -From f4b1401d6a2bd32b7bdc1ea5bba49ba45923f34e Mon Sep 17 00:00:00 2001 +From 0045e9ee695e6a7e4da62df7c481e99a13188c18 Mon Sep 17 00:00:00 2001 From: Colin Ian King Date: Wed, 2 Sep 2015 07:33:39 -0400 -Subject: [PATCH 176/192] bcm2835: camera: check for scene not being found +Subject: [PATCH 176/194] bcm2835: camera: check for scene not being found static analysis by cppcheck detected some potential NULL pointer dereference issues: @@ -146703,10 +146703,10 @@ index 3017b94..f9f903f 100644 return -EINVAL; -From e9bce32c5fdf1d19f499fd4a3acb518df5eddda8 Mon Sep 17 00:00:00 2001 +From e05f8eb12b6f1146b400435f852ca501026a9aca Mon Sep 17 00:00:00 2001 From: Colin Ian King Date: Wed, 2 Sep 2015 07:47:51 -0400 -Subject: [PATCH 177/192] bcm2835: memcpy port data to m rather than rmsg +Subject: [PATCH 177/194] bcm2835: memcpy port data to m rather than rmsg static analysis by cppcheck detected a memcpy to rmsg which is not actually initialized at that point. The memcpy should be copying @@ -146731,10 +146731,10 @@ index 76f249e..7813225 100644 ret = send_synchronous_mmal_msg(instance, &m, -From f37b5b98c6a1dd867fe57768347d4099c8c350a5 Mon Sep 17 00:00:00 2001 +From 3f09ec1c4223de056fefc041185ed4276f52a65c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Sun, 13 Sep 2015 15:54:28 +0200 -Subject: [PATCH 178/192] Revert "BCM270X_DT: mz61581: Revert to spi-bcm2708" +Subject: [PATCH 178/194] Revert "BCM270X_DT: mz61581: Revert to spi-bcm2708" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -146762,10 +146762,10 @@ index f674a66..c06fe12 100644 spidev@0{ -From 6d02ee2eb00466bcf8485620de01dc4f0354a901 Mon Sep 17 00:00:00 2001 +From d9fab4e890cacf1b1adb59f64aadc043a1c70228 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Sun, 13 Sep 2015 17:17:14 +0200 -Subject: [PATCH 179/192] BCM270X_DT: mz61581: Set txbuflen to 32k +Subject: [PATCH 179/194] BCM270X_DT: mz61581: Set txbuflen to 32k MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -146814,10 +146814,10 @@ index c06fe12..9242a6e 100644 xohms = <&mz61581_ts>,"ti,x-plate-ohms;0"; }; -From 3e8afc7044965075d11b52c83ad0bd0584bbd15d Mon Sep 17 00:00:00 2001 +From bf973dffb8d6e2622d7fba8a7438e1ecd792cc0e Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 11 Sep 2015 12:10:15 +0100 -Subject: [PATCH 180/192] bcm2835-mmc: Don't overwrite MMC capabilities from DT +Subject: [PATCH 180/194] bcm2835-mmc: Don't overwrite MMC capabilities from DT --- drivers/mmc/host/bcm2835-mmc.c | 5 +++-- @@ -146840,10 +146840,10 @@ index b7c4883..164bfad 100644 host->flags = SDHCI_AUTO_CMD23; -From fbe9273f1ed02f6d6e0c01add59bc9d85a2748a8 Mon Sep 17 00:00:00 2001 +From 48c1b7e91bcd5b92b02de3b3d6bdbc5eb34e5eb8 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 11 Sep 2015 09:14:01 +0100 -Subject: [PATCH 181/192] BCM270X_DT: Use fixed-factor-clock for uart1 +Subject: [PATCH 181/194] BCM270X_DT: Use fixed-factor-clock for uart1 The BCM2835 mini-UART is almost 8250-compatible, but there is a factor-of-two difference in the clock divider for the baud rate. @@ -146943,10 +146943,10 @@ index f25f0a2..76d44a2 100644 spi = <&spi0>,"status"; i2c0 = <&i2c0>,"status"; -From 08152264f7564a5bd77ae9a58a34309f6ab9a5fc Mon Sep 17 00:00:00 2001 +From af29aa1dd79e6f76be281d8fbba46f671b9dc9b1 Mon Sep 17 00:00:00 2001 From: Luke Wren Date: Sat, 5 Sep 2015 01:14:45 +0100 -Subject: [PATCH 182/192] Add SMI driver +Subject: [PATCH 182/194] Add SMI driver Signed-off-by: Luke Wren --- @@ -149005,10 +149005,10 @@ index 0000000..ee3a75e + +#endif /* BCM2835_SMI_H */ -From fda45e53b21c5f65e9e161b244b83026cb0fd6f6 Mon Sep 17 00:00:00 2001 +From 4a837e11c809cd42c793e61bba9e7cb784395f89 Mon Sep 17 00:00:00 2001 From: Luke Wren Date: Sat, 5 Sep 2015 01:16:10 +0100 -Subject: [PATCH 183/192] Add SMI NAND driver +Subject: [PATCH 183/194] Add SMI NAND driver Signed-off-by: Luke Wren --- @@ -149516,10 +149516,10 @@ index 0000000..b747326 + ("Driver for NAND chips using Broadcom Secondary Memory Interface"); +MODULE_AUTHOR("Luke Wren "); -From 491ad52f804ba93327361dc6803d9599c78dee93 Mon Sep 17 00:00:00 2001 +From 12bb5737302a9adc5e738b00845f6275d2b3dce4 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 16 Sep 2015 17:28:41 +0100 -Subject: [PATCH 184/192] BCM270X_DT: Document SMI overlay +Subject: [PATCH 184/194] BCM270X_DT: Document SMI overlay --- arch/arm/boot/dts/overlays/Makefile | 6 +++--- @@ -149580,10 +149580,10 @@ index 0aa5aa1..4ab4c695 100644 Info: Selects the bcm2708-spi SPI driver Load: dtoverlay=spi-bcm2708 -From e18520ad8e421cf2592b9bf4e97e98ab3269884d Mon Sep 17 00:00:00 2001 +From 3f4dc9b708b4e3cb365b0066242556633b83ed5d Mon Sep 17 00:00:00 2001 From: popcornmix Date: Thu, 17 Sep 2015 17:13:42 +0100 -Subject: [PATCH 185/192] dwc_otg: Force host mode to fix incorrect compute +Subject: [PATCH 185/194] dwc_otg: Force host mode to fix incorrect compute module boards --- @@ -149604,10 +149604,10 @@ index e40060f..beaa8b3 100644 dwc_mdelay(100); } -From 06fa410863c6bd9771bce0b2991f4faa17e0f223 Mon Sep 17 00:00:00 2001 +From 28fc2ac47fd4f3d300fd3badeeb2db8a2ec65e40 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Tue, 15 Sep 2015 15:16:24 +0100 -Subject: [PATCH 186/192] config: Add CIFS_DFS_UPCALL, CIFS_ACL, CIFS_SMB2, +Subject: [PATCH 186/194] config: Add CIFS_DFS_UPCALL, CIFS_ACL, CIFS_SMB2, CIFS_FSCACHE --- @@ -149646,10 +149646,10 @@ index 75fa1d0..8ebc8d5 100644 CONFIG_9P_FS_POSIX_ACL=y CONFIG_NLS_DEFAULT="utf8" -From 1ce910a90e75d8315b40ee57f2ab168822fc4e79 Mon Sep 17 00:00:00 2001 +From 05f629b727b81ba22662e2f25bffec8215bfbb4e Mon Sep 17 00:00:00 2001 From: David Lechner Date: Mon, 14 Sep 2015 19:08:36 -0500 -Subject: [PATCH 187/192] Use dts-dirs feature for overlays. +Subject: [PATCH 187/194] Use dts-dirs feature for overlays. The kernel makefiles have a dts-dirs target that is for vendor subdirectories. @@ -149686,10 +149686,10 @@ index 12de305..faf293f 100644 - -subdir-y += overlays -From 44533175243d215fa6104520e1ab3df56e11ca2a Mon Sep 17 00:00:00 2001 +From e8e928f19481eebeaaf269e21a044f5b78418e1b Mon Sep 17 00:00:00 2001 From: Martin Sperl Date: Thu, 10 Sep 2015 09:32:14 +0000 -Subject: [PATCH 192/192] backport: spi: bcm2835: BUG: fix wrong use of +Subject: [PATCH 192/194] backport: spi: bcm2835: BUG: fix wrong use of PAGE_MASK There is a bug in the alignment checking of transfers, @@ -149732,3 +149732,555 @@ index b68991c..3835332 100644 return false; } + +From 93260741a0c8b8ee5d9a3c268db9f63472f1c36d Mon Sep 17 00:00:00 2001 +From: Stuart MacLean +Date: Fri, 2 Oct 2015 15:12:59 +0100 +Subject: [PATCH 193/194] Add support for the HiFiBerry DAC+ Pro. + +The HiFiBerry DAC+ and DAC+ Pro products both use the existing bcm sound driver with the DAC+ Pro having a special clock device driver representing the two high precision oscillators. + +An addition bug fix is included for the PCM512x codec where by the physical size of the sample frame is used in the calculation of the LRCK divisor as it was found to be wrong when using 24-bit depth sample contained in a little endian 4-byte sample frame. +--- + .../dts/overlays/hifiberry-dacplus-overlay.dts | 15 +- + drivers/clk/Makefile | 1 + + drivers/clk/clk-hifiberry-dacpro.c | 160 ++++++++++++++ + sound/soc/bcm/hifiberry_dacplus.c | 244 +++++++++++++++++++-- + sound/soc/codecs/pcm512x.c | 3 +- + 5 files changed, 396 insertions(+), 27 deletions(-) + create mode 100644 drivers/clk/clk-hifiberry-dacpro.c + +diff --git a/arch/arm/boot/dts/overlays/hifiberry-dacplus-overlay.dts b/arch/arm/boot/dts/overlays/hifiberry-dacplus-overlay.dts +index deb9c625..f923a48 100644 +--- a/arch/arm/boot/dts/overlays/hifiberry-dacplus-overlay.dts ++++ b/arch/arm/boot/dts/overlays/hifiberry-dacplus-overlay.dts +@@ -6,6 +6,16 @@ + compatible = "brcm,bcm2708"; + + fragment@0 { ++ target-path = "/clocks"; ++ __overlay__ { ++ dacpro_osc: dacpro_osc { ++ compatible = "hifiberry,dacpro-clk"; ++ #clock-cells = <0>; ++ }; ++ }; ++ }; ++ ++ fragment@1 { + target = <&sound>; + __overlay__ { + compatible = "hifiberry,hifiberry-dacplus"; +@@ -14,14 +24,14 @@ + }; + }; + +- fragment@1 { ++ fragment@2 { + target = <&i2s>; + __overlay__ { + status = "okay"; + }; + }; + +- fragment@2 { ++ fragment@3 { + target = <&i2c1>; + __overlay__ { + #address-cells = <1>; +@@ -32,6 +42,7 @@ + #sound-dai-cells = <0>; + compatible = "ti,pcm5122"; + reg = <0x4d>; ++ clocks = <&dacpro_osc>; + status = "okay"; + }; + }; +diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile +index 3d00c25..f949266 100644 +--- a/drivers/clk/Makefile ++++ b/drivers/clk/Makefile +@@ -24,6 +24,7 @@ obj-$(CONFIG_COMMON_CLK_CDCE706) += clk-cdce706.o + obj-$(CONFIG_ARCH_CLPS711X) += clk-clps711x.o + obj-$(CONFIG_ARCH_EFM32) += clk-efm32gg.o + obj-$(CONFIG_ARCH_HIGHBANK) += clk-highbank.o ++obj-$(CONFIG_SND_BCM2708_SOC_HIFIBERRY_DACPLUS) += clk-hifiberry-dacpro.o + obj-$(CONFIG_MACH_LOONGSON1) += clk-ls1x.o + obj-$(CONFIG_COMMON_CLK_MAX_GEN) += clk-max-gen.o + obj-$(CONFIG_COMMON_CLK_MAX77686) += clk-max77686.o +diff --git a/drivers/clk/clk-hifiberry-dacpro.c b/drivers/clk/clk-hifiberry-dacpro.c +new file mode 100644 +index 0000000..3e35d45 +--- /dev/null ++++ b/drivers/clk/clk-hifiberry-dacpro.c +@@ -0,0 +1,160 @@ ++/* ++ * Clock Driver for HiFiBerry DAC Pro ++ * ++ * Author: Stuart MacLean ++ * Copyright 2015 ++ * ++ * This program is free software; you can redistribute it and/or ++ * modify it under the terms of the GNU General Public License ++ * version 2 as published by the Free Software Foundation. ++ * ++ * This program is distributed in the hope that it will be useful, but ++ * WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ * General Public License for more details. ++ */ ++ ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++ ++/* Clock rate of CLK44EN attached to GPIO6 pin */ ++#define CLK_44EN_RATE 22579200UL ++/* Clock rate of CLK48EN attached to GPIO3 pin */ ++#define CLK_48EN_RATE 24576000UL ++ ++/** ++ * struct hifiberry_dacpro_clk - Common struct to the HiFiBerry DAC Pro ++ * @hw: clk_hw for the common clk framework ++ * @mode: 0 => CLK44EN, 1 => CLK48EN ++ */ ++struct clk_hifiberry_hw { ++ struct clk_hw hw; ++ uint8_t mode; ++}; ++ ++#define to_hifiberry_clk(_hw) container_of(_hw, struct clk_hifiberry_hw, hw) ++ ++static const struct of_device_id clk_hifiberry_dacpro_dt_ids[] = { ++ { .compatible = "hifiberry,dacpro-clk",}, ++ { } ++}; ++MODULE_DEVICE_TABLE(of, clk_hifiberry_dacpro_dt_ids); ++ ++static unsigned long clk_hifiberry_dacpro_recalc_rate(struct clk_hw *hw, ++ unsigned long parent_rate) ++{ ++ return (to_hifiberry_clk(hw)->mode == 0) ? CLK_44EN_RATE : ++ CLK_48EN_RATE; ++} ++ ++static long clk_hifiberry_dacpro_round_rate(struct clk_hw *hw, ++ unsigned long rate, unsigned long *parent_rate) ++{ ++ long actual_rate; ++ ++ if (rate <= CLK_44EN_RATE) { ++ actual_rate = (long)CLK_44EN_RATE; ++ } else if (rate >= CLK_48EN_RATE) { ++ actual_rate = (long)CLK_48EN_RATE; ++ } else { ++ long diff44Rate = (long)(rate - CLK_44EN_RATE); ++ long diff48Rate = (long)(CLK_48EN_RATE - rate); ++ ++ if (diff44Rate < diff48Rate) ++ actual_rate = (long)CLK_44EN_RATE; ++ else ++ actual_rate = (long)CLK_48EN_RATE; ++ } ++ return actual_rate; ++} ++ ++ ++static int clk_hifiberry_dacpro_set_rate(struct clk_hw *hw, ++ unsigned long rate, unsigned long parent_rate) ++{ ++ unsigned long actual_rate; ++ struct clk_hifiberry_hw *clk = to_hifiberry_clk(hw); ++ ++ actual_rate = (unsigned long)clk_hifiberry_dacpro_round_rate(hw, rate, ++ &parent_rate); ++ clk->mode = (actual_rate == CLK_44EN_RATE) ? 0 : 1; ++ return 0; ++} ++ ++ ++const struct clk_ops clk_hifiberry_dacpro_rate_ops = { ++ .recalc_rate = clk_hifiberry_dacpro_recalc_rate, ++ .round_rate = clk_hifiberry_dacpro_round_rate, ++ .set_rate = clk_hifiberry_dacpro_set_rate, ++}; ++ ++static int clk_hifiberry_dacpro_probe(struct platform_device *pdev) ++{ ++ int ret; ++ struct clk_hifiberry_hw *proclk; ++ struct clk *clk; ++ struct device *dev; ++ struct clk_init_data init; ++ ++ dev = &pdev->dev; ++ ++ proclk = kzalloc(sizeof(struct clk_hifiberry_hw), GFP_KERNEL); ++ if (!proclk) ++ return -ENOMEM; ++ ++ init.name = "clk-hifiberry-dacpro"; ++ init.ops = &clk_hifiberry_dacpro_rate_ops; ++ init.flags = CLK_IS_ROOT | CLK_IS_BASIC; ++ init.parent_names = NULL; ++ init.num_parents = 0; ++ ++ proclk->mode = 0; ++ proclk->hw.init = &init; ++ ++ clk = devm_clk_register(dev, &proclk->hw); ++ if (!IS_ERR(clk)) { ++ ret = of_clk_add_provider(dev->of_node, of_clk_src_simple_get, ++ clk); ++ } else { ++ dev_err(dev, "Fail to register clock driver\n"); ++ kfree(proclk); ++ ret = PTR_ERR(clk); ++ } ++ return ret; ++} ++ ++static int clk_hifiberry_dacpro_remove(struct platform_device *pdev) ++{ ++ of_clk_del_provider(pdev->dev.of_node); ++ return 0; ++} ++ ++static struct platform_driver clk_hifiberry_dacpro_driver = { ++ .probe = clk_hifiberry_dacpro_probe, ++ .remove = clk_hifiberry_dacpro_remove, ++ .driver = { ++ .name = "clk-hifiberry-dacpro", ++ .of_match_table = clk_hifiberry_dacpro_dt_ids, ++ }, ++}; ++ ++static int __init clk_hifiberry_dacpro_init(void) ++{ ++ return platform_driver_register(&clk_hifiberry_dacpro_driver); ++} ++core_initcall(clk_hifiberry_dacpro_init); ++ ++static void __exit clk_hifiberry_dacpro_exit(void) ++{ ++ platform_driver_unregister(&clk_hifiberry_dacpro_driver); ++} ++module_exit(clk_hifiberry_dacpro_exit); ++ ++MODULE_DESCRIPTION("HiFiBerry DAC Pro clock driver"); ++MODULE_LICENSE("GPL v2"); ++MODULE_ALIAS("platform:clk-hifiberry-dacpro"); +diff --git a/sound/soc/bcm/hifiberry_dacplus.c b/sound/soc/bcm/hifiberry_dacplus.c +index 11e4f39..a6b651c 100644 +--- a/sound/soc/bcm/hifiberry_dacplus.c ++++ b/sound/soc/bcm/hifiberry_dacplus.c +@@ -1,8 +1,8 @@ + /* +- * ASoC Driver for HiFiBerry DAC+ ++ * ASoC Driver for HiFiBerry DAC+ / DAC Pro + * +- * Author: Daniel Matuschek +- * Copyright 2014 ++ * Author: Daniel Matuschek, Stuart MacLean ++ * Copyright 2014-2015 + * based on code by Florian Meier + * + * This program is free software; you can redistribute it and/or +@@ -17,6 +17,13 @@ + + #include + #include ++#include ++#include ++#include ++#include ++#include ++#include ++#include + + #include + #include +@@ -26,34 +33,222 @@ + + #include "../codecs/pcm512x.h" + ++#define HIFIBERRY_DACPRO_NOCLOCK 0 ++#define HIFIBERRY_DACPRO_CLK44EN 1 ++#define HIFIBERRY_DACPRO_CLK48EN 2 ++ ++struct pcm512x_priv { ++ struct regmap *regmap; ++ struct clk *sclk; ++}; ++ ++/* Clock rate of CLK44EN attached to GPIO6 pin */ ++#define CLK_44EN_RATE 22579200UL ++/* Clock rate of CLK48EN attached to GPIO3 pin */ ++#define CLK_48EN_RATE 24576000UL ++ ++static bool snd_rpi_hifiberry_is_dacpro; ++ ++static void snd_rpi_hifiberry_dacplus_select_clk(struct snd_soc_codec *codec, ++ int clk_id) ++{ ++ switch (clk_id) { ++ case HIFIBERRY_DACPRO_NOCLOCK: ++ snd_soc_update_bits(codec, PCM512x_GPIO_CONTROL_1, 0x24, 0x00); ++ break; ++ case HIFIBERRY_DACPRO_CLK44EN: ++ snd_soc_update_bits(codec, PCM512x_GPIO_CONTROL_1, 0x24, 0x20); ++ break; ++ case HIFIBERRY_DACPRO_CLK48EN: ++ snd_soc_update_bits(codec, PCM512x_GPIO_CONTROL_1, 0x24, 0x04); ++ break; ++ } ++} ++ ++static void snd_rpi_hifiberry_dacplus_clk_gpio(struct snd_soc_codec *codec) ++{ ++ snd_soc_update_bits(codec, PCM512x_GPIO_EN, 0x24, 0x24); ++ snd_soc_update_bits(codec, PCM512x_GPIO_OUTPUT_3, 0x0f, 0x02); ++ snd_soc_update_bits(codec, PCM512x_GPIO_OUTPUT_6, 0x0f, 0x02); ++} ++ ++static bool snd_rpi_hifiberry_dacplus_is_sclk(struct snd_soc_codec *codec) ++{ ++ int sck; ++ ++ sck = snd_soc_read(codec, PCM512x_RATE_DET_4); ++ return (!(sck & 0x40)); ++} ++ ++static bool snd_rpi_hifiberry_dacplus_is_sclk_sleep( ++ struct snd_soc_codec *codec) ++{ ++ msleep(2); ++ return snd_rpi_hifiberry_dacplus_is_sclk(codec); ++} ++ ++static bool snd_rpi_hifiberry_dacplus_is_pro_card(struct snd_soc_codec *codec) ++{ ++ bool isClk44EN, isClk48En, isNoClk; ++ ++ snd_rpi_hifiberry_dacplus_clk_gpio(codec); ++ ++ snd_rpi_hifiberry_dacplus_select_clk(codec, HIFIBERRY_DACPRO_CLK44EN); ++ isClk44EN = snd_rpi_hifiberry_dacplus_is_sclk_sleep(codec); ++ ++ snd_rpi_hifiberry_dacplus_select_clk(codec, HIFIBERRY_DACPRO_NOCLOCK); ++ isNoClk = snd_rpi_hifiberry_dacplus_is_sclk_sleep(codec); ++ ++ snd_rpi_hifiberry_dacplus_select_clk(codec, HIFIBERRY_DACPRO_CLK48EN); ++ isClk48En = snd_rpi_hifiberry_dacplus_is_sclk_sleep(codec); ++ ++ return (isClk44EN && isClk48En && !isNoClk); ++} ++ ++static int snd_rpi_hifiberry_dacplus_clk_for_rate(int sample_rate) ++{ ++ int type; ++ ++ switch (sample_rate) { ++ case 11025: ++ case 22050: ++ case 44100: ++ case 88200: ++ case 176400: ++ type = HIFIBERRY_DACPRO_CLK44EN; ++ break; ++ default: ++ type = HIFIBERRY_DACPRO_CLK48EN; ++ break; ++ } ++ return type; ++} ++ ++static void snd_rpi_hifiberry_dacplus_set_sclk(struct snd_soc_codec *codec, ++ int sample_rate) ++{ ++ struct pcm512x_priv *pcm512x = snd_soc_codec_get_drvdata(codec); ++ ++ if (!IS_ERR(pcm512x->sclk)) { ++ int ctype; ++ ++ ctype = snd_rpi_hifiberry_dacplus_clk_for_rate(sample_rate); ++ clk_set_rate(pcm512x->sclk, (ctype == HIFIBERRY_DACPRO_CLK44EN) ++ ? CLK_44EN_RATE : CLK_48EN_RATE); ++ snd_rpi_hifiberry_dacplus_select_clk(codec, ctype); ++ } ++} ++ + static int snd_rpi_hifiberry_dacplus_init(struct snd_soc_pcm_runtime *rtd) + { + struct snd_soc_codec *codec = rtd->codec; ++ struct pcm512x_priv *priv; ++ ++ snd_rpi_hifiberry_is_dacpro ++ = snd_rpi_hifiberry_dacplus_is_pro_card(codec); ++ ++ if (snd_rpi_hifiberry_is_dacpro) { ++ struct snd_soc_dai_link *dai = rtd->dai_link; ++ ++ dai->name = "HiFiBerry DAC+ Pro"; ++ dai->stream_name = "HiFiBerry DAC+ Pro HiFi"; ++ dai->dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF ++ | SND_SOC_DAIFMT_CBM_CFM; ++ ++ snd_soc_update_bits(codec, PCM512x_BCLK_LRCLK_CFG, 0x31, 0x11); ++ snd_soc_update_bits(codec, PCM512x_MASTER_MODE, 0x03, 0x03); ++ snd_soc_update_bits(codec, PCM512x_MASTER_CLKDIV_2, 0x7f, 63); ++ } else { ++ priv = snd_soc_codec_get_drvdata(codec); ++ priv->sclk = ERR_PTR(-ENOENT); ++ } ++ + snd_soc_update_bits(codec, PCM512x_GPIO_EN, 0x08, 0x08); +- snd_soc_update_bits(codec, PCM512x_GPIO_OUTPUT_4, 0xf, 0x02); +- snd_soc_update_bits(codec, PCM512x_GPIO_CONTROL_1, 0x08,0x08); ++ snd_soc_update_bits(codec, PCM512x_GPIO_OUTPUT_4, 0x0f, 0x02); ++ snd_soc_update_bits(codec, PCM512x_GPIO_CONTROL_1, 0x08, 0x08); ++ ++ return 0; ++} ++ ++static int snd_rpi_hifiberry_dacplus_update_rate_den( ++ struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) ++{ ++ struct snd_soc_pcm_runtime *rtd = substream->private_data; ++ struct snd_soc_codec *codec = rtd->codec; ++ struct pcm512x_priv *pcm512x = snd_soc_codec_get_drvdata(codec); ++ struct snd_ratnum *rats_no_pll; ++ unsigned int num = 0, den = 0; ++ int err; ++ ++ rats_no_pll = devm_kzalloc(rtd->dev, sizeof(*rats_no_pll), GFP_KERNEL); ++ if (!rats_no_pll) ++ return -ENOMEM; ++ ++ rats_no_pll->num = clk_get_rate(pcm512x->sclk) / 64; ++ rats_no_pll->den_min = 1; ++ rats_no_pll->den_max = 128; ++ rats_no_pll->den_step = 1; ++ ++ err = snd_interval_ratnum(hw_param_interval(params, ++ SNDRV_PCM_HW_PARAM_RATE), 1, rats_no_pll, &num, &den); ++ if (err >= 0 && den) { ++ params->rate_num = num; ++ params->rate_den = den; ++ } ++ ++ devm_kfree(rtd->dev, rats_no_pll); + return 0; + } + +-static int snd_rpi_hifiberry_dacplus_hw_params(struct snd_pcm_substream *substream, +- struct snd_pcm_hw_params *params) ++static int snd_rpi_hifiberry_dacplus_set_bclk_ratio_pro( ++ struct snd_soc_dai *cpu_dai, struct snd_pcm_hw_params *params) + { ++ int bratio = snd_pcm_format_physical_width(params_format(params)) ++ * params_channels(params); ++ return snd_soc_dai_set_bclk_ratio(cpu_dai, bratio); ++} ++ ++static int snd_rpi_hifiberry_dacplus_hw_params( ++ struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) ++{ ++ int ret; + struct snd_soc_pcm_runtime *rtd = substream->private_data; + struct snd_soc_dai *cpu_dai = rtd->cpu_dai; +- return snd_soc_dai_set_bclk_ratio(cpu_dai, 64); ++ ++ if (snd_rpi_hifiberry_is_dacpro) { ++ struct snd_soc_codec *codec = rtd->codec; ++ ++ snd_rpi_hifiberry_dacplus_set_sclk(codec, ++ params_rate(params)); ++ ++ ret = snd_rpi_hifiberry_dacplus_set_bclk_ratio_pro(cpu_dai, ++ params); ++ if (!ret) ++ ret = snd_rpi_hifiberry_dacplus_update_rate_den( ++ substream, params); ++ } else { ++ ret = snd_soc_dai_set_bclk_ratio(cpu_dai, 64); ++ } ++ return ret; + } + +-static int snd_rpi_hifiberry_dacplus_startup(struct snd_pcm_substream *substream) { ++static int snd_rpi_hifiberry_dacplus_startup( ++ struct snd_pcm_substream *substream) ++{ + struct snd_soc_pcm_runtime *rtd = substream->private_data; + struct snd_soc_codec *codec = rtd->codec; +- snd_soc_update_bits(codec, PCM512x_GPIO_CONTROL_1, 0x08,0x08); ++ ++ snd_soc_update_bits(codec, PCM512x_GPIO_CONTROL_1, 0x08, 0x08); + return 0; + } + +-static void snd_rpi_hifiberry_dacplus_shutdown(struct snd_pcm_substream *substream) { ++static void snd_rpi_hifiberry_dacplus_shutdown( ++ struct snd_pcm_substream *substream) ++{ + struct snd_soc_pcm_runtime *rtd = substream->private_data; + struct snd_soc_codec *codec = rtd->codec; +- snd_soc_update_bits(codec, PCM512x_GPIO_CONTROL_1, 0x08,0x00); ++ ++ snd_soc_update_bits(codec, PCM512x_GPIO_CONTROL_1, 0x08, 0x00); + } + + /* machine stream operations */ +@@ -90,19 +285,20 @@ static int snd_rpi_hifiberry_dacplus_probe(struct platform_device *pdev) + int ret = 0; + + snd_rpi_hifiberry_dacplus.dev = &pdev->dev; +- + if (pdev->dev.of_node) { +- struct device_node *i2s_node; +- struct snd_soc_dai_link *dai = &snd_rpi_hifiberry_dacplus_dai[0]; +- i2s_node = of_parse_phandle(pdev->dev.of_node, +- "i2s-controller", 0); +- +- if (i2s_node) { +- dai->cpu_dai_name = NULL; +- dai->cpu_of_node = i2s_node; +- dai->platform_name = NULL; +- dai->platform_of_node = i2s_node; +- } ++ struct device_node *i2s_node; ++ struct snd_soc_dai_link *dai; ++ ++ dai = &snd_rpi_hifiberry_dacplus_dai[0]; ++ i2s_node = of_parse_phandle(pdev->dev.of_node, ++ "i2s-controller", 0); ++ ++ if (i2s_node) { ++ dai->cpu_dai_name = NULL; ++ dai->cpu_of_node = i2s_node; ++ dai->platform_name = NULL; ++ dai->platform_of_node = i2s_node; ++ } + } + + ret = snd_soc_register_card(&snd_rpi_hifiberry_dacplus); +diff --git a/sound/soc/codecs/pcm512x.c b/sound/soc/codecs/pcm512x.c +index e12764d..8d16b2f 100644 +--- a/sound/soc/codecs/pcm512x.c ++++ b/sound/soc/codecs/pcm512x.c +@@ -856,7 +856,8 @@ static int pcm512x_set_dividers(struct snd_soc_dai *dai, + int fssp; + int gpio; + +- lrclk_div = snd_soc_params_to_frame_size(params); ++ lrclk_div = snd_pcm_format_physical_width(params_format(params)) ++ * params_channels(params); + if (lrclk_div == 0) { + dev_err(dev, "No LRCLK?\n"); + return -EINVAL; + diff --git a/projects/RPi2/patches/linux/linux-01-RPi_support.patch b/projects/RPi2/patches/linux/linux-01-RPi_support.patch index dfccd7cdaa..34a0d4ec06 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 609529b2f8865f8ad63cf2bc3be48a009c8e6f9d Mon Sep 17 00:00:00 2001 +From 9975098c7b72c7755daa08816990dc286be525f2 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Sun, 12 May 2013 12:24:19 +0100 -Subject: [PATCH 001/192] Main bcm2708/bcm2709 linux port +Subject: [PATCH 001/194] Main bcm2708/bcm2709 linux port MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -7002,10 +7002,10 @@ index b5bedae..b0258e8 100644 mmc_pm_flag_t pm_caps; /* supported pm features */ -From b13e8a3ef8cefa74548308f24bcdfc341aca70ee Mon Sep 17 00:00:00 2001 +From f8e5576fbb3b504ce7ca5eaeda0fe5d1741c620e Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 8 Oct 2014 18:50:05 +0100 -Subject: [PATCH 002/192] Add bcm2708_gpio driver +Subject: [PATCH 002/194] Add bcm2708_gpio driver Signed-off-by: popcornmix @@ -7635,10 +7635,10 @@ index 0000000..fb69624 + +#endif -From 3b96584732e783101c33b3f93685fdb9c29f2f56 Mon Sep 17 00:00:00 2001 +From 9fada5af830488a1143eaf1fb69a480e23aeb26c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 1 May 2015 19:11:03 +0200 -Subject: [PATCH 003/192] mailbox: bcm2708: Add bcm2708-vcio +Subject: [PATCH 003/194] mailbox: bcm2708: Add bcm2708-vcio MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -8269,10 +8269,10 @@ index 0000000..cc284ed + +#endif -From 1682b073c4ee65bbad4d422dc7e1e4335fb7520f Mon Sep 17 00:00:00 2001 +From 686130a63a40d31f400357bfa1f01b53ea3069a5 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 1 May 2013 19:46:17 +0100 -Subject: [PATCH 004/192] Add dwc_otg driver +Subject: [PATCH 004/194] Add dwc_otg driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -69546,10 +69546,10 @@ index 0000000..cdc9963 +test_main(); +0; -From 5aad6d9cc7a07fab68fa8a809d1ef68227815b4e Mon Sep 17 00:00:00 2001 +From 8142dba5bbfd4a4a85bffc7689b030889ae05c32 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 1 May 2013 19:54:32 +0100 -Subject: [PATCH 005/192] bcm2708 watchdog driver +Subject: [PATCH 005/194] bcm2708 watchdog driver Signed-off-by: popcornmix --- @@ -69986,10 +69986,10 @@ index 0000000..8a27d68 +MODULE_ALIAS_MISCDEV(TEMP_MINOR); +MODULE_LICENSE("GPL"); -From 0d7d0291c377904694bb5b28fee22c47c8842d88 Mon Sep 17 00:00:00 2001 +From bd8c59a25518c0f3ad741d86af581fe3721078d6 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 17 Jun 2015 17:06:34 +0100 -Subject: [PATCH 006/192] bcm2708 framebuffer driver +Subject: [PATCH 006/194] bcm2708 framebuffer driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -73428,10 +73428,10 @@ index 3c14e43..7626beb6a 100644 +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 8f7071a6b7d56dcacdb37d4dd106344b083275b6 Mon Sep 17 00:00:00 2001 +From 292c431c94ff9f822f352f12d3f38a51572e4fbb Mon Sep 17 00:00:00 2001 From: Florian Meier Date: Fri, 22 Nov 2013 14:22:53 +0100 -Subject: [PATCH 007/192] dmaengine: Add support for BCM2708 +Subject: [PATCH 007/194] dmaengine: Add support for BCM2708 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -75199,10 +75199,10 @@ index 0000000..2310e34 + +#endif /* _PLAT_BCM2708_DMA_H */ -From e07323745508bb0f376e4d459a54480fd3e31d44 Mon Sep 17 00:00:00 2001 +From 97761099d44a41a8df57b703ae9a89c6e2b56062 Mon Sep 17 00:00:00 2001 From: gellert Date: Fri, 15 Aug 2014 16:35:06 +0100 -Subject: [PATCH 008/192] MMC: added alternative MMC driver +Subject: [PATCH 008/194] MMC: added alternative MMC driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -77018,10 +77018,10 @@ index 0000000..b7c4883 +MODULE_LICENSE("GPL v2"); +MODULE_AUTHOR("Gellert Weisz"); -From dc41079232e59b916ca82d40e4e7206d4ab62aaa Mon Sep 17 00:00:00 2001 +From ebe6211e7e197d9e434c9cec4f150bc372a36be7 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 25 Mar 2015 17:49:47 +0000 -Subject: [PATCH 009/192] Adding bcm2835-sdhost driver, and an overlay to +Subject: [PATCH 009/194] Adding bcm2835-sdhost driver, and an overlay to enable it BCM2835 has two SD card interfaces. This driver uses the other one. @@ -78791,10 +78791,10 @@ index 0000000..eef8a24 +MODULE_LICENSE("GPL v2"); +MODULE_AUTHOR("Phil Elwell"); -From 9377edd0d7701aaeeabb96cafd00c0716e34c571 Mon Sep 17 00:00:00 2001 +From 93a7e6a8ad9b76f0f426f71afbe0c9c49abc11c5 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 3 Jul 2013 00:31:47 +0100 -Subject: [PATCH 010/192] cma: Add vc_cma driver to enable use of CMA +Subject: [PATCH 010/194] cma: Add vc_cma driver to enable use of CMA Signed-off-by: popcornmix @@ -80119,10 +80119,10 @@ index 0000000..5325832 + +#endif /* VC_CMA_H */ -From c19f082a656bb2d1d95030a5950c505ea48489b3 Mon Sep 17 00:00:00 2001 +From a5910e614bf60dd590932bd6c62c40dcb4a620a2 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Mon, 26 Mar 2012 22:15:50 +0100 -Subject: [PATCH 011/192] bcm2708: alsa sound driver +Subject: [PATCH 011/194] bcm2708: alsa sound driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -82964,10 +82964,10 @@ index 0000000..af3e6eb + +#endif // _VC_AUDIO_DEFS_H_ -From 1576308395a8e3ae6a6f8f9777929618ef427c89 Mon Sep 17 00:00:00 2001 +From 0293a3d83cbf9cd1778b2cbd34cfa7366b3da2f3 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Tue, 2 Jul 2013 23:42:01 +0100 -Subject: [PATCH 012/192] bcm2708 vchiq driver +Subject: [PATCH 012/194] bcm2708 vchiq driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -96221,10 +96221,10 @@ index 0000000..b6bfa21 + return vchiq_build_time; +} -From f17e4badf3975d0a1b7b1c20b524f2ef4a21571b Mon Sep 17 00:00:00 2001 +From 3aca37235e8642ca143e97066f0f9bafb01e8903 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 17 Jun 2015 16:07:06 +0100 -Subject: [PATCH 013/192] vc_mem: Add vc_mem driver +Subject: [PATCH 013/194] vc_mem: Add vc_mem driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -97230,10 +97230,10 @@ index 0000000..20a4753 + +#endif /* _VC_MEM_H */ -From 6f96fdd646856cefb12b44e5f08ece670f0181c2 Mon Sep 17 00:00:00 2001 +From 28d20ca0e48cb659bc2f6a629636397378b80f91 Mon Sep 17 00:00:00 2001 From: Tim Gover Date: Tue, 22 Jul 2014 15:41:04 +0100 -Subject: [PATCH 014/192] vcsm: VideoCore shared memory service for BCM2835 +Subject: [PATCH 014/194] vcsm: VideoCore shared memory service for BCM2835 Add experimental support for the VideoCore shared memory service. This allows user processes to allocate memory from VideoCore's @@ -101643,10 +101643,10 @@ index 0000000..0bfb42e +MODULE_DESCRIPTION("VideoCore SharedMemory Driver"); +MODULE_LICENSE("GPL v2"); -From 8ced4cc73e1a9ea263ac6fd724bd8959879b3da0 Mon Sep 17 00:00:00 2001 +From 5026ce3b4e280f8c69c792473316dcf0ef9cf7bb Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 3 Jul 2013 00:51:55 +0100 -Subject: [PATCH 015/192] Add hwrng (hardware random number generator) driver +Subject: [PATCH 015/194] Add hwrng (hardware random number generator) driver --- drivers/char/hw_random/Kconfig | 13 +++- @@ -101823,10 +101823,10 @@ index 0000000..340f004 +MODULE_DESCRIPTION("BCM2708 H/W Random Number Generator (RNG) driver"); +MODULE_LICENSE("GPL and additional rights"); -From b669c0907ef1104dd084fea17c12650131eca5e5 Mon Sep 17 00:00:00 2001 +From bb39dc15ebce6c54d6b2416b8b26e5afea580fbf Mon Sep 17 00:00:00 2001 From: Aron Szabo Date: Sat, 16 Jun 2012 12:15:55 +0200 -Subject: [PATCH 016/192] lirc: added support for RaspberryPi GPIO +Subject: [PATCH 016/194] 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 @@ -102679,10 +102679,10 @@ index 0000000..24563ec +module_param(debug, bool, S_IRUGO | S_IWUSR); +MODULE_PARM_DESC(debug, "Enable debugging messages"); -From 557f263ec0d9a8c0ac86327ee6f82fb430321138 Mon Sep 17 00:00:00 2001 +From b86f8631e2d540d09df3c950f53eb5c8c2160c01 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 3 Jul 2013 00:49:20 +0100 -Subject: [PATCH 017/192] Add cpufreq driver +Subject: [PATCH 017/194] Add cpufreq driver Signed-off-by: popcornmix --- @@ -102955,10 +102955,10 @@ index 0000000..6735da9 +module_init(bcm2835_cpufreq_module_init); +module_exit(bcm2835_cpufreq_module_exit); -From 9bcee345f285fc890d89c13ab810e00011c746e0 Mon Sep 17 00:00:00 2001 +From 408055fb17cc2615b730f8ca781bf00836ff4058 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Tue, 26 Mar 2013 19:24:24 +0000 -Subject: [PATCH 018/192] Added hwmon/thermal driver for reporting core +Subject: [PATCH 018/194] Added hwmon/thermal driver for reporting core temperature. Thanks Dorian MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 @@ -103255,10 +103255,10 @@ index 0000000..3bc80f1 + +module_platform_driver(bcm2835_thermal_driver); -From 400a88cfab32bbc52f75adf0383dc1b0894e7c3f Mon Sep 17 00:00:00 2001 +From f612d1c8b575aba42c328a48d6b442e411937d3b Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 17 Jun 2015 15:41:33 +0100 -Subject: [PATCH 019/192] Add Chris Boot's spi driver. +Subject: [PATCH 019/194] Add Chris Boot's spi driver. spi: bcm2708: add device tree support @@ -104170,10 +104170,10 @@ index 0000000..041b5e2 +MODULE_LICENSE("GPL v2"); +MODULE_ALIAS("platform:" DRV_NAME); -From d5c4f6a12d0593030ea5a934fb2c83f45298f412 Mon Sep 17 00:00:00 2001 +From 71b325cf11468a3aea102146173c8b061e4af9cd Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 17 Jun 2015 15:44:08 +0100 -Subject: [PATCH 020/192] Add Chris Boot's i2c driver +Subject: [PATCH 020/194] Add Chris Boot's i2c driver i2c-bcm2708: fixed baudrate @@ -104974,10 +104974,10 @@ index 0000000..8773203 +MODULE_LICENSE("GPL v2"); +MODULE_ALIAS("platform:" DRV_NAME); -From c3abf3ec4df5a8aaf4b5772ab69636734d87997b Mon Sep 17 00:00:00 2001 +From 83442dc82575a0e27f036d37ad2e6070e2ac9612 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 30 Jan 2013 12:45:18 +0000 -Subject: [PATCH 021/192] bcm2835: add v4l2 camera device +Subject: [PATCH 021/194] bcm2835: add v4l2 camera device - Supports raw YUV capture, preview, JPEG and H264. - Uses videobuf2 for data transfer, using dma_buf. @@ -112304,10 +112304,10 @@ index 0000000..9d1d11e + +#endif /* MMAL_VCHIQ_H */ -From 7b9ed5d65c02cce23d54b30c3e51ae404d2a7f48 Mon Sep 17 00:00:00 2001 +From 8329756aea16aec7cf3b751506a9183189b63e0a Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 23 Jan 2015 14:48:55 +0000 -Subject: [PATCH 022/192] scripts/dtc: Update to upstream version with overlay +Subject: [PATCH 022/194] scripts/dtc: Update to upstream version with overlay patches --- @@ -117520,10 +117520,10 @@ index 54d4e904..d644002 100644 -#define DTC_VERSION "DTC 1.4.0-dirty" +#define DTC_VERSION "DTC 1.4.1-g36c70742" -From 032973fcd78ccde1187013067269944722eaed55 Mon Sep 17 00:00:00 2001 +From 5659258d92d8e737c1d2051f76288964bfffd732 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 11 May 2015 09:00:42 +0100 -Subject: [PATCH 023/192] scripts: Add mkknlimg and knlinfo scripts from tools +Subject: [PATCH 023/194] scripts: Add mkknlimg and knlinfo scripts from tools repo The Raspberry Pi firmware looks for a trailer on the kernel image to @@ -118008,17 +118008,17 @@ index 0000000..3dff948 + return (($val eq 'y') || ($val eq '1')); +} -From 0f413a81d7dcf73f80a51b348cff64341dee7eb4 Mon Sep 17 00:00:00 2001 +From a745783eaa9f2c7bb386d5b2e2eb5c630a720d45 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 5 Dec 2014 17:26:26 +0000 -Subject: [PATCH 024/192] fdt: Add support for the CONFIG_CMDLINE_EXTEND option +Subject: [PATCH 024/194] fdt: Add support for the CONFIG_CMDLINE_EXTEND option --- drivers/of/fdt.c | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c -index cde35c5d01..dd7fbfe 100644 +index d91f721..02feb00 100644 --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c @@ -933,19 +933,38 @@ int __init early_init_dt_scan_chosen(unsigned long node, const char *uname, @@ -118066,10 +118066,10 @@ index cde35c5d01..dd7fbfe 100644 pr_debug("Command line is: %s\n", (char*)data); -From 33131a27961d07a2a612c9e8d3c7a1133e08f4e1 Mon Sep 17 00:00:00 2001 +From 40422f4d1e477646fe048603ef640d260b162bef Mon Sep 17 00:00:00 2001 From: notro Date: Wed, 9 Jul 2014 14:46:08 +0200 -Subject: [PATCH 025/192] BCM2708: Add core Device Tree support +Subject: [PATCH 025/194] BCM2708: Add core Device Tree support Add the bare minimum needed to boot BCM2708 from a Device Tree. @@ -121946,10 +121946,10 @@ index 0000000..66a98f6 + }; +}; -From 3ad1dddd91565b7f8246685072c5a7582c4c1030 Mon Sep 17 00:00:00 2001 +From d3d477c85c9dfb667c233debe50362a0e8f8fae6 Mon Sep 17 00:00:00 2001 From: Siarhei Siamashka Date: Mon, 17 Jun 2013 13:32:11 +0300 -Subject: [PATCH 026/192] fbdev: add FBIOCOPYAREA ioctl +Subject: [PATCH 026/194] fbdev: add FBIOCOPYAREA ioctl Based on the patch authored by Ali Gholami Rudi at https://lkml.org/lkml/2009/7/13/153 @@ -122042,10 +122042,10 @@ index fb795c3..fa72af0 100644 #define FB_TYPE_PACKED_PIXELS 0 /* Packed Pixels */ #define FB_TYPE_PLANES 1 /* Non interleaved planes */ -From cedcba17d7d61f257782b8a27d476207d9013699 Mon Sep 17 00:00:00 2001 +From 65c2f3ef479f7832252cba9776f20488aa3d8171 Mon Sep 17 00:00:00 2001 From: Harm Hanemaaijer Date: Thu, 20 Jun 2013 20:21:39 +0200 -Subject: [PATCH 029/192] Speed up console framebuffer imageblit function +Subject: [PATCH 029/194] 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 @@ -122254,10 +122254,10 @@ index a2bb276..436494f 100644 start_index, pitch_index); } else -From 1b61dd3ec17ab86f48f36710318c26bae5ee1acc Mon Sep 17 00:00:00 2001 +From 46c415aa3d9d901af90d3ee968a7e20eb865d224 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Tue, 26 Mar 2013 17:26:38 +0000 -Subject: [PATCH 030/192] Allow mac address to be set in smsc95xx +Subject: [PATCH 030/194] Allow mac address to be set in smsc95xx Signed-off-by: popcornmix --- @@ -122348,10 +122348,10 @@ index 26423ad..e29a323 100644 if (smsc95xx_read_eeprom(dev, EEPROM_MAC_OFFSET, ETH_ALEN, dev->net->dev_addr) == 0) { -From 875b987168c33dbd9e3ffb259277d62a535970ab Mon Sep 17 00:00:00 2001 +From ccba4f76d2d8acf925cb0173e7865cab162d6031 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 8 May 2013 11:46:50 +0100 -Subject: [PATCH 031/192] enabling the realtime clock 1-wire chip DS1307 and +Subject: [PATCH 031/194] 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 @@ -122749,10 +122749,10 @@ index d58594a..feae942 100644 unsigned int ext_pullup_enable_pin; unsigned int pullup_duration; -From a7a7923fb977c1511cca7992d36d70c2c5b304d4 Mon Sep 17 00:00:00 2001 +From 04bc86ea16b589d4c5392441a9226f365eb4e934 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 18 Dec 2013 22:16:19 +0000 -Subject: [PATCH 033/192] config: Enable CONFIG_MEMCG, but leave it disabled +Subject: [PATCH 033/194] config: Enable CONFIG_MEMCG, but leave it disabled (due to memory cost). Enable with cgroup_enable=memory. --- @@ -122807,10 +122807,10 @@ index a04225d..a2ef8af 100644 /** -From 0e5e372ca2240e9d70ae4c52662a49c3e16f7ba9 Mon Sep 17 00:00:00 2001 +From eddb6053ac89b626ffe6b60c678437a334b06075 Mon Sep 17 00:00:00 2001 From: Florian Meier Date: Fri, 22 Nov 2013 14:33:38 +0100 -Subject: [PATCH 034/192] ASoC: Add support for BCM2708 +Subject: [PATCH 034/194] ASoC: Add support for BCM2708 This driver adds support for digital audio (I2S) for the BCM2708 SoC that is used by the @@ -123953,10 +123953,10 @@ index 0000000..6fdcbc1 + +#endif -From b2e44c6378b2db6d65be04c95ab877b91b8d9f1e Mon Sep 17 00:00:00 2001 +From ff4a754b75bfac31eb14c3a06805d6a6bd21318b Mon Sep 17 00:00:00 2001 From: Florian Meier Date: Fri, 22 Nov 2013 14:59:51 +0100 -Subject: [PATCH 035/192] ASoC: Add support for PCM5102A codec +Subject: [PATCH 035/194] ASoC: Add support for PCM5102A codec Some definitions to support the PCM5102A codec by Texas Instruments. @@ -124081,10 +124081,10 @@ index 0000000..126f1e9 +MODULE_AUTHOR("Florian Meier "); +MODULE_LICENSE("GPL v2"); -From 7d8babed7b82e7e0288b21e4e7230cf6afe60c8d Mon Sep 17 00:00:00 2001 +From c2f0f13aa7a56c787693a286a66b7efa523a9721 Mon Sep 17 00:00:00 2001 From: Florian Meier Date: Fri, 22 Nov 2013 19:04:54 +0100 -Subject: [PATCH 036/192] BCM2708: Add I2S support to board file +Subject: [PATCH 036/194] BCM2708: Add I2S support to board file Adds the required initializations for I2S to the board file of mach-bcm2708. @@ -124173,10 +124173,10 @@ index a3b65dc..a515992 100644 for (i = 0; i <= 1; i++) { void __iomem *base; -From 5ac22a8bd8d72cdd0943c5253f69246a9f67d809 Mon Sep 17 00:00:00 2001 +From 55d1827c5a972cfd10da253aa06d8f8abc80498b Mon Sep 17 00:00:00 2001 From: Florian Meier Date: Fri, 22 Nov 2013 19:19:08 +0100 -Subject: [PATCH 037/192] ASoC: Add support for HifiBerry DAC +Subject: [PATCH 037/194] ASoC: Add support for HifiBerry DAC This adds a machine driver for the HifiBerry DAC. It is a sound card that can @@ -124325,10 +124325,10 @@ index 0000000..4b70b45 +MODULE_DESCRIPTION("ASoC Driver for HifiBerry DAC"); +MODULE_LICENSE("GPL v2"); -From 20d20b334afca6fd5e71e036285f542a74375d16 Mon Sep 17 00:00:00 2001 +From 55da93510f26d0155f6d4844688fc8808613fc29 Mon Sep 17 00:00:00 2001 From: Florian Meier Date: Fri, 22 Nov 2013 19:21:34 +0100 -Subject: [PATCH 038/192] BCM2708: Add HifiBerry DAC to board file +Subject: [PATCH 038/194] BCM2708: Add HifiBerry DAC to board file This adds the initalization of the HifiBerry DAC to the mach-bcm2708 board file. @@ -124376,10 +124376,10 @@ index 01f2de7..1d9b788 100644 for (i = 0; i < ARRAY_SIZE(amba_devs); i++) { struct amba_device *d = amba_devs[i]; -From cad54b0a9c94257e08529fc9d2e673543851e817 Mon Sep 17 00:00:00 2001 +From 98736acf9857e9bbf038b0b7134c0c14ddef69a8 Mon Sep 17 00:00:00 2001 From: Florian Meier Date: Fri, 6 Dec 2013 20:50:28 +0100 -Subject: [PATCH 039/192] ASoC: BCM2708: Add support for RPi-DAC +Subject: [PATCH 039/194] ASoC: BCM2708: Add support for RPi-DAC This adds a machine driver for the RPi-DAC. @@ -124674,10 +124674,10 @@ index 0000000..b4eaa44 +MODULE_AUTHOR("Florian Meier "); +MODULE_LICENSE("GPL v2"); -From 2efb8725682fe9c9997677ce267f795db66b220e Mon Sep 17 00:00:00 2001 +From 7a7a54178ae9dbcdb98ffb2c986976ccec24143d Mon Sep 17 00:00:00 2001 From: Daniel Matuschek Date: Wed, 15 Jan 2014 21:41:23 +0100 -Subject: [PATCH 040/192] ASoC: wm8804: Implement MCLK configuration options, +Subject: [PATCH 040/194] 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 @@ -124717,10 +124717,10 @@ index 1e403f6..d4efa85 100644 #define WM8804_RATES (SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 | \ SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_64000 | \ -From 575c0192a56f9b78175226f441dac7f850d5570a Mon Sep 17 00:00:00 2001 +From 80a8450207698b78e1e2706c78be917a0a2d226e Mon Sep 17 00:00:00 2001 From: Daniel Matuschek Date: Wed, 15 Jan 2014 21:42:08 +0100 -Subject: [PATCH 041/192] ASoC: BCM:Add support for HiFiBerry Digi. Driver is +Subject: [PATCH 041/194] ASoC: BCM:Add support for HiFiBerry Digi. Driver is based on the patched WM8804 driver. Signed-off-by: Daniel Matuschek @@ -124985,10 +124985,10 @@ index 0000000..92e9e46 +MODULE_DESCRIPTION("ASoC Driver for HifiBerry Digi"); +MODULE_LICENSE("GPL v2"); -From 7be683eb602b189605fd7fc7c0871ff69ba60319 Mon Sep 17 00:00:00 2001 +From e9935d1eae17cdcb2c0b7b6cdb3120462673efd2 Mon Sep 17 00:00:00 2001 From: Daniel Matuschek Date: Thu, 16 Jan 2014 07:26:08 +0100 -Subject: [PATCH 042/192] BCM2708: Added support for HiFiBerry Digi board Board +Subject: [PATCH 042/194] BCM2708: Added support for HiFiBerry Digi board Board initalization by I2C Signed-off-by: Daniel Matuschek @@ -125035,10 +125035,10 @@ index 6d53beb..a062d7f 100644 bcm_register_device_dt(&snd_rpi_dac_device); bcm_register_device_dt(&snd_pcm1794a_codec_device); -From f65b15497d822d0ee124653988e1c1a77d7e1c39 Mon Sep 17 00:00:00 2001 +From af889ad42b8707233529ff69e4777cdbebdb1fda Mon Sep 17 00:00:00 2001 From: Daniel Matuschek Date: Thu, 16 Jan 2014 07:36:35 +0100 -Subject: [PATCH 043/192] ASoC: wm8804: Set idle_bias_off to false Idle bias +Subject: [PATCH 043/194] ASoC: wm8804: Set idle_bias_off to false Idle bias has been change to remove warning on driver startup Signed-off-by: Daniel Matuschek @@ -125060,10 +125060,10 @@ index d4efa85..f3f26a2 100644 .dapm_widgets = wm8804_dapm_widgets, .num_dapm_widgets = ARRAY_SIZE(wm8804_dapm_widgets), -From a3a8607f21c913660338ecfeab3e8f09e6f46a7e Mon Sep 17 00:00:00 2001 +From cb559a1b74c95bcdf53c269f4b3c439d494b95cf Mon Sep 17 00:00:00 2001 From: Gordon Garrity Date: Sat, 8 Mar 2014 16:56:57 +0000 -Subject: [PATCH 044/192] Add IQaudIO Sound Card support for Raspberry Pi +Subject: [PATCH 044/194] Add IQaudIO Sound Card support for Raspberry Pi Set a limit of 0dB on Digital Volume Control @@ -125271,10 +125271,10 @@ index 0000000..aff7377 +MODULE_DESCRIPTION("ASoC Driver for IQAudio DAC"); +MODULE_LICENSE("GPL v2"); -From a83f2448dd653557e1532d92b581c56e4dc471c2 Mon Sep 17 00:00:00 2001 +From 98b208c6abab24c6ffa353c71933902ae0eca8b0 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Wed, 18 Jun 2014 13:42:01 +0100 -Subject: [PATCH 045/192] vmstat: Workaround for issue where dirty page count +Subject: [PATCH 045/194] vmstat: Workaround for issue where dirty page count goes negative See: @@ -125301,10 +125301,10 @@ index 82e7db7..f87d16d 100644 static inline void __inc_zone_page_state(struct page *page, -From 4678e30fad78c70aa9fb1489c2c585e74d308973 Mon Sep 17 00:00:00 2001 +From 92feba25f0f1820019519a4da1f22c9583b030b3 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Mon, 14 Jul 2014 22:02:09 +0100 -Subject: [PATCH 046/192] hid: Reduce default mouse polling interval to 60Hz +Subject: [PATCH 046/194] hid: Reduce default mouse polling interval to 60Hz Reduces overhead when using X --- @@ -125340,10 +125340,10 @@ index eab5bd6..ca47de9 100644 ret = -ENOMEM; if (usb_endpoint_dir_in(endpoint)) { -From e00dd94e1cf5cf4f7c9c49271d624695acfe2e6a Mon Sep 17 00:00:00 2001 +From 047bb9ea625a0e2d10cb3185fdab05eb3c123fae Mon Sep 17 00:00:00 2001 From: Daniel Matuschek Date: Mon, 4 Aug 2014 10:06:56 +0200 -Subject: [PATCH 047/192] Added support for HiFiBerry DAC+ +Subject: [PATCH 047/194] 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. @@ -125554,10 +125554,10 @@ index 0000000..c63387b +MODULE_DESCRIPTION("ASoC Driver for HiFiBerry DAC+"); +MODULE_LICENSE("GPL v2"); -From 169fecad9b21239bfa863add3a28c2b28c0771d5 Mon Sep 17 00:00:00 2001 +From d417f6c0d6949188bf72f572791ecb35afdd4ea5 Mon Sep 17 00:00:00 2001 From: Daniel Matuschek Date: Mon, 4 Aug 2014 11:09:58 +0200 -Subject: [PATCH 048/192] Added driver for HiFiBerry Amp amplifier add-on board +Subject: [PATCH 048/194] 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. @@ -126426,10 +126426,10 @@ index 0000000..8f019e0 + +#endif /* _TAS5713_H */ -From bfaa96ef753c4e4b8bd6fa32d98dec3d29a27828 Mon Sep 17 00:00:00 2001 +From 03d656c1e3f44f046045801e81cd04ffb240ae1a Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 13 Apr 2015 19:14:18 +0100 -Subject: [PATCH 049/192] bcm2708: Allow option card devices to be configured +Subject: [PATCH 049/194] bcm2708: Allow option card devices to be configured via DT If the kernel is built with Device Tree support, and if a DT blob @@ -126454,10 +126454,10 @@ index 03fa1cb..c816526 100644 static struct platform_driver bcm2835_i2s_driver = { .probe = bcm2835_i2s_probe, -From 004ae70ecd0ba75f44339b5ecd4e1741051ac6fa Mon Sep 17 00:00:00 2001 +From b6953d682b2b312f1a259dac2595d4a1f39996af Mon Sep 17 00:00:00 2001 From: popcornmix Date: Mon, 13 Apr 2015 18:45:39 +0100 -Subject: [PATCH 050/192] Adding Device Tree support for some RPi audio cards +Subject: [PATCH 050/194] Adding Device Tree support for some RPi audio cards --- arch/arm/mach-bcm2709/bcm2709.c | 143 ++++++++++++++++++++++++++++++++++++++ @@ -126820,10 +126820,10 @@ index 126f1e9..7c6598e 100644 }; -From 9ec5f902ca815afa5ad61c4820b16e7bfe6e8497 Mon Sep 17 00:00:00 2001 +From 59955697bc15f97b2c9d39fdfd07d0cc44f6bce8 Mon Sep 17 00:00:00 2001 From: Timo Kokkonen Date: Wed, 29 Oct 2014 23:30:30 -0700 -Subject: [PATCH 051/192] Added support to reserve/enable a GPIO pin to be used +Subject: [PATCH 051/194] Added support to reserve/enable a GPIO pin to be used from pps-gpio module (LinuxPPS). Enable PPS modules in default config for RPi. @@ -126959,10 +126959,10 @@ index 57e1f3d..721559b 100644 +module_param(pps_gpio_pin, int, 0644); +MODULE_PARM_DESC(pps_gpio_pin, "Set GPIO pin to reserve for PPS"); -From 48370c036cd319379aba97fb3b5b0bc5a476c34d Mon Sep 17 00:00:00 2001 +From c26d9c1d3493331c6a87f2301a4fc1aa755debd1 Mon Sep 17 00:00:00 2001 From: Ryan Coe Date: Sat, 31 Jan 2015 18:25:49 -0700 -Subject: [PATCH 052/192] Update ds1307 driver for device-tree support +Subject: [PATCH 052/194] Update ds1307 driver for device-tree support Signed-off-by: Ryan Coe --- @@ -126989,10 +126989,10 @@ index 4ffabb3..c6789a7 100644 .driver = { .name = "rtc-ds1307", -From 55ac310dca9f3610902db3937ebf301b18b3f6ba Mon Sep 17 00:00:00 2001 +From 5a10e7bdb11bdeb128f7705d9409d0597dba138d Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 6 Feb 2015 13:50:57 +0000 -Subject: [PATCH 053/192] BCM270x_DT: Add pwr_led, and the required "input" +Subject: [PATCH 053/194] BCM270x_DT: Add pwr_led, and the required "input" trigger The "input" trigger makes the associated GPIO an input. This is to support @@ -127103,10 +127103,10 @@ index 0000000..2ca2b98 +MODULE_DESCRIPTION("Set LED GPIO to Input \"trigger\""); +MODULE_LICENSE("GPL"); -From 022a8e47780f3e5077d6b2710734b6603c44952b Mon Sep 17 00:00:00 2001 +From 72874b8ea7e0163a45c85f516b97e26349821b1d Mon Sep 17 00:00:00 2001 From: popcornmix Date: Fri, 20 Jun 2014 17:19:27 +0100 -Subject: [PATCH 054/192] bcm2709: Simplify and strip down IRQ handler +Subject: [PATCH 054/194] bcm2709: Simplify and strip down IRQ handler --- arch/arm/include/asm/entry-macro-multi.S | 2 + @@ -127325,10 +127325,10 @@ index d08591b..08d184c 100644 +1: get_irqnr_and_base r0, r2, r6, lr + .endm -From 0583ae47b0a83f3e8ace8bf7c5d0da6de8efe28e Mon Sep 17 00:00:00 2001 +From 84aa8f7265e0ec7e51faf76854c44176e0d4ba00 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Thu, 12 Feb 2015 11:17:53 +0000 -Subject: [PATCH 055/192] Fix LED "input" trigger implementation for 3.19 +Subject: [PATCH 055/194] Fix LED "input" trigger implementation for 3.19 --- drivers/leds/leds-gpio.c | 10 +++++++++- @@ -127415,10 +127415,10 @@ index 9a2b000..60accc5 100644 /* Set LED brightness level */ /* Must not sleep, use a workqueue if needed */ -From 7c65cd90b282b3ed93ad70f855db6131db3a265d Mon Sep 17 00:00:00 2001 +From d0ed177e729b655e9c30381cc1eb7bcf4707cb97 Mon Sep 17 00:00:00 2001 From: notro Date: Thu, 10 Jul 2014 13:59:47 +0200 -Subject: [PATCH 056/192] pinctrl-bcm2835: Set base to 0 give expected gpio +Subject: [PATCH 056/194] pinctrl-bcm2835: Set base to 0 give expected gpio numbering Signed-off-by: Noralf Tronnes @@ -127440,10 +127440,10 @@ index 8d908e3..7a1900d 100644 .can_sleep = false, }; -From a5aa225de371133af222f8cc2d64cca5845f245f Mon Sep 17 00:00:00 2001 +From 5f91a4dffe91a3cfabe202b31d40e58f9c4300cd Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 4 Feb 2015 10:02:24 +0000 -Subject: [PATCH 057/192] pinctrl-bcm2835: bcm2835_gpio_direction_output must +Subject: [PATCH 057/194] pinctrl-bcm2835: bcm2835_gpio_direction_output must set the value --- @@ -127471,10 +127471,10 @@ index 7a1900d..62f85aa 100644 static void bcm2835_gpio_set(struct gpio_chip *chip, unsigned offset, int value) -From 93528a99004c5273cfbacbd3efa439f919f35126 Mon Sep 17 00:00:00 2001 +From 7231eb4f1d3c4438cef92ebc28508f882d70c67e Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Tue, 24 Feb 2015 13:40:50 +0000 -Subject: [PATCH 058/192] pinctrl-bcm2835: Fix interrupt handling for GPIOs +Subject: [PATCH 058/194] pinctrl-bcm2835: Fix interrupt handling for GPIOs 28-31 and 46-53 Contrary to the documentation, the BCM2835 GPIO controller actually has @@ -127620,10 +127620,10 @@ index 62f85aa..c7cf266 100644 }, }; -From 350a32f43794babaedca70c9686bf91a4d76ec79 Mon Sep 17 00:00:00 2001 +From a829200d363d26f99e477ba78c466b1fdb216bb9 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Thu, 26 Feb 2015 09:58:22 +0000 -Subject: [PATCH 059/192] pinctrl-bcm2835: Only request the interrupts listed +Subject: [PATCH 059/194] pinctrl-bcm2835: Only request the interrupts listed in the DTB Although the GPIO controller can generate three interrupts (four counting @@ -127650,10 +127650,10 @@ index c7cf266..986779a 100644 pc->irq_data[i].irqgroup = i; -From 002d8609b029cb3240dfeb872587427d8ad7cfa8 Mon Sep 17 00:00:00 2001 +From 6f80523ec529eae5c842f5d0c7897b20aa60b5b3 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 27 Feb 2015 15:10:24 +0000 -Subject: [PATCH 060/192] enc28j60: Add device tree compatible string and an +Subject: [PATCH 060/194] enc28j60: Add device tree compatible string and an overlay --- @@ -127687,10 +127687,10 @@ index b1b5f66..c6b6e1a 100644 .probe = enc28j60_probe, .remove = enc28j60_remove, -From 9a7f2623274c034d489d2bde8479050ab7e8c00a Mon Sep 17 00:00:00 2001 +From f7a9d41164cc17757413b9320171b8ffa2d37ab3 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 25 Mar 2015 09:26:17 +0100 -Subject: [PATCH 061/192] Add driver for rpi-proto +Subject: [PATCH 061/194] 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 @@ -127905,10 +127905,10 @@ index 0000000..c6e45a0 +MODULE_DESCRIPTION("ASoC Driver for Raspberry Pi connected to PROTO board (WM8731)"); +MODULE_LICENSE("GPL"); -From 8372895d37d8430a0ebd1a6ecaac2e1c5a3b812d Mon Sep 17 00:00:00 2001 +From 69e7cec8f40f4dfb74a8a90765e6ec3e620a2c77 Mon Sep 17 00:00:00 2001 From: Clive Messer Date: Thu, 2 Apr 2015 12:22:55 +0100 -Subject: [PATCH 062/192] Add Device Tree support for RPi-DAC. +Subject: [PATCH 062/194] Add Device Tree support for RPi-DAC. --- sound/soc/bcm/rpi-dac.c | 21 +++++++++++++++++++++ @@ -127983,10 +127983,10 @@ index b4eaa44..afe1b41 100644 }; -From 583994e31e3e463163484a0d4b5ca4fb6249c014 Mon Sep 17 00:00:00 2001 +From 2ba0215ccee2c6c6ade529efcbb3596d54855fde Mon Sep 17 00:00:00 2001 From: popcornmix Date: Mon, 13 Apr 2015 17:16:29 +0100 -Subject: [PATCH 063/192] config: Add default configs +Subject: [PATCH 063/194] config: Add default configs --- arch/arm/configs/bcm2709_defconfig | 1204 ++++++++++++++++++++++++++++++++++++ @@ -130411,10 +130411,10 @@ index 0000000..6a41231 +CONFIG_CRC_ITU_T=y +CONFIG_LIBCRC32C=y -From 1f4b5f09c42a0cffa2cb1edb046b40c3edf0876d Mon Sep 17 00:00:00 2001 +From 36014aab6345095255df33a004a5b1cc53c9519d Mon Sep 17 00:00:00 2001 From: Steve Glendinning Date: Thu, 19 Feb 2015 18:47:12 +0000 -Subject: [PATCH 064/192] smsx95xx: fix crimes against truesize +Subject: [PATCH 064/194] 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. @@ -130449,10 +130449,10 @@ index e29a323..aff63dc usbnet_skb_return(dev, ax_skb); } -From 0b6139e6075209396b47af33509cec1a78cc9fcb Mon Sep 17 00:00:00 2001 +From 11c84b6f4514f3080a198e11169df17488decdd2 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Fri, 17 Apr 2015 16:58:45 +0100 -Subject: [PATCH 065/192] smsc95xx: Disable turbo mode by default +Subject: [PATCH 065/194] smsc95xx: Disable turbo mode by default --- drivers/net/usb/smsc95xx.c | 2 +- @@ -130472,10 +130472,10 @@ index aff63dc..08a8a8c 100755 MODULE_PARM_DESC(turbo_mode, "Enable multiple frames per Rx transaction"); -From 2334df3103a87c0f035438ae4965e9068439bdf3 Mon Sep 17 00:00:00 2001 +From 31beb06e2bf776509f4747a42f14ea0d98f72e98 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 17 Apr 2015 19:30:22 +0100 -Subject: [PATCH 066/192] Add blk_pos parameter to mmc multi_io_quirk callback +Subject: [PATCH 066/194] Add blk_pos parameter to mmc multi_io_quirk callback --- drivers/mmc/card/block.c | 1 + @@ -130558,10 +130558,10 @@ index b0258e8..d3cdad9 100644 struct mmc_card; -From b4681b0522340cc6b5437ed1c0599b8fd90a6f6a Mon Sep 17 00:00:00 2001 +From 46e4522a701337da606e48acc878cb44de55bf7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Wed, 29 Apr 2015 17:24:02 +0200 -Subject: [PATCH 067/192] bcm2835: bcm2835_defconfig +Subject: [PATCH 067/194] bcm2835: bcm2835_defconfig MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -131891,10 +131891,10 @@ index 31cb073..2e8a95a 100644 # CONFIG_XZ_DEC_ARM is not set # CONFIG_XZ_DEC_ARMTHUMB is not set -From 2a9988d49a89b6decd3594930753f2a26f65bd24 Mon Sep 17 00:00:00 2001 +From 79b69b32c28af0ee8ef144635982f6ba2908ca78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 1 May 2015 23:00:15 +0200 -Subject: [PATCH 068/192] BCM270x_DT: Add mailbox bcm2708-vcio +Subject: [PATCH 068/194] BCM270x_DT: Add mailbox bcm2708-vcio MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -131935,10 +131935,10 @@ index 721559b..4a00561 100644 #ifdef CONFIG_BCM2708_GPIO bcm_register_device_dt(&bcm2708_gpio_device); -From ae4cde25a8fb5a195befa3b731b5a66e324a23e2 Mon Sep 17 00:00:00 2001 +From c1d19f13510c4a60e9b95f8cbad3cda438fe76c8 Mon Sep 17 00:00:00 2001 From: Gordon Hollingworth Date: Tue, 12 May 2015 14:47:56 +0100 -Subject: [PATCH 069/192] rpi-ft5406: Add touchscreen driver for pi LCD display +Subject: [PATCH 069/194] rpi-ft5406: Add touchscreen driver for pi LCD display --- drivers/input/touchscreen/Kconfig | 7 + @@ -132255,10 +132255,10 @@ index cc284ed..d3ea839 100644 VCMSG_SET_CURSOR_STATE = 0x00008011, }; -From d22a193b895ee5d962c1ca9af1da96f1b6390c04 Mon Sep 17 00:00:00 2001 +From 07cd5d06d9fee39942dcc430231db73bb53c7e5b Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 13 Oct 2014 11:47:53 +0100 -Subject: [PATCH 070/192] Improve __copy_to_user and __copy_from_user +Subject: [PATCH 070/194] Improve __copy_to_user and __copy_from_user performance Provide a __copy_from_user that uses memcpy. On BCM2708, use @@ -133783,10 +133783,10 @@ index 3e58d71..0622891 100644 static unsigned long noinline __clear_user_memset(void __user *addr, unsigned long n) -From 9873c8a1e6a5a473081af4cc91d7de1a05d1f7ca Mon Sep 17 00:00:00 2001 +From edc3241b67c3654ee59acfaead768b91aa84df02 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 27 May 2015 17:22:15 +0100 -Subject: [PATCH 071/192] bcm2835-audio: Create the platform device if the DT +Subject: [PATCH 071/194] bcm2835-audio: Create the platform device if the DT node is disabled For backwards compatibility, allow the built-in ALSA driver to be enabled @@ -133840,10 +133840,10 @@ index 4a00561..dec8043 100644 bcm_register_device_dt(&bcm2708_spi_device); -From 428c15e2c44134e3965874ea636ff17b1f30647e Mon Sep 17 00:00:00 2001 +From 344087912784db8b1eee766a136a02ff817c8fca 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 072/192] ARM: bcm2835: Set Serial number and Revision +Subject: [PATCH 072/194] ARM: bcm2835: Set Serial number and Revision MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -133902,10 +133902,10 @@ index 70f2f39..f7fdacd 100644 static const char * const bcm2835_compat[] = { -From 0dfd9537626392726c642be4349428c2c9ff30cc Mon Sep 17 00:00:00 2001 +From f3602346755806054cfcf1cf2f905b29468af420 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Tue, 16 Jun 2015 17:47:27 +0100 -Subject: [PATCH 073/192] platform: Add force_core command line setting to boot +Subject: [PATCH 073/194] platform: Add force_core command line setting to boot from a different core number --- @@ -133976,10 +133976,10 @@ index dec8043..fe71c50 100644 module_param(serial, uint, 0644); module_param(uart_clock, uint, 0644); -From bd76380d909bf43f5b0e58ba97cac4de78ed112f Mon Sep 17 00:00:00 2001 +From 45c0c407d8f793347af885fa66d158dce5fdb452 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Thu, 18 Jun 2015 17:46:17 +0100 -Subject: [PATCH 074/192] mach-bcm270x: Enable the building of pinctrl-bcm2835 +Subject: [PATCH 074/194] mach-bcm270x: Enable the building of pinctrl-bcm2835 --- drivers/pinctrl/Makefile | 1 + @@ -133998,10 +133998,10 @@ index 6eadf04..9119513 100644 obj-$(CONFIG_ARCH_BERLIN) += berlin/ obj-y += freescale/ -From 540db38d70932afa9082b471b8e0cef881ee9c93 Mon Sep 17 00:00:00 2001 +From 56add5560092eda46f452d9f9dfa3c26c44fd7b8 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 19 Jun 2015 16:41:39 +0100 -Subject: [PATCH 075/192] BCM270X_DT: Document the i2s-mmap overlay +Subject: [PATCH 075/194] BCM270X_DT: Document the i2s-mmap overlay --- arch/arm/boot/dts/overlays/README | 6 ++++++ @@ -134025,10 +134025,10 @@ index 3e08f98..7fa6d33 100644 Info: Configures the IQaudio DAC audio card Load: dtoverlay=iqaudio-dac -From 777f50046b3972b9adbb72dcf0e8a6222295d021 Mon Sep 17 00:00:00 2001 +From 894275ddffee89565ddb77ae2e1bf98aff7cfc09 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 17 Jun 2015 11:36:53 +0100 -Subject: [PATCH 076/192] bcm2835-sdhost: Improve error handling and recovery +Subject: [PATCH 076/194] bcm2835-sdhost: Improve error handling and recovery 1) Expose the hw_reset method to the MMC framework, removing many internal calls by the driver. @@ -135120,10 +135120,10 @@ index eef8a24..6277e43 100644 if (host->allow_dma) { -From 5129948c33f7747e199f35cfc4b800a14bb60874 Mon Sep 17 00:00:00 2001 +From e8a98639901cab1a1a82b0282d8b49364fe547b2 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 4 Jun 2015 13:11:46 -0700 -Subject: [PATCH 077/192] ARM: bcm2835: Add the Raspberry Pi firmware driver +Subject: [PATCH 077/194] ARM: bcm2835: Add the Raspberry Pi firmware driver This gives us a function for making mailbox property channel requests of the firmware, which is most notable in that it will let us get and @@ -135557,10 +135557,10 @@ index 0000000..9d9efb7 + void *data, size_t tag_size); +struct rpi_firmware *rpi_firmware_get(struct device_node *firmware_node); -From db77f4974bcf574c2e8171752cb1e5c4aa57e367 Mon Sep 17 00:00:00 2001 +From 167951d88cd1d4a33ff993c661fb4e41ab469153 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Sun, 22 Mar 2015 13:33:23 +0000 -Subject: [PATCH 078/192] config: Enable ZSMALLOC, ZRAM and PGTABLE_MAPPING +Subject: [PATCH 078/194] config: Enable ZSMALLOC, ZRAM and PGTABLE_MAPPING --- arch/arm/configs/bcm2709_defconfig | 4 ++++ @@ -135612,10 +135612,10 @@ index 6a41231..cacde14 100644 CONFIG_BLK_DEV_CRYPTOLOOP=m CONFIG_BLK_DEV_DRBD=m -From 13fe405dc46bf5fbc787303ea266ac5f8968e367 Mon Sep 17 00:00:00 2001 +From a11d3d8a1598bc8f95e7ea50c3187d33ddd64a28 Mon Sep 17 00:00:00 2001 From: Gordon Hollingworth Date: Mon, 22 Jun 2015 16:27:07 +0100 -Subject: [PATCH 079/192] Add rpi-ft5406 overlay Add rpi-ft5406 driver as +Subject: [PATCH 079/194] Add rpi-ft5406 overlay Add rpi-ft5406 driver as module --- @@ -135702,10 +135702,10 @@ index cacde14..f952ff2 100644 CONFIG_TOUCHSCREEN_STMPE=m CONFIG_INPUT_MISC=y -From c2187533e3a163020c2fa5f93a307c8f009a9beb Mon Sep 17 00:00:00 2001 +From fe5fb63fcee650a8a86620ae28b340c1a26254b5 Mon Sep 17 00:00:00 2001 From: Gordon Hollingworth Date: Tue, 23 Jun 2015 09:53:40 +0100 -Subject: [PATCH 080/192] Fix driver detection failure Check that the buffer +Subject: [PATCH 080/194] Fix driver detection failure Check that the buffer response is non-zero meaning the touchscreen was detected --- @@ -135726,10 +135726,10 @@ index f55151b..d41851d 100644 dev_dbg(&pdev->dev, "Got TS buffer 0x%x\n", request.tag.val); } -From 14882c1c06a7fc116a527c56939d624a3ff31a93 Mon Sep 17 00:00:00 2001 +From e61f9b07f84cc33909e24abac78bd6d409c58378 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Tue, 23 Jun 2015 13:24:01 +0100 -Subject: [PATCH 081/192] config: Enable 8250 serial port +Subject: [PATCH 081/194] config: Enable 8250 serial port --- arch/arm/configs/bcm2709_defconfig | 7 +++++++ @@ -135777,10 +135777,10 @@ index f952ff2..0c25d8b 100644 CONFIG_HW_RANDOM=y CONFIG_HW_RANDOM_BCM2835=m -From 3a51951e18f4346bcf8297e5c14f8ff26d8c2ecb Mon Sep 17 00:00:00 2001 +From 65f477430998ae66a22db184a70e607fc3181a28 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Tue, 23 Jun 2015 14:10:58 +0100 -Subject: [PATCH 082/192] config: Enable POWER_RESET_GPIO +Subject: [PATCH 082/194] config: Enable POWER_RESET_GPIO --- arch/arm/configs/bcm2709_defconfig | 2 ++ @@ -135814,10 +135814,10 @@ index 0c25d8b..e757db6 100644 CONFIG_THERMAL=y CONFIG_THERMAL_BCM2835=y -From cfdf9d309e1e63e88876aa12a7e9579bebfae6de Mon Sep 17 00:00:00 2001 +From 35aa75e5d747e46e1198f67134c763b4f1b98594 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Fri, 26 Jun 2015 17:37:38 +0100 -Subject: [PATCH 083/192] bcm2708-vcio: Remove restriction of only a single +Subject: [PATCH 083/194] bcm2708-vcio: Remove restriction of only a single instance being open We need more than one process to be able to use mailbox interface (e.g. HW cursor in fbturbo and hello_fft). @@ -135862,10 +135862,10 @@ index d91672b..06fb2c2f 100644 return 0; -From 8d9f0a812d37b52a72dd33b082c5681efb72c539 Mon Sep 17 00:00:00 2001 +From 35f7329f05c2ecaae027667885877a8c56b94713 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 26 Jun 2015 08:39:19 +0100 -Subject: [PATCH 084/192] BCM270X_DT: Create a "core" clock, use it for SPI and +Subject: [PATCH 084/194] BCM270X_DT: Create a "core" clock, use it for SPI and sdhost --- @@ -136016,10 +136016,10 @@ index b408ab4..897204a 100644 }; }; -From 7903edbb124634b2f953e9573d0a8995212a229f Mon Sep 17 00:00:00 2001 +From 4f6c6987f229e576177ac3808eaac7ecbb8be626 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 24 Jun 2015 09:24:31 +0100 -Subject: [PATCH 085/192] BCM270X_DT: Add MCP7941X to i2c-rtc overlay +Subject: [PATCH 085/194] BCM270X_DT: Add MCP7941X to i2c-rtc overlay --- arch/arm/boot/dts/overlays/README | 3 +++ @@ -136072,10 +136072,10 @@ index 6bccfdc..7052c71 100644 pcf8523 = <&pcf8523>,"status"; pcf8563 = <&pcf8563>,"status"; -From a0ec918bcbee508aa2225dcbe1661082cc84339c Mon Sep 17 00:00:00 2001 +From 11475d2c168fcfcf83b8b6bdc29650471f096ec2 Mon Sep 17 00:00:00 2001 From: P33M Date: Wed, 24 Jun 2015 11:23:06 +0100 -Subject: [PATCH 086/192] dts/overlays: document DHT11 overlay +Subject: [PATCH 086/194] dts/overlays: document DHT11 overlay --- arch/arm/boot/dts/overlays/README | 8 ++++++++ @@ -136101,10 +136101,10 @@ index 425eb19..9406cf3 100644 -From cb0cf2cf18e4f6a672bcb7cd5c36d8b7c29fb4c3 Mon Sep 17 00:00:00 2001 +From b6439fecdf33f97e09a351de75d930c804c141fc Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Thu, 25 Jun 2015 12:16:11 +0100 -Subject: [PATCH 087/192] gpio-poweroff: Allow it to work on Raspberry Pi +Subject: [PATCH 087/194] 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 @@ -136219,10 +136219,10 @@ index e5332f1..6e3fec2 100644 "%s: pm_power_off function already registered", __func__); -From 422f627455cd585e82251a4980509b58b8a24bdc Mon Sep 17 00:00:00 2001 +From adaad06ec8f94c9cd95013453af95644956f9474 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 17 Jun 2015 17:10:40 +0100 -Subject: [PATCH 088/192] BCM270x_DT: Default Compute Module i2c, i2s and spi +Subject: [PATCH 088/194] BCM270x_DT: Default Compute Module i2c, i2s and spi support --- @@ -136312,10 +136312,10 @@ index e82fcb2..af252bd 100755 }; }; -From 0b3f2c73d03ef9541e05e35ccd69b6731a1e44f1 Mon Sep 17 00:00:00 2001 +From d0cd28880a9eb9b2a268164c147050544256cb5a Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 22 Jun 2015 14:21:55 +0100 -Subject: [PATCH 089/192] BCM270X_DT: Sort nodes by bus address, and +Subject: [PATCH 089/194] BCM270X_DT: Sort nodes by bus address, and consolidate aliases --- @@ -136557,10 +136557,10 @@ index 24fa849..ccb9c31 100644 &gpio { -From 596aae25defa66a027ff755bfbaa4927b4069ea5 Mon Sep 17 00:00:00 2001 +From 8ca88ac3ab583e9e33cc19c1bfdc67cec98a4116 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 22 Jun 2015 14:23:03 +0100 -Subject: [PATCH 090/192] i2c-bcm2708/BCM270X_DT: Add support for I2C2 +Subject: [PATCH 090/194] i2c-bcm2708/BCM270X_DT: Add support for I2C2 The third I2C bus (I2C2) is normally reserved for HDMI use. Careless use of this bus can break an attached display - use with caution. @@ -136733,10 +136733,10 @@ index 8773203..7a24fbe 100644 goto out_free_bi; } -From 6b690b074fef2a156777f6cfe4b039be5f750580 Mon Sep 17 00:00:00 2001 +From bd2634c01ce6a19ebe2a02dc9640103c964f9a57 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 29 Jun 2015 12:14:02 +0100 -Subject: [PATCH 091/192] BCM270X_DT: Correct the lirc-rpi overlay +Subject: [PATCH 091/194] BCM270X_DT: Correct the lirc-rpi overlay documentation The polarity of the "sense" parameter was inverted with respect to reality. @@ -136762,10 +136762,10 @@ index 0ed7094..ec762d2 100644 (default "-1") -From d4e71046e5780edf317b9f46339ac4806ea523ef Mon Sep 17 00:00:00 2001 +From 7c518fad8a540daf0f0f4ce23f120ad335ee84ba Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Thu, 25 Jun 2015 08:47:09 +0100 -Subject: [PATCH 092/192] bcm2835-sdhost: Further improve overclock back-off +Subject: [PATCH 092/194] bcm2835-sdhost: Further improve overclock back-off --- drivers/mmc/host/bcm2835-sdhost.c | 144 +++++++++++++++++++++----------------- @@ -137057,10 +137057,10 @@ index 6277e43..a03db06 100644 iomem = platform_get_resource(pdev, IORESOURCE_MEM, 0); -From b6a92ce71483993af45e67ea6f36169a0f830345 Mon Sep 17 00:00:00 2001 +From df5af6405a664dd3613dd6000e0026d0b8d6560e Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Tue, 30 Jun 2015 10:28:59 +0100 -Subject: [PATCH 093/192] i2c-bcm2708: Increase timeouts to allow larger +Subject: [PATCH 093/194] i2c-bcm2708: Increase timeouts to allow larger transfers Use the timeout value provided by the I2C_TIMEOUT ioctl when waiting @@ -137098,10 +137098,10 @@ index 7a24fbe..8b8762d 100644 dev_err(&adap->dev, "transfer timed out\n"); goto error_timeout; -From 06903fef22d5a4aa1d01d074ace7525b08700de6 Mon Sep 17 00:00:00 2001 +From cf7320fe23958eadcb8c885a4e6626f61d1758a6 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Tue, 30 Jun 2015 10:33:52 +0100 -Subject: [PATCH 094/192] spi-bcm2708: Increase timeout from 150ms to 1s +Subject: [PATCH 094/194] spi-bcm2708: Increase timeout from 150ms to 1s See: https://github.com/raspberrypi/linux/issues/260 --- @@ -137125,10 +137125,10 @@ index 041b5e2..5c0214e 100644 struct bcm2708_spi { spinlock_t lock; -From 407ee1c2c3e70a2aefc441582e65e84ed89fc157 Mon Sep 17 00:00:00 2001 +From 92405d1da943839b52b2a7d8ceb32ecc14884fe4 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 15 Jun 2015 09:59:38 +0100 -Subject: [PATCH 095/192] bcm2708-spi: Don't use static pin configuration with +Subject: [PATCH 095/194] bcm2708-spi: Don't use static pin configuration with DT Also remove superfluous error checking - the SPI framework ensures the @@ -137167,10 +137167,10 @@ index 5c0214e..781c747 100644 master = spi_alloc_master(&pdev->dev, sizeof(*bs)); if (!master) { -From 72fd701def8bc905196e699d8dc7920145920985 Mon Sep 17 00:00:00 2001 +From 44d3b1308f37ddb8233ec1d4ff0bc37035db2580 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 15 Jun 2015 10:10:59 +0100 -Subject: [PATCH 096/192] bcm2708-i2s: Don't use static pin configuration with +Subject: [PATCH 096/194] bcm2708-i2s: Don't use static pin configuration with DT --- @@ -137193,10 +137193,10 @@ index a515992..5e93cd6 100644 /* * Adjust the data length according to the format. -From bb84c0676d675942bba9b1028e58558525aa1555 Mon Sep 17 00:00:00 2001 +From 2a1da619b98c4efc002e67e20c3b05d5c0019bb7 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Tue, 30 Jun 2015 14:12:42 +0100 -Subject: [PATCH 097/192] serial: 8250: Don't crash when nr_uarts is 0 +Subject: [PATCH 097/194] serial: 8250: Don't crash when nr_uarts is 0 --- drivers/tty/serial/8250/8250_core.c | 2 ++ @@ -137216,10 +137216,10 @@ index 4506e40..f03a19a 100644 for (i = 0; i < nr_uarts; i++) { struct uart_8250_port *up = &serial8250_ports[i]; -From 815181f5a9b19b78999ab59ddcf633e5a7109eaf Mon Sep 17 00:00:00 2001 +From e3ca03c3d79b6b1c748b3a660681653bb9aaad23 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 26 Jun 2015 08:50:11 +0100 -Subject: [PATCH 098/192] BCM270X_DT: Add overlay to enable uart1 +Subject: [PATCH 098/194] BCM270X_DT: Add overlay to enable uart1 N.B. The UART1 clock is derived from the core clock. The firmware will update clock-frequency if core_freq is set, but be aware @@ -137388,10 +137388,10 @@ index e757db6..363c894 100644 CONFIG_SERIAL_AMBA_PL011_CONSOLE=y CONFIG_SERIAL_OF_PLATFORM=y -From e61326ded97b93b02072eb60490487fb0082a819 Mon Sep 17 00:00:00 2001 +From 3ff51303559b9d4af4d624ae1d995547714ffa33 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 24 Jun 2015 14:10:44 +0100 -Subject: [PATCH 099/192] spi-bcm2835: Support pin groups other than 7-11 +Subject: [PATCH 099/194] 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 @@ -137472,10 +137472,10 @@ index a506773..cf3190f 100644 /* and set up the "mode" and level */ dev_info(&spi->dev, "setting up native-CS%i as GPIO %i\n", -From 716af635225849cc0b689e794e0ce5174d5a2218 Mon Sep 17 00:00:00 2001 +From 1cb594e055d515441db699c6830e6118b3249141 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Tue, 30 Jun 2015 17:37:38 +0100 -Subject: [PATCH 100/192] BCM270X_DT: Change pio_limit of sdhost driver to 1 +Subject: [PATCH 100/194] BCM270X_DT: Change pio_limit of sdhost driver to 1 --- arch/arm/boot/dts/overlays/sdhost-overlay.dts | 2 +- @@ -137495,10 +137495,10 @@ index 897204a..2da14a4 100644 }; }; -From 11f29a2e4b02f7a16b50e4aec2491fbfee5048ae Mon Sep 17 00:00:00 2001 +From ff86e95037b78274e2902d18d76090dcb003e0f2 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 1 Jul 2015 12:51:52 +0100 -Subject: [PATCH 101/192] bcm2835-sdhost: Clear HBLC for PIO mode +Subject: [PATCH 101/194] bcm2835-sdhost: Clear HBLC for PIO mode Also update pio_limit default in overlay README. --- @@ -137534,10 +137534,10 @@ index a03db06..d65870a 100644 BUG_ON(!host->data); } -From 9b4922dff10f1ca81cdc0d4074beeb7a3ad59850 Mon Sep 17 00:00:00 2001 +From df4296ba4b42b56831e16c492dc70f1097a7c502 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 3 Jul 2015 12:21:01 +0100 -Subject: [PATCH 102/192] BCM270X_DT: I2S needs function Alt2 +Subject: [PATCH 102/194] BCM270X_DT: I2S needs function Alt2 --- arch/arm/boot/dts/bcm2708-rpi-b-plus.dts | 2 +- @@ -137599,10 +137599,10 @@ index f25f0a2..62d1c62 100644 }; -From 50fd96b5cb84dc39a0f4c1901230338822b99000 Mon Sep 17 00:00:00 2001 +From ac63105dd026fcea06b4879913f2bac239203296 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 26 Jun 2015 14:16:15 +0200 -Subject: [PATCH 103/192] configs: Incorporate v4.1 dependency changes +Subject: [PATCH 103/194] configs: Incorporate v4.1 dependency changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -137765,10 +137765,10 @@ index 363c894..80f84d7 100644 CONFIG_CRC_ITU_T=y CONFIG_LIBCRC32C=y -From bee1ff8246521c98c30d45c8b6b443ae10312d49 Mon Sep 17 00:00:00 2001 +From 8d3f34752522072649e35cc388247776f7516c80 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 3 Jul 2015 15:47:33 +0100 -Subject: [PATCH 104/192] bcmrpi_defconfigs: Add SND_SOC_WM8804_I2C (for +Subject: [PATCH 104/194] bcmrpi_defconfigs: Add SND_SOC_WM8804_I2C (for HifiBerry Digi) 4.1 has split out support for the I2C and SPI variants, so it now @@ -137803,10 +137803,10 @@ index 80f84d7..14b91fdf 100644 CONFIG_SOUND_PRIME=m CONFIG_HIDRAW=y -From 8309bfc0b04c5c60f2f65398d6691829dccb3841 Mon Sep 17 00:00:00 2001 +From 78f7ddbbccddd77abc39c534e4181c067268f057 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Sat, 4 Jul 2015 19:55:23 +0100 -Subject: [PATCH 105/192] squash: BCM270X_DT: I2S only needs Alt2 on 28-31 +Subject: [PATCH 105/194] squash: BCM270X_DT: I2S only needs Alt2 on 28-31 See: https://github.com/raspberrypi/linux/issues/1046 --- @@ -137855,10 +137855,10 @@ index 62d1c62..f25f0a2 100644 }; -From 172aff3948311932c95b7a2e211df26638e3a07e Mon Sep 17 00:00:00 2001 +From 8a6c44d157b3d7b8a2ffbb5bfcd9929112e285cb Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 8 Jul 2015 14:48:57 +0100 -Subject: [PATCH 106/192] vchiq_arm: Two cacheing fixes +Subject: [PATCH 106/194] vchiq_arm: Two cacheing fixes 1) Make fragment size vary with cache line size Without this patch, non-cache-line-aligned transfers may corrupt @@ -138129,10 +138129,10 @@ index c739083..5edba23 100644 kfree(pagelist); } -From 607d6a667b81d12a1acd00e847769fcbae5fdc06 Mon Sep 17 00:00:00 2001 +From 6aee5d67caeb35ea46173fd667acb8db50d4b8e3 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Tue, 30 Jun 2015 09:10:36 +0100 -Subject: [PATCH 107/192] BCM270X_DT: Overlay for the Fen Logic VGA666 board +Subject: [PATCH 107/194] BCM270X_DT: Overlay for the Fen Logic VGA666 board The VGA666 board requires GPIOs 2-21 (so no I2C or UART). Using the overlay (instead of a custom dt-blob.bin) has the advantage that it will @@ -138214,10 +138214,10 @@ index 0000000..7fcab96 + }; +}; -From 79d8c2b5d515b281a7edb90d131ffb5b40abe175 Mon Sep 17 00:00:00 2001 +From ceeff37240ae30a6dcaaaa60139d07250d815ad2 Mon Sep 17 00:00:00 2001 From: petit-miner Date: Fri, 10 Jul 2015 13:59:18 +0200 -Subject: [PATCH 108/192] Added support for 2 mcp2515 CAN Bus IC +Subject: [PATCH 108/194] Added support for 2 mcp2515 CAN Bus IC See: https://github.com/raspberrypi/linux/issues/1018 https://github.com/raspberrypi/linux/pull/1049 @@ -138347,10 +138347,10 @@ index 0000000..6bef9ae + }; +}; -From 0e7e559458e0ac6cd98e31d22bdec517d4fbc5ac Mon Sep 17 00:00:00 2001 +From da5403849fcc135a3448b43e89642e2ea6551c0d Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Tue, 5 May 2015 13:27:45 -0700 -Subject: [PATCH 109/192] mailbox: Enable BCM2835 mailbox support +Subject: [PATCH 109/194] mailbox: Enable BCM2835 mailbox support This mailbox driver provides a single mailbox channel to write 32-bit values to the VPU and get a 32-bit response. The Raspberry Pi @@ -138629,10 +138629,10 @@ index 0000000..4b13268 +MODULE_DESCRIPTION("BCM2835 mailbox IPC driver"); +MODULE_LICENSE("GPL v2"); -From 895893101b62145fbbf31701d8d21b5ed1b388b5 Mon Sep 17 00:00:00 2001 +From 7ce183a315873dea7a5e7bbe87aed0b014da3e2f Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 13 May 2015 13:10:32 -0700 -Subject: [PATCH 110/192] mailbox/bcm2835: Fix mailbox full detection. +Subject: [PATCH 110/194] mailbox/bcm2835: Fix mailbox full detection. With the VC reader blocked and the ARM writing, MAIL0_STA reads empty permanently while MAIL1_STA goes from empty (0x40000000) to non-empty @@ -138671,10 +138671,10 @@ index 4b13268..0b47dd4 100644 return ret; } -From 06b12346293fb13dc45bb7fcc7a66abd1358e881 Mon Sep 17 00:00:00 2001 +From 4fe6ec85193b087974ff98c9f045c75e1140f4df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 26 Jun 2015 14:19:30 +0200 -Subject: [PATCH 111/192] mailbox: bcm2835: Support ARCH_BCM270x +Subject: [PATCH 111/194] mailbox: bcm2835: Support ARCH_BCM270x MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -138790,10 +138790,10 @@ index 19b491d..cc07d71 100644 dev_dbg(dev, "%s: mailbox not free\n", __func__); mutex_unlock(&con_mutex); -From b1528cb117ad1b7245dd08e1169b3a6763ca2fc3 Mon Sep 17 00:00:00 2001 +From 84366c44917358cb25a7d32db1a875a76dc01172 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 4 Jun 2015 13:11:47 -0700 -Subject: [PATCH 112/192] ARM: bcm2835: Add the firmware driver information to +Subject: [PATCH 112/194] ARM: bcm2835: Add the firmware driver information to the RPi DT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 @@ -138827,10 +138827,10 @@ index 466f02b..5cdfd5a 100644 audio: audio { compatible = "brcm,bcm2835-audio"; -From a598409cb3143b78a7b7d14af0013c8ef23360c2 Mon Sep 17 00:00:00 2001 +From 32122f07a1b53f457f2e58f70e36d8ba40830747 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 26 Jun 2015 14:21:20 +0200 -Subject: [PATCH 113/192] firmware: bcm2835: Add missing property tags +Subject: [PATCH 113/194] firmware: bcm2835: Add missing property tags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -138892,10 +138892,10 @@ index 9d9efb7..d3933af 100644 RPI_FIRMWARE_GET_COMMAND_LINE = 0x00050001, RPI_FIRMWARE_GET_DMA_CHANNELS = 0x00060001, -From 053d4a654a4c93a03673b75558096a71a96188b6 Mon Sep 17 00:00:00 2001 +From 3a4eb21d0f34ac3731ad50254d9647a9c6149b60 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 114/192] firmware: bcm2835: Support ARCH_BCM270x +Subject: [PATCH 114/194] firmware: bcm2835: Support ARCH_BCM270x MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -139001,10 +139001,10 @@ index dd506cd3..b980d53 100644 MODULE_AUTHOR("Eric Anholt "); MODULE_DESCRIPTION("Raspberry Pi firmware driver"); -From c283182d1690a0cc5425276386eaa259af64cc25 Mon Sep 17 00:00:00 2001 +From 6bb3159eec777f0be2bde6fa326630902922fa1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 26 Jun 2015 14:26:10 +0200 -Subject: [PATCH 115/192] firmware: bcm2835: Support legacy mailbox API +Subject: [PATCH 115/194] firmware: bcm2835: Support legacy mailbox API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -139094,10 +139094,10 @@ index d3933af..9a08cf1 100644 u32 tag, void *data, size_t len); int rpi_firmware_property_list(struct rpi_firmware *fw, -From 5f8125ffe004ab3feac693049b27054aa421f751 Mon Sep 17 00:00:00 2001 +From ae8233fb7fb37dff484ef02baa582505c603fe56 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 116/192] char: broadcom: Add vcio module +Subject: [PATCH 116/194] char: broadcom: Add vcio module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -139321,10 +139321,10 @@ index 0000000..c19bc20 +MODULE_DESCRIPTION("Mailbox userspace access"); +MODULE_LICENSE("GPL"); -From 1d303f5e9c3ec0dbc6f8486e334dd4c9943142c8 Mon Sep 17 00:00:00 2001 +From bedcb6319a1def5a4c70a6759d4bb9ce7254d896 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 26 Jun 2015 14:37:19 +0200 -Subject: [PATCH 117/192] BCM270x: Switch to firmware driver +Subject: [PATCH 117/194] BCM270x: Switch to firmware driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -139931,10 +139931,10 @@ index 06fb2c2f..2e4031b 100644 MODULE_DESCRIPTION("ARM I/O to VideoCore processor"); MODULE_LICENSE("GPL"); -From ce2bb52fb7a2cd00f96c4977e00fa0a6fd3993a6 Mon Sep 17 00:00:00 2001 +From d5d6dd768567d336540aa3c1d7d32d15b27206ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 26 Jun 2015 14:39:21 +0200 -Subject: [PATCH 118/192] bcm2835: Switch to firmware driver +Subject: [PATCH 118/194] bcm2835: Switch to firmware driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -139990,10 +139990,10 @@ index 47f2a6a..c284414 100644 CONFIG_EXT2_FS_XATTR=y CONFIG_EXT2_FS_POSIX_ACL=y -From 8539add30257919e1313ca766c63f715b0f3337b Mon Sep 17 00:00:00 2001 +From 68b75a870ee4e2d22cc4891458b46a3fc5efcd61 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 13 Jul 2015 13:25:31 +0100 -Subject: [PATCH 119/192] Merge pull request #1059 from pelwell/rpi-4.0.y +Subject: [PATCH 119/194] Merge pull request #1059 from pelwell/rpi-4.0.y w1_therm: Back-port locking improvements from 4.2-rc1 --- @@ -140188,10 +140188,10 @@ index 55eb86c..2f029e8 100644 { int err, i; -From 42d3e810841a1f6e2076f30aa7dcb436f7dd6165 Mon Sep 17 00:00:00 2001 +From 3d5d028cce3291fb16c6b121205a9a737a8d62d5 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Tue, 14 Jul 2015 11:11:51 +0100 -Subject: [PATCH 120/192] vchiq_arm: Sort out the vmalloc case +Subject: [PATCH 120/194] vchiq_arm: Sort out the vmalloc case See: https://github.com/raspberrypi/linux/issues/1055 --- @@ -140230,10 +140230,10 @@ index 5edba23..56bff05 100644 *need_release = 0; /* do not try and release vmalloc pages */ } else { -From 368b0be0685c3adf312bc6db8a8f37e19ece8a57 Mon Sep 17 00:00:00 2001 +From 0695304c6d74cd2e5eabc66f121e9d6b1bbbcff8 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Tue, 14 Jul 2015 10:26:09 +0100 -Subject: [PATCH 121/192] spidev: Add "spidev" compatible string to silence +Subject: [PATCH 121/194] spidev: Add "spidev" compatible string to silence warning See: https://github.com/raspberrypi/linux/issues/1054 @@ -140254,10 +140254,10 @@ index 92c909e..0535375 100644 }; MODULE_DEVICE_TABLE(of, spidev_dt_ids); -From 99061bbd52c6b72e32b65c8c1e7b8b315cf242eb Mon Sep 17 00:00:00 2001 +From c17de280cbfd43d84d3948dc5b175c596d090009 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Tue, 14 Jul 2015 14:32:47 +0100 -Subject: [PATCH 122/192] Merge pull request #1043 from XECDesign/sense-4.0 +Subject: [PATCH 122/194] Merge pull request #1043 from XECDesign/sense-4.0 mfd: Add Raspberry Pi Sense HAT core driver --- @@ -141190,10 +141190,10 @@ index 0000000..56196dc + +#endif -From fe5f9d51a9a506546fd4eed8c2df8ed86eba938e Mon Sep 17 00:00:00 2001 +From 33a379e0beaafde495f48d17808d40694e1b8620 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 15 Jul 2015 13:46:08 +0100 -Subject: [PATCH 123/192] leds-gpio: Implement the brightness_get method +Subject: [PATCH 123/194] leds-gpio: Implement the brightness_get method The power LED uses some clever logic that means it is driven by a voltage measuring circuit when configured as input, otherwise @@ -141236,10 +141236,10 @@ index 3cfbd6a..4e4e132 100644 state = !!gpiod_get_value_cansleep(led_dat->gpiod); else -From 660e3b8498bc3069ea74571f87a937ec0e9719e6 Mon Sep 17 00:00:00 2001 +From 4ecae9ad0da8efb48cc08dce1d3d97997c926cc5 Mon Sep 17 00:00:00 2001 From: Robert Tiemann Date: Fri, 17 Jul 2015 09:50:55 +0200 -Subject: [PATCH 124/192] dmaengine: bcm2708-dmaengine: Fix memory leak when +Subject: [PATCH 124/194] dmaengine: bcm2708-dmaengine: Fix memory leak when stopping a running transfer --- @@ -141259,10 +141259,10 @@ index 987ed53..73c6c00 100644 bcm2835_dma_abort(c->chan_base); -From fbb4e35f5138fcf615dafdad6c560b285e30d30c Mon Sep 17 00:00:00 2001 +From 4d518ff962f2e8438973b9f73020799e7bcc70db Mon Sep 17 00:00:00 2001 From: Robert Tiemann Date: Mon, 20 Jul 2015 11:01:13 +0200 -Subject: [PATCH 125/192] BCM270X_DT: Fix I2S register map +Subject: [PATCH 125/194] BCM270X_DT: Fix I2S register map --- arch/arm/boot/dts/bcm2708_common.dtsi | 4 ++-- @@ -141284,10 +141284,10 @@ index 2dd25f7..728e14a 100644 //dmas = <&dma 2>, // <&dma 3>; -From 0e979a30a41088e31e6f364afb962a92dece990f Mon Sep 17 00:00:00 2001 +From 1bba8a917a825f6457ee3fe7cca8a9a2fd92e91d Mon Sep 17 00:00:00 2001 From: Robert Tiemann Date: Mon, 20 Jul 2015 11:01:25 +0200 -Subject: [PATCH 126/192] BCM2835_DT: Fix I2S register map +Subject: [PATCH 126/194] BCM2835_DT: Fix I2S register map --- Documentation/devicetree/bindings/dma/brcm,bcm2835-dma.txt | 4 ++-- @@ -141341,10 +141341,10 @@ index 4a63704..1135120 100644 dmas = <&dma 2>, <&dma 3>; -From 5f2426c4b7a9043f0390d1b4268ef4b4a83a2e3d Mon Sep 17 00:00:00 2001 +From dc4cd36944230334e0049fdf5942ef901b1ceb06 Mon Sep 17 00:00:00 2001 From: David Frey Date: Tue, 14 Jul 2015 15:57:36 +0200 -Subject: [PATCH 127/192] config: Enable SHT drivers for raspberry pi +Subject: [PATCH 127/194] config: Enable SHT drivers for raspberry pi The SHT temperature and humidity sensors are often used in weather station projects. @@ -141386,10 +141386,10 @@ index b9b5bdf..7b24274 100644 CONFIG_THERMAL_BCM2835=y CONFIG_WATCHDOG=y -From d0b201bfe2ca24227632e744c06e6612e4a52de4 Mon Sep 17 00:00:00 2001 +From 89699711869bb4499d5c9302886fba0d71702c0b Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 20 Jul 2015 14:07:14 +0100 -Subject: [PATCH 128/192] BCM270X_DT: Correct typo in overlays/README +Subject: [PATCH 128/194] BCM270X_DT: Correct typo in overlays/README --- arch/arm/boot/dts/overlays/README | 2 +- @@ -141409,10 +141409,10 @@ index 8792f98..ed484ae 100644 i2c_arm Set to "on" to enable the ARM's i2c interface -From a13b6ec4c9d17246df1a3cb7b4e4ce5f1c62ec32 Mon Sep 17 00:00:00 2001 +From 9903a1a6f323e28e05b9b04a19de02c7df0133f8 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 20 Jul 2015 10:53:26 +0100 -Subject: [PATCH 129/192] bcm2835-sdhost: Add the ERASE capability +Subject: [PATCH 129/194] bcm2835-sdhost: Add the ERASE capability See: https://github.com/raspberrypi/linux/issues/1076 --- @@ -141433,10 +141433,10 @@ index d65870a..57a6ad3 100644 spin_lock_init(&host->lock); -From d619c2d2963b97eea071434b0ba4f2da88bb8e8d Mon Sep 17 00:00:00 2001 +From c14ab5b4110d51e1ade3077efe9969d331728ee8 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 20 Jul 2015 17:32:18 +0100 -Subject: [PATCH 130/192] bcm2835-sdhost: Ignore CRC7 for MMC CMD1 +Subject: [PATCH 130/194] bcm2835-sdhost: Ignore CRC7 for MMC CMD1 It seems that the sdhost interface returns CRC7 errors for CMD1, which is the MMC-specific SEND_OP_COND. Returning these errors to @@ -141500,10 +141500,10 @@ index 57a6ad3..84f645f 100644 if (host->cmd->flags & MMC_RSP_PRESENT) { -From a308ade267a5e55f928258def08529290cf3c66e Mon Sep 17 00:00:00 2001 +From ee0ecbdb990546c53e8d20de1215c649a925879d Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 20 Jul 2015 14:48:21 +0100 -Subject: [PATCH 131/192] BCM270X_DT: Add unit address to gpio node name +Subject: [PATCH 131/194] BCM270X_DT: Add unit address to gpio node name --- arch/arm/boot/dts/bcm2708_common.dtsi | 2 +- @@ -141523,10 +141523,10 @@ index 728e14a..cb608df 100644 reg = <0x7e200000 0xb4>; interrupts = <2 17>, <2 18>; -From 2e0f8d9d1cb87fea0a6e0cb3c8736d067d594e15 Mon Sep 17 00:00:00 2001 +From 134dd470533b0304634917c810af737596f55b3a Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 24 Jul 2015 10:36:32 +0100 -Subject: [PATCH 132/192] BCM270X_DT: Use i2c_arm for rtc and bmp085 overlays +Subject: [PATCH 132/194] BCM270X_DT: Use i2c_arm for rtc and bmp085 overlays --- arch/arm/boot/dts/overlays/bmp085_i2c-sensor-overlay.dts | 2 +- @@ -141560,10 +141560,10 @@ index 7052c71..fed4bd8 100644 #address-cells = <1>; #size-cells = <0>; -From db8ee9703f6dcf58156f1154468f761d4a2aaf27 Mon Sep 17 00:00:00 2001 +From 0322e2739a646f00cd41938f3d763e4126397e11 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 24 Jul 2015 12:11:31 +0100 -Subject: [PATCH 133/192] BCM2708_DT: CM dtparams for audio, watchdog and RNG +Subject: [PATCH 133/194] BCM2708_DT: CM dtparams for audio, watchdog and RNG --- arch/arm/boot/dts/bcm2708-rpi-cm.dtsi | 8 ++++---- @@ -141593,10 +141593,10 @@ index 34d4bc6..713e5a2 100644 }; }; -From 5ee323dd815f9a10b56ccb79f9db3b03cb10a957 Mon Sep 17 00:00:00 2001 +From df40be6f5b7bb5ec4242345a73056d71a3c196d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Mon, 20 Jul 2015 12:13:18 +0200 -Subject: [PATCH 134/192] vchiq: Use firmware API +Subject: [PATCH 134/194] vchiq: Use firmware API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -141712,10 +141712,10 @@ index 31e2cba..e11c0e0 100644 err = vchiq_debugfs_init(); if (err != 0) -From c8494b6d8b9c4a09d5802c5bd214b81abb24076e Mon Sep 17 00:00:00 2001 +From 0953a5b5383f6aa7745bece0883a695ec1b96393 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Mon, 20 Jul 2015 12:17:10 +0200 -Subject: [PATCH 135/192] thermal: bcm2835: Use firmware API +Subject: [PATCH 135/194] thermal: bcm2835: Use firmware API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -141998,10 +141998,10 @@ index 3bc80f1..c1d8f1b 100644 -module_platform_driver(bcm2835_thermal_driver); +MODULE_LICENSE("GPL"); -From 80165470382ba4f58bb1c15abfae346681424e73 Mon Sep 17 00:00:00 2001 +From 5b489616c6e3191cd60eb2f866e32478d6cb78d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Mon, 20 Jul 2015 12:18:36 +0200 -Subject: [PATCH 136/192] cpufreq: bcm2835: Use firmware API +Subject: [PATCH 136/194] cpufreq: bcm2835: Use firmware API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -142185,10 +142185,10 @@ index 6735da9..3eb9e93 100644 } -From 0c0902575883dcd51e97c4aed67a9854688046d1 Mon Sep 17 00:00:00 2001 +From 3f72415c74de28fe33eede566540ec9cd6fa0b52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Mon, 20 Jul 2015 12:20:59 +0200 -Subject: [PATCH 137/192] fbdev: bcm2708: Use firmware API +Subject: [PATCH 137/194] fbdev: bcm2708: Use firmware API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -142604,10 +142604,10 @@ index f6ac7da..06a96d16 100644 free_irq(fb->dma_irq, fb); -From 1d8059b467a053294c0d09d77ed8b327bec980f8 Mon Sep 17 00:00:00 2001 +From a2dad85cdc74f121669eaddb8e576e5743c248d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Mon, 20 Jul 2015 12:27:17 +0200 -Subject: [PATCH 138/192] bcm2835: Add firmware property to affected devices +Subject: [PATCH 138/194] bcm2835: Add firmware property to affected devices MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -142688,10 +142688,10 @@ index 1135120..807264d 100644 clocks { -From 0b404a0bb7397a70fda6917887baf12d3d1738b8 Mon Sep 17 00:00:00 2001 +From 404e9a3e613083673abdb945c8d79e834c0a6b78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Tue, 21 Jul 2015 19:09:39 +0200 -Subject: [PATCH 139/192] rpi-ft5406: Use firmware API +Subject: [PATCH 139/194] rpi-ft5406: Use firmware API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -142831,10 +142831,10 @@ index d41851d..c08817e 100644 ts->regs = (struct ft5406_regs *) ts->ts_base; -From 84575dc4faf5752d6799114c23523d21f79185b8 Mon Sep 17 00:00:00 2001 +From 6ef97ddf4dde5d01d5c01ef848826c83e976228a 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 140/192] irqchip: bcm2835: Add FIQ support +Subject: [PATCH 140/194] irqchip: bcm2835: Add FIQ support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -142966,10 +142966,10 @@ index 5916d6c..db66246 100644 } -From 739f93ecccd3dab84ea01874f11c318342cabc6b Mon Sep 17 00:00:00 2001 +From 93d022bc449cbaf4bb24f404ebd1adf2bdb8447e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 24 Jul 2015 15:50:04 +0200 -Subject: [PATCH 141/192] dwc_otg: Add ARCH_BCM2835 support +Subject: [PATCH 141/194] dwc_otg: Add ARCH_BCM2835 support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -143022,10 +143022,10 @@ index 0f4ebcd..5c83309 100644 } -From 09a1b81021504e4ca5b46e5fdb93acd917c7f0b7 Mon Sep 17 00:00:00 2001 +From 96796c87f3d4ef8362a5bf657f881d3d237c8763 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 24 Jul 2015 15:50:24 +0200 -Subject: [PATCH 142/192] bcm2835: Use DWC_OTG +Subject: [PATCH 142/194] bcm2835: Use DWC_OTG MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -143068,10 +143068,10 @@ index c284414..14ef294 100644 CONFIG_USB_STORAGE=y CONFIG_USB_STORAGE_REALTEK=m -From 909ccc236c5073e67181862026b117415c5508ec Mon Sep 17 00:00:00 2001 +From b824f8f74d8ff163a6295d45e43a80453871e605 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 24 Jul 2015 19:33:16 +0200 -Subject: [PATCH 143/192] Fix RASPBERRYPI_FIRMWARE dependents +Subject: [PATCH 143/194] Fix RASPBERRYPI_FIRMWARE dependents MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -143152,10 +143152,10 @@ index 3444a4c..c073d55 100644 select FB_CFB_COPYAREA select FB_CFB_IMAGEBLIT -From a8a882bd995ade6396b700e9fa50d52e14c2d773 Mon Sep 17 00:00:00 2001 +From 980367c4780a8a2296abe7f0e76e196c07a3ba40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 24 Jul 2015 19:33:46 +0200 -Subject: [PATCH 144/192] vc_mem: Remove unnecessary include +Subject: [PATCH 144/194] vc_mem: Remove unnecessary include MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -143178,10 +143178,10 @@ index fcde6b1..be64f23 100644 #define DRIVER_NAME "vc-mem" -From 2915e91353123b4e57a9b7fea529e76733fa804d Mon Sep 17 00:00:00 2001 +From e2b13e12e8c557916da8b6c2aece43bd82f0a93d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 24 Jul 2015 19:34:06 +0200 -Subject: [PATCH 145/192] configs: Remove BCM2708_MBOX +Subject: [PATCH 145/194] configs: Remove BCM2708_MBOX MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -143230,10 +143230,10 @@ index 7b24274..0859113 100644 # CONFIG_IOMMU_SUPPORT is not set CONFIG_EXTCON=m -From edfc6b5684eb61ca1c7bb8d726a876b3510c7967 Mon Sep 17 00:00:00 2001 +From aa1bf770f553d34bab0b7fa7db0bbfddf34ba5be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 24 Jul 2015 19:34:31 +0200 -Subject: [PATCH 146/192] bcm2708-vcio: Remove module +Subject: [PATCH 146/194] bcm2708-vcio: Remove module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -143507,10 +143507,10 @@ index d3ea839..0000000 - -#endif -From b50a77017186456a6eac9f5879527011ad639735 Mon Sep 17 00:00:00 2001 +From 7de83afcd8a39c2f790db3f3f989ca48ff318ea9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Fri, 24 Jul 2015 19:34:55 +0200 -Subject: [PATCH 147/192] Revert "firmware: bcm2835: Support legacy mailbox +Subject: [PATCH 147/194] Revert "firmware: bcm2835: Support legacy mailbox API" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 @@ -143601,10 +143601,10 @@ index 9a08cf1..d3933af 100644 u32 tag, void *data, size_t len); int rpi_firmware_property_list(struct rpi_firmware *fw, -From 6a216d3e39f569440e30e699ce0c937d5bb18f8f Mon Sep 17 00:00:00 2001 +From 5d191ced68dbf7b2e60fc302855852b124fbd097 Mon Sep 17 00:00:00 2001 From: Jonathan Bell Date: Tue, 30 Jun 2015 12:35:39 +0100 -Subject: [PATCH 148/192] pinctrl: bcm2835: Clear the event latch register when +Subject: [PATCH 148/194] pinctrl: bcm2835: Clear the event latch register when disabling interrupts It's possible to hit a race condition if interrupts are generated on a GPIO @@ -143641,10 +143641,10 @@ index 986779a..61ef002 100644 spin_unlock_irqrestore(&pc->irq_lock[bank], flags); } -From c3ad1ccc7ba3cef5f36c1919b05c9cb1b43c7d41 Mon Sep 17 00:00:00 2001 +From 72f64c3b9f0e8a60737e69d259f1564eb5115717 Mon Sep 17 00:00:00 2001 From: P33M Date: Tue, 4 Aug 2015 01:15:20 +0100 -Subject: [PATCH 149/192] dwc_otg: fiq_fsm: Make high-speed isochronous strided +Subject: [PATCH 149/194] dwc_otg: fiq_fsm: Make high-speed isochronous strided transfers work properly Certain low-bandwidth high-speed USB devices (specialist audio devices, @@ -143784,10 +143784,10 @@ index 3f71f29..8db3dfc 100644 case FIQ_PER_SPLIT_LS_ABORTED: -From d713fd8a8c98886c4965393cb35351eec484ecb6 Mon Sep 17 00:00:00 2001 +From 6e59584bbf12062b6ffd778af12fe8146d340f6f Mon Sep 17 00:00:00 2001 From: Uli Middelberg Date: Wed, 17 Jun 2015 10:36:56 +0200 -Subject: [PATCH 150/192] added basic docker support +Subject: [PATCH 150/194] added basic docker support --- arch/arm/configs/bcm2709_defconfig | 3 +++ @@ -143851,10 +143851,10 @@ index 0859113..06e7529 100644 CONFIG_FSCACHE_STATS=y CONFIG_FSCACHE_HISTOGRAM=y -From d0f6349262824e0c97c3348203fe38c98acb559b Mon Sep 17 00:00:00 2001 +From f3ace91a8cacdb53cac9cc8b4f927ad0ae43a33a Mon Sep 17 00:00:00 2001 From: Garrett Date: Thu, 2 Jul 2015 19:32:04 -0500 -Subject: [PATCH 151/192] bcm2835 camera planar/packed stride length +Subject: [PATCH 151/194] bcm2835 camera planar/packed stride length Added a field to the mmal_fmt struct used to compute the bytes per line when using a particular format. This results in the correct stride being @@ -144026,10 +144026,10 @@ index 35698c8..15788a1 100644 /* buffer for one video frame */ -From c6586122744f32872b423f29cd60f80bc9ec817c Mon Sep 17 00:00:00 2001 +From 5e105b5e431139026cbe7835b761fff2b29aee4f Mon Sep 17 00:00:00 2001 From: popcornmix Date: Tue, 28 Jul 2015 13:55:04 +0100 -Subject: [PATCH 153/192] config: Add Mediatek mt7601u wifi driver +Subject: [PATCH 153/194] config: Add Mediatek mt7601u wifi driver --- arch/arm/configs/bcm2709_defconfig | 2 ++ @@ -144063,10 +144063,10 @@ index 06e7529..a377222 100644 CONFIG_ZD1211RW=m CONFIG_MWIFIEX=m -From 9ade15dfc93bc7c34e6e48a4dc061eaa70f54b41 Mon Sep 17 00:00:00 2001 +From 6a5e6cda778f96483adee945041ea0b3a6e2a0cb Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 17 Aug 2015 10:49:44 +0100 -Subject: [PATCH 154/192] BCM270X_DT: Add pwm and pwm-2chan overlays +Subject: [PATCH 154/194] BCM270X_DT: Add pwm and pwm-2chan overlays From the README entries: Legal pin,function combinations for each channel: @@ -144332,10 +144332,10 @@ index b1541f4..90591a9 100644 PWM framework driver for BCM2835 controller (Raspberry Pi) -From c2159b8e35da50b260b86b2752c369262f03e5aa Mon Sep 17 00:00:00 2001 +From eb76a4418bd958fb754608bc7852037955e52004 Mon Sep 17 00:00:00 2001 From: Martin Sperl Date: Wed, 22 Apr 2015 07:33:03 +0000 -Subject: [PATCH 155/192] spi: bcm2835: fallback to interrupt for polling +Subject: [PATCH 155/194] spi: bcm2835: fallback to interrupt for polling timeouts exceeding 2 jiffies The polling mode of the driver is designed for transfers that run @@ -144471,10 +144471,10 @@ index cf3190f..505a993 100644 struct spi_device *spi, struct spi_transfer *tfr) -From ca6851997c29f85cb1965470c3c649cb04c83e04 Mon Sep 17 00:00:00 2001 +From 84a8c093f3479a5d6e4d9fceb6aeb5963aa07a9d Mon Sep 17 00:00:00 2001 From: Martin Sperl Date: Sun, 10 May 2015 20:47:28 +0000 -Subject: [PATCH 156/192] spi: bcm2835: enable dma modes for transfers meeting +Subject: [PATCH 156/194] spi: bcm2835: enable dma modes for transfers meeting certain conditions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 @@ -144897,10 +144897,10 @@ index 505a993..27fb5b0 100644 } -From 37c41ffd1ccf9a9051b461f2786a988a1d4f9f5f Mon Sep 17 00:00:00 2001 +From d3937547b145fb1ef5e8883a00a68269a7b1dc0a Mon Sep 17 00:00:00 2001 From: Martin Sperl Date: Tue, 12 May 2015 10:32:08 +0000 -Subject: [PATCH 157/192] spi: bcm2835: fix kbuild compile warnings/errors and +Subject: [PATCH 157/194] spi: bcm2835: fix kbuild compile warnings/errors and a typo fixes several warnings/error emmitted by the kbuild system: @@ -144956,10 +144956,10 @@ index 27fb5b0..52aaf2d 100644 "Unaligned spi tx-transfer bridging page\n"); return false; -From 4fa31f69b2b08f8b6b57ac80664efd3bfb510532 Mon Sep 17 00:00:00 2001 +From ad924a632bd4f7a15387fb4fc7ce9c055fd0be0e Mon Sep 17 00:00:00 2001 From: kbuild test robot Date: Tue, 12 May 2015 19:43:59 +0800 -Subject: [PATCH 158/192] spi: bcm2835: bcm2835_dma_release() can be static +Subject: [PATCH 158/194] spi: bcm2835: bcm2835_dma_release() can be static Signed-off-by: Fengguang Wu Signed-off-by: Mark Brown @@ -144991,10 +144991,10 @@ index 52aaf2d..bad36c5 100644 struct dma_slave_config slave_config; const __be32 *addr; -From 0281d714a74623919046ec0a7871cbfffaa129fa Mon Sep 17 00:00:00 2001 +From 4cfec4d6b6889bf80a0a4b78f278eb071d670173 Mon Sep 17 00:00:00 2001 From: Martin Sperl Date: Wed, 22 Jul 2015 08:34:41 +0000 -Subject: [PATCH 159/192] dt-overlay to enable dma for spi driver +Subject: [PATCH 159/194] dt-overlay to enable dma for spi driver Signed-off-by: Martin Sperl --- @@ -145042,10 +145042,10 @@ index 0000000..266cf9d + }; + }; -From 5601dff1bc5af8007e0cd741e6314777dcc26950 Mon Sep 17 00:00:00 2001 +From c4c4a9243b463177ecf35babdeed7a46c5db77a0 Mon Sep 17 00:00:00 2001 From: Martin Sperl Date: Wed, 22 Jul 2015 12:41:54 +0000 -Subject: [PATCH 160/192] dt: overlay: added documentation of spi-dma overlay +Subject: [PATCH 160/194] dt: overlay: added documentation of spi-dma overlay Signed-off-by: Martin Sperl --- @@ -145070,10 +145070,10 @@ index 1cd2140..bda8c14 100644 Info: 3.5" Color TFT Display by www.tinylcd.com Options: Touch, RTC, keypad -From a0f798dc95f6e80210560c2f539531ac8cd727ba Mon Sep 17 00:00:00 2001 +From 663e4788b5c220726356fc77be5fee0d23d42e69 Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Mon, 17 Aug 2015 18:06:16 +0100 -Subject: [PATCH 161/192] rpisense-fb: add low-light mode and gamma control +Subject: [PATCH 161/194] rpisense-fb: add low-light mode and gamma control --- drivers/video/fbdev/rpisense-fb.c | 68 +++++++++++++++++++++++++++++--- @@ -145216,10 +145216,10 @@ index c4c1118..2ba95d7 100644 struct rpisense; -From ae6f1c2b07d663f56d74520dd112e70fb0a345da Mon Sep 17 00:00:00 2001 +From 39bd59c69c467b6801e1955e2b1d9b8f4b38da71 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 19 Aug 2015 11:38:10 +0100 -Subject: [PATCH 162/192] BCM270X_DT: README - add note on indentation +Subject: [PATCH 162/194] BCM270X_DT: README - add note on indentation --- arch/arm/boot/dts/overlays/README | 4 ++++ @@ -145241,10 +145241,10 @@ index bda8c14..ac9c427 100644 Info: Configures the base Raspberry Pi hardware Load: -From 533a2295a023e63baa2da24f7ceb464f50481e86 Mon Sep 17 00:00:00 2001 +From 91f627205613e4f3c0c0190eaf7612aa6d0bb6f1 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Thu, 20 Aug 2015 13:50:18 +0100 -Subject: [PATCH 163/192] bcm2708-dmaengine: Use more DMA channels (but not 12) +Subject: [PATCH 163/194] bcm2708-dmaengine: Use more DMA channels (but not 12) 1) Only the bcm2708_fb drivers uses the legacy DMA API, and it requires a BULK-capable channel, so all other types @@ -145418,10 +145418,10 @@ index 73c6c00..85ce18b 100644 rc = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); if (rc) -From 2565daf4ff590ea8bfff9242920b7046855f8c14 Mon Sep 17 00:00:00 2001 +From 049f81e60b931b8492c1ad9ed2f6422ce71bafb4 Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Mon, 24 Aug 2015 16:03:47 +0100 -Subject: [PATCH 164/192] RaspiDAC3 support +Subject: [PATCH 164/194] RaspiDAC3 support Signed-off-by: Jan Grulich --- @@ -145772,10 +145772,10 @@ index 0000000..fddaeec +MODULE_DESCRIPTION("ASoC Driver for RaspiDAC Rev.3x"); +MODULE_LICENSE("GPL v2"); -From e07994e21afdb0689e92735f5251fb32c781dead Mon Sep 17 00:00:00 2001 +From 8230a1d029de0a92704b59e4d14ff19cfdaf1e05 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Tue, 14 Jul 2015 16:55:02 +0100 -Subject: [PATCH 165/192] config: Add SND_SOC_ADAU1701 module +Subject: [PATCH 165/194] config: Add SND_SOC_ADAU1701 module --- arch/arm/configs/bcm2709_defconfig | 1 + @@ -145807,10 +145807,10 @@ index 8979f23..7dd4fd4 100644 CONFIG_SND_SIMPLE_CARD=m CONFIG_SOUND_PRIME=m -From 8673fd1c1cdf2581b8e55049850feb454641c833 Mon Sep 17 00:00:00 2001 +From 21b558621652d5f40365de2049d2906499c12f75 Mon Sep 17 00:00:00 2001 From: Martin Sperl Date: Wed, 29 Jul 2015 07:34:10 +0000 -Subject: [PATCH 166/192] spi: bcm2835: fix overflow in calculation of transfer +Subject: [PATCH 166/194] spi: bcm2835: fix overflow in calculation of transfer time This resulted in the use of polling mode when other approaches @@ -145863,10 +145863,10 @@ index bad36c5..b68991c 100644 /* for short requests run polling*/ if (xfer_time_us <= BCM2835_SPI_POLLING_LIMIT_US) -From 0cbc260f0615a727118bf81a0a96f1a943ea1496 Mon Sep 17 00:00:00 2001 +From bd3acf9398a07807eb1c604234dc14a81fac13a4 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Tue, 8 Sep 2015 15:14:50 +0100 -Subject: [PATCH 167/192] BCM270X_DT: Add SDIO overlay +Subject: [PATCH 167/194] BCM270X_DT: Add SDIO overlay Enable SDIO from MMC interface via GPIOs 22-27. Includes the sdhost overlay to free up the MMC interface. @@ -145951,10 +145951,10 @@ index 0000000..164f269 + }; +}; -From 744173c6e20ce4939cb0df99b5a413badcc9b0be Mon Sep 17 00:00:00 2001 +From e2221d87449f7c8995e90703e4d74b438ca34b6e Mon Sep 17 00:00:00 2001 From: Luke Wren Date: Fri, 21 Aug 2015 23:14:48 +0100 -Subject: [PATCH 168/192] Add /dev/gpiomem device for rootless user GPIO access +Subject: [PATCH 168/194] Add /dev/gpiomem device for rootless user GPIO access Signed-off-by: Luke Wren --- @@ -146299,10 +146299,10 @@ index 0000000..0085e13 +MODULE_DESCRIPTION("gpiomem driver for accessing GPIO from userspace"); +MODULE_AUTHOR("Luke Wren "); -From b716c7690be5dca3f1329bd3bcb6468033bb1696 Mon Sep 17 00:00:00 2001 +From 8adbbbadf6a3bcd19905e9ab8a38f208af1107fd Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Mon, 24 Aug 2015 16:02:34 +0100 -Subject: [PATCH 169/192] tpa6130a2: Add headphone switch control +Subject: [PATCH 169/194] tpa6130a2: Add headphone switch control Signed-off-by: Jan Grulich --- @@ -146393,10 +146393,10 @@ index 6fac9e0..f60ebe1c 100644 /* -From dec2eb1d6594733d66a5f2da0e2e59f21e8cad90 Mon Sep 17 00:00:00 2001 +From 085ec663985ce405fb1e54124368a27e4d8dd9e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Sat, 11 Jul 2015 18:48:10 +0200 -Subject: [PATCH 170/192] staging: fbtft: Add reset to fbtft_init_display_dt() +Subject: [PATCH 170/194] staging: fbtft: Add reset to fbtft_init_display_dt() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -146428,10 +146428,10 @@ index 53b748b..4f165d3 100644 if (val & FBTFT_OF_INIT_CMD) { val &= 0xFFFF; -From 0f1a50554d440626c49ba73113efbad679ca1fa1 Mon Sep 17 00:00:00 2001 +From 6cc40be074b969a4b41ea3fcd2e8766c665515e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Sun, 19 Jul 2015 18:57:06 +0200 -Subject: [PATCH 171/192] BCM270X_DT: mz61581: Revert to spi-bcm2708 +Subject: [PATCH 171/194] BCM270X_DT: mz61581: Revert to spi-bcm2708 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -146462,10 +146462,10 @@ index c06fe12..f674a66 100644 spidev@0{ -From 7dabf2942aac0a52a59e429e992b58d1213c7024 Mon Sep 17 00:00:00 2001 +From 2d3ec5ab0191289c1f060eaa51c5b85c4c51eed6 Mon Sep 17 00:00:00 2001 From: Colin Ian King Date: Tue, 1 Sep 2015 16:52:34 +0000 -Subject: [PATCH 172/192] vchiq: fix NULL pointer dereference when closing +Subject: [PATCH 172/194] vchiq: fix NULL pointer dereference when closing driver The following code run as root will cause a null pointer dereference oops: @@ -146565,10 +146565,10 @@ index f4d0b66..4055d4b 100644 struct semaphore pop; struct semaphore push; -From b6bed67a8b4fc7ac46554940153aa550f889f08c Mon Sep 17 00:00:00 2001 +From be71354c73cc689307b9518e8393a1186080c5f4 Mon Sep 17 00:00:00 2001 From: Colin Ian King Date: Wed, 2 Sep 2015 07:13:17 -0400 -Subject: [PATCH 173/192] bcm2708_fb: remove redundant code as detected by +Subject: [PATCH 173/194] bcm2708_fb: remove redundant code as detected by static analysis static analysis with cppcheck detected some redundant code which @@ -146600,10 +146600,10 @@ index 06a96d16..fed0672 100644 } -From 3277fb201dd353df15a0181afefbc966d1700b93 Mon Sep 17 00:00:00 2001 +From a79b4171d2f06440c6aa9de4b858dca1fc32293a Mon Sep 17 00:00:00 2001 From: Colin Ian King Date: Wed, 2 Sep 2015 07:15:38 -0400 -Subject: [PATCH 174/192] bcm2708_fb: remove unnecessary initialization of +Subject: [PATCH 174/194] bcm2708_fb: remove unnecessary initialization of result static analysis by cppcheck detected an unnecessary initialization @@ -146632,10 +146632,10 @@ index fed0672..0f62d76 100644 info->var.yoffset = var->yoffset; result = bcm2708_fb_set_par(info); -From 3a8c5b7cd8499af8718d1628646c1704a38b6cec Mon Sep 17 00:00:00 2001 +From 2295e77f5b4bc01a115af6a4e2d0f0b37a572a57 Mon Sep 17 00:00:00 2001 From: Colin Ian King Date: Wed, 2 Sep 2015 07:27:36 -0400 -Subject: [PATCH 175/192] vcsm: increment res_stats MAP_FAIL stats before we +Subject: [PATCH 175/194] vcsm: increment res_stats MAP_FAIL stats before we potentially release the resource resource can be kfree'd when the reference count is zero, so we should @@ -146669,10 +146669,10 @@ index 0bfb42e..b62a3b2 100644 } -From f4b1401d6a2bd32b7bdc1ea5bba49ba45923f34e Mon Sep 17 00:00:00 2001 +From 0045e9ee695e6a7e4da62df7c481e99a13188c18 Mon Sep 17 00:00:00 2001 From: Colin Ian King Date: Wed, 2 Sep 2015 07:33:39 -0400 -Subject: [PATCH 176/192] bcm2835: camera: check for scene not being found +Subject: [PATCH 176/194] bcm2835: camera: check for scene not being found static analysis by cppcheck detected some potential NULL pointer dereference issues: @@ -146703,10 +146703,10 @@ index 3017b94..f9f903f 100644 return -EINVAL; -From e9bce32c5fdf1d19f499fd4a3acb518df5eddda8 Mon Sep 17 00:00:00 2001 +From e05f8eb12b6f1146b400435f852ca501026a9aca Mon Sep 17 00:00:00 2001 From: Colin Ian King Date: Wed, 2 Sep 2015 07:47:51 -0400 -Subject: [PATCH 177/192] bcm2835: memcpy port data to m rather than rmsg +Subject: [PATCH 177/194] bcm2835: memcpy port data to m rather than rmsg static analysis by cppcheck detected a memcpy to rmsg which is not actually initialized at that point. The memcpy should be copying @@ -146731,10 +146731,10 @@ index 76f249e..7813225 100644 ret = send_synchronous_mmal_msg(instance, &m, -From f37b5b98c6a1dd867fe57768347d4099c8c350a5 Mon Sep 17 00:00:00 2001 +From 3f09ec1c4223de056fefc041185ed4276f52a65c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Sun, 13 Sep 2015 15:54:28 +0200 -Subject: [PATCH 178/192] Revert "BCM270X_DT: mz61581: Revert to spi-bcm2708" +Subject: [PATCH 178/194] Revert "BCM270X_DT: mz61581: Revert to spi-bcm2708" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -146762,10 +146762,10 @@ index f674a66..c06fe12 100644 spidev@0{ -From 6d02ee2eb00466bcf8485620de01dc4f0354a901 Mon Sep 17 00:00:00 2001 +From d9fab4e890cacf1b1adb59f64aadc043a1c70228 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Sun, 13 Sep 2015 17:17:14 +0200 -Subject: [PATCH 179/192] BCM270X_DT: mz61581: Set txbuflen to 32k +Subject: [PATCH 179/194] BCM270X_DT: mz61581: Set txbuflen to 32k MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -146814,10 +146814,10 @@ index c06fe12..9242a6e 100644 xohms = <&mz61581_ts>,"ti,x-plate-ohms;0"; }; -From 3e8afc7044965075d11b52c83ad0bd0584bbd15d Mon Sep 17 00:00:00 2001 +From bf973dffb8d6e2622d7fba8a7438e1ecd792cc0e Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 11 Sep 2015 12:10:15 +0100 -Subject: [PATCH 180/192] bcm2835-mmc: Don't overwrite MMC capabilities from DT +Subject: [PATCH 180/194] bcm2835-mmc: Don't overwrite MMC capabilities from DT --- drivers/mmc/host/bcm2835-mmc.c | 5 +++-- @@ -146840,10 +146840,10 @@ index b7c4883..164bfad 100644 host->flags = SDHCI_AUTO_CMD23; -From fbe9273f1ed02f6d6e0c01add59bc9d85a2748a8 Mon Sep 17 00:00:00 2001 +From 48c1b7e91bcd5b92b02de3b3d6bdbc5eb34e5eb8 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 11 Sep 2015 09:14:01 +0100 -Subject: [PATCH 181/192] BCM270X_DT: Use fixed-factor-clock for uart1 +Subject: [PATCH 181/194] BCM270X_DT: Use fixed-factor-clock for uart1 The BCM2835 mini-UART is almost 8250-compatible, but there is a factor-of-two difference in the clock divider for the baud rate. @@ -146943,10 +146943,10 @@ index f25f0a2..76d44a2 100644 spi = <&spi0>,"status"; i2c0 = <&i2c0>,"status"; -From 08152264f7564a5bd77ae9a58a34309f6ab9a5fc Mon Sep 17 00:00:00 2001 +From af29aa1dd79e6f76be281d8fbba46f671b9dc9b1 Mon Sep 17 00:00:00 2001 From: Luke Wren Date: Sat, 5 Sep 2015 01:14:45 +0100 -Subject: [PATCH 182/192] Add SMI driver +Subject: [PATCH 182/194] Add SMI driver Signed-off-by: Luke Wren --- @@ -149005,10 +149005,10 @@ index 0000000..ee3a75e + +#endif /* BCM2835_SMI_H */ -From fda45e53b21c5f65e9e161b244b83026cb0fd6f6 Mon Sep 17 00:00:00 2001 +From 4a837e11c809cd42c793e61bba9e7cb784395f89 Mon Sep 17 00:00:00 2001 From: Luke Wren Date: Sat, 5 Sep 2015 01:16:10 +0100 -Subject: [PATCH 183/192] Add SMI NAND driver +Subject: [PATCH 183/194] Add SMI NAND driver Signed-off-by: Luke Wren --- @@ -149516,10 +149516,10 @@ index 0000000..b747326 + ("Driver for NAND chips using Broadcom Secondary Memory Interface"); +MODULE_AUTHOR("Luke Wren "); -From 491ad52f804ba93327361dc6803d9599c78dee93 Mon Sep 17 00:00:00 2001 +From 12bb5737302a9adc5e738b00845f6275d2b3dce4 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 16 Sep 2015 17:28:41 +0100 -Subject: [PATCH 184/192] BCM270X_DT: Document SMI overlay +Subject: [PATCH 184/194] BCM270X_DT: Document SMI overlay --- arch/arm/boot/dts/overlays/Makefile | 6 +++--- @@ -149580,10 +149580,10 @@ index 0aa5aa1..4ab4c695 100644 Info: Selects the bcm2708-spi SPI driver Load: dtoverlay=spi-bcm2708 -From e18520ad8e421cf2592b9bf4e97e98ab3269884d Mon Sep 17 00:00:00 2001 +From 3f4dc9b708b4e3cb365b0066242556633b83ed5d Mon Sep 17 00:00:00 2001 From: popcornmix Date: Thu, 17 Sep 2015 17:13:42 +0100 -Subject: [PATCH 185/192] dwc_otg: Force host mode to fix incorrect compute +Subject: [PATCH 185/194] dwc_otg: Force host mode to fix incorrect compute module boards --- @@ -149604,10 +149604,10 @@ index e40060f..beaa8b3 100644 dwc_mdelay(100); } -From 06fa410863c6bd9771bce0b2991f4faa17e0f223 Mon Sep 17 00:00:00 2001 +From 28fc2ac47fd4f3d300fd3badeeb2db8a2ec65e40 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Tue, 15 Sep 2015 15:16:24 +0100 -Subject: [PATCH 186/192] config: Add CIFS_DFS_UPCALL, CIFS_ACL, CIFS_SMB2, +Subject: [PATCH 186/194] config: Add CIFS_DFS_UPCALL, CIFS_ACL, CIFS_SMB2, CIFS_FSCACHE --- @@ -149646,10 +149646,10 @@ index 75fa1d0..8ebc8d5 100644 CONFIG_9P_FS_POSIX_ACL=y CONFIG_NLS_DEFAULT="utf8" -From 1ce910a90e75d8315b40ee57f2ab168822fc4e79 Mon Sep 17 00:00:00 2001 +From 05f629b727b81ba22662e2f25bffec8215bfbb4e Mon Sep 17 00:00:00 2001 From: David Lechner Date: Mon, 14 Sep 2015 19:08:36 -0500 -Subject: [PATCH 187/192] Use dts-dirs feature for overlays. +Subject: [PATCH 187/194] Use dts-dirs feature for overlays. The kernel makefiles have a dts-dirs target that is for vendor subdirectories. @@ -149686,10 +149686,10 @@ index 12de305..faf293f 100644 - -subdir-y += overlays -From 44533175243d215fa6104520e1ab3df56e11ca2a Mon Sep 17 00:00:00 2001 +From e8e928f19481eebeaaf269e21a044f5b78418e1b Mon Sep 17 00:00:00 2001 From: Martin Sperl Date: Thu, 10 Sep 2015 09:32:14 +0000 -Subject: [PATCH 192/192] backport: spi: bcm2835: BUG: fix wrong use of +Subject: [PATCH 192/194] backport: spi: bcm2835: BUG: fix wrong use of PAGE_MASK There is a bug in the alignment checking of transfers, @@ -149732,3 +149732,555 @@ index b68991c..3835332 100644 return false; } + +From 93260741a0c8b8ee5d9a3c268db9f63472f1c36d Mon Sep 17 00:00:00 2001 +From: Stuart MacLean +Date: Fri, 2 Oct 2015 15:12:59 +0100 +Subject: [PATCH 193/194] Add support for the HiFiBerry DAC+ Pro. + +The HiFiBerry DAC+ and DAC+ Pro products both use the existing bcm sound driver with the DAC+ Pro having a special clock device driver representing the two high precision oscillators. + +An addition bug fix is included for the PCM512x codec where by the physical size of the sample frame is used in the calculation of the LRCK divisor as it was found to be wrong when using 24-bit depth sample contained in a little endian 4-byte sample frame. +--- + .../dts/overlays/hifiberry-dacplus-overlay.dts | 15 +- + drivers/clk/Makefile | 1 + + drivers/clk/clk-hifiberry-dacpro.c | 160 ++++++++++++++ + sound/soc/bcm/hifiberry_dacplus.c | 244 +++++++++++++++++++-- + sound/soc/codecs/pcm512x.c | 3 +- + 5 files changed, 396 insertions(+), 27 deletions(-) + create mode 100644 drivers/clk/clk-hifiberry-dacpro.c + +diff --git a/arch/arm/boot/dts/overlays/hifiberry-dacplus-overlay.dts b/arch/arm/boot/dts/overlays/hifiberry-dacplus-overlay.dts +index deb9c625..f923a48 100644 +--- a/arch/arm/boot/dts/overlays/hifiberry-dacplus-overlay.dts ++++ b/arch/arm/boot/dts/overlays/hifiberry-dacplus-overlay.dts +@@ -6,6 +6,16 @@ + compatible = "brcm,bcm2708"; + + fragment@0 { ++ target-path = "/clocks"; ++ __overlay__ { ++ dacpro_osc: dacpro_osc { ++ compatible = "hifiberry,dacpro-clk"; ++ #clock-cells = <0>; ++ }; ++ }; ++ }; ++ ++ fragment@1 { + target = <&sound>; + __overlay__ { + compatible = "hifiberry,hifiberry-dacplus"; +@@ -14,14 +24,14 @@ + }; + }; + +- fragment@1 { ++ fragment@2 { + target = <&i2s>; + __overlay__ { + status = "okay"; + }; + }; + +- fragment@2 { ++ fragment@3 { + target = <&i2c1>; + __overlay__ { + #address-cells = <1>; +@@ -32,6 +42,7 @@ + #sound-dai-cells = <0>; + compatible = "ti,pcm5122"; + reg = <0x4d>; ++ clocks = <&dacpro_osc>; + status = "okay"; + }; + }; +diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile +index 3d00c25..f949266 100644 +--- a/drivers/clk/Makefile ++++ b/drivers/clk/Makefile +@@ -24,6 +24,7 @@ obj-$(CONFIG_COMMON_CLK_CDCE706) += clk-cdce706.o + obj-$(CONFIG_ARCH_CLPS711X) += clk-clps711x.o + obj-$(CONFIG_ARCH_EFM32) += clk-efm32gg.o + obj-$(CONFIG_ARCH_HIGHBANK) += clk-highbank.o ++obj-$(CONFIG_SND_BCM2708_SOC_HIFIBERRY_DACPLUS) += clk-hifiberry-dacpro.o + obj-$(CONFIG_MACH_LOONGSON1) += clk-ls1x.o + obj-$(CONFIG_COMMON_CLK_MAX_GEN) += clk-max-gen.o + obj-$(CONFIG_COMMON_CLK_MAX77686) += clk-max77686.o +diff --git a/drivers/clk/clk-hifiberry-dacpro.c b/drivers/clk/clk-hifiberry-dacpro.c +new file mode 100644 +index 0000000..3e35d45 +--- /dev/null ++++ b/drivers/clk/clk-hifiberry-dacpro.c +@@ -0,0 +1,160 @@ ++/* ++ * Clock Driver for HiFiBerry DAC Pro ++ * ++ * Author: Stuart MacLean ++ * Copyright 2015 ++ * ++ * This program is free software; you can redistribute it and/or ++ * modify it under the terms of the GNU General Public License ++ * version 2 as published by the Free Software Foundation. ++ * ++ * This program is distributed in the hope that it will be useful, but ++ * WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ * General Public License for more details. ++ */ ++ ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++ ++/* Clock rate of CLK44EN attached to GPIO6 pin */ ++#define CLK_44EN_RATE 22579200UL ++/* Clock rate of CLK48EN attached to GPIO3 pin */ ++#define CLK_48EN_RATE 24576000UL ++ ++/** ++ * struct hifiberry_dacpro_clk - Common struct to the HiFiBerry DAC Pro ++ * @hw: clk_hw for the common clk framework ++ * @mode: 0 => CLK44EN, 1 => CLK48EN ++ */ ++struct clk_hifiberry_hw { ++ struct clk_hw hw; ++ uint8_t mode; ++}; ++ ++#define to_hifiberry_clk(_hw) container_of(_hw, struct clk_hifiberry_hw, hw) ++ ++static const struct of_device_id clk_hifiberry_dacpro_dt_ids[] = { ++ { .compatible = "hifiberry,dacpro-clk",}, ++ { } ++}; ++MODULE_DEVICE_TABLE(of, clk_hifiberry_dacpro_dt_ids); ++ ++static unsigned long clk_hifiberry_dacpro_recalc_rate(struct clk_hw *hw, ++ unsigned long parent_rate) ++{ ++ return (to_hifiberry_clk(hw)->mode == 0) ? CLK_44EN_RATE : ++ CLK_48EN_RATE; ++} ++ ++static long clk_hifiberry_dacpro_round_rate(struct clk_hw *hw, ++ unsigned long rate, unsigned long *parent_rate) ++{ ++ long actual_rate; ++ ++ if (rate <= CLK_44EN_RATE) { ++ actual_rate = (long)CLK_44EN_RATE; ++ } else if (rate >= CLK_48EN_RATE) { ++ actual_rate = (long)CLK_48EN_RATE; ++ } else { ++ long diff44Rate = (long)(rate - CLK_44EN_RATE); ++ long diff48Rate = (long)(CLK_48EN_RATE - rate); ++ ++ if (diff44Rate < diff48Rate) ++ actual_rate = (long)CLK_44EN_RATE; ++ else ++ actual_rate = (long)CLK_48EN_RATE; ++ } ++ return actual_rate; ++} ++ ++ ++static int clk_hifiberry_dacpro_set_rate(struct clk_hw *hw, ++ unsigned long rate, unsigned long parent_rate) ++{ ++ unsigned long actual_rate; ++ struct clk_hifiberry_hw *clk = to_hifiberry_clk(hw); ++ ++ actual_rate = (unsigned long)clk_hifiberry_dacpro_round_rate(hw, rate, ++ &parent_rate); ++ clk->mode = (actual_rate == CLK_44EN_RATE) ? 0 : 1; ++ return 0; ++} ++ ++ ++const struct clk_ops clk_hifiberry_dacpro_rate_ops = { ++ .recalc_rate = clk_hifiberry_dacpro_recalc_rate, ++ .round_rate = clk_hifiberry_dacpro_round_rate, ++ .set_rate = clk_hifiberry_dacpro_set_rate, ++}; ++ ++static int clk_hifiberry_dacpro_probe(struct platform_device *pdev) ++{ ++ int ret; ++ struct clk_hifiberry_hw *proclk; ++ struct clk *clk; ++ struct device *dev; ++ struct clk_init_data init; ++ ++ dev = &pdev->dev; ++ ++ proclk = kzalloc(sizeof(struct clk_hifiberry_hw), GFP_KERNEL); ++ if (!proclk) ++ return -ENOMEM; ++ ++ init.name = "clk-hifiberry-dacpro"; ++ init.ops = &clk_hifiberry_dacpro_rate_ops; ++ init.flags = CLK_IS_ROOT | CLK_IS_BASIC; ++ init.parent_names = NULL; ++ init.num_parents = 0; ++ ++ proclk->mode = 0; ++ proclk->hw.init = &init; ++ ++ clk = devm_clk_register(dev, &proclk->hw); ++ if (!IS_ERR(clk)) { ++ ret = of_clk_add_provider(dev->of_node, of_clk_src_simple_get, ++ clk); ++ } else { ++ dev_err(dev, "Fail to register clock driver\n"); ++ kfree(proclk); ++ ret = PTR_ERR(clk); ++ } ++ return ret; ++} ++ ++static int clk_hifiberry_dacpro_remove(struct platform_device *pdev) ++{ ++ of_clk_del_provider(pdev->dev.of_node); ++ return 0; ++} ++ ++static struct platform_driver clk_hifiberry_dacpro_driver = { ++ .probe = clk_hifiberry_dacpro_probe, ++ .remove = clk_hifiberry_dacpro_remove, ++ .driver = { ++ .name = "clk-hifiberry-dacpro", ++ .of_match_table = clk_hifiberry_dacpro_dt_ids, ++ }, ++}; ++ ++static int __init clk_hifiberry_dacpro_init(void) ++{ ++ return platform_driver_register(&clk_hifiberry_dacpro_driver); ++} ++core_initcall(clk_hifiberry_dacpro_init); ++ ++static void __exit clk_hifiberry_dacpro_exit(void) ++{ ++ platform_driver_unregister(&clk_hifiberry_dacpro_driver); ++} ++module_exit(clk_hifiberry_dacpro_exit); ++ ++MODULE_DESCRIPTION("HiFiBerry DAC Pro clock driver"); ++MODULE_LICENSE("GPL v2"); ++MODULE_ALIAS("platform:clk-hifiberry-dacpro"); +diff --git a/sound/soc/bcm/hifiberry_dacplus.c b/sound/soc/bcm/hifiberry_dacplus.c +index 11e4f39..a6b651c 100644 +--- a/sound/soc/bcm/hifiberry_dacplus.c ++++ b/sound/soc/bcm/hifiberry_dacplus.c +@@ -1,8 +1,8 @@ + /* +- * ASoC Driver for HiFiBerry DAC+ ++ * ASoC Driver for HiFiBerry DAC+ / DAC Pro + * +- * Author: Daniel Matuschek +- * Copyright 2014 ++ * Author: Daniel Matuschek, Stuart MacLean ++ * Copyright 2014-2015 + * based on code by Florian Meier + * + * This program is free software; you can redistribute it and/or +@@ -17,6 +17,13 @@ + + #include + #include ++#include ++#include ++#include ++#include ++#include ++#include ++#include + + #include + #include +@@ -26,34 +33,222 @@ + + #include "../codecs/pcm512x.h" + ++#define HIFIBERRY_DACPRO_NOCLOCK 0 ++#define HIFIBERRY_DACPRO_CLK44EN 1 ++#define HIFIBERRY_DACPRO_CLK48EN 2 ++ ++struct pcm512x_priv { ++ struct regmap *regmap; ++ struct clk *sclk; ++}; ++ ++/* Clock rate of CLK44EN attached to GPIO6 pin */ ++#define CLK_44EN_RATE 22579200UL ++/* Clock rate of CLK48EN attached to GPIO3 pin */ ++#define CLK_48EN_RATE 24576000UL ++ ++static bool snd_rpi_hifiberry_is_dacpro; ++ ++static void snd_rpi_hifiberry_dacplus_select_clk(struct snd_soc_codec *codec, ++ int clk_id) ++{ ++ switch (clk_id) { ++ case HIFIBERRY_DACPRO_NOCLOCK: ++ snd_soc_update_bits(codec, PCM512x_GPIO_CONTROL_1, 0x24, 0x00); ++ break; ++ case HIFIBERRY_DACPRO_CLK44EN: ++ snd_soc_update_bits(codec, PCM512x_GPIO_CONTROL_1, 0x24, 0x20); ++ break; ++ case HIFIBERRY_DACPRO_CLK48EN: ++ snd_soc_update_bits(codec, PCM512x_GPIO_CONTROL_1, 0x24, 0x04); ++ break; ++ } ++} ++ ++static void snd_rpi_hifiberry_dacplus_clk_gpio(struct snd_soc_codec *codec) ++{ ++ snd_soc_update_bits(codec, PCM512x_GPIO_EN, 0x24, 0x24); ++ snd_soc_update_bits(codec, PCM512x_GPIO_OUTPUT_3, 0x0f, 0x02); ++ snd_soc_update_bits(codec, PCM512x_GPIO_OUTPUT_6, 0x0f, 0x02); ++} ++ ++static bool snd_rpi_hifiberry_dacplus_is_sclk(struct snd_soc_codec *codec) ++{ ++ int sck; ++ ++ sck = snd_soc_read(codec, PCM512x_RATE_DET_4); ++ return (!(sck & 0x40)); ++} ++ ++static bool snd_rpi_hifiberry_dacplus_is_sclk_sleep( ++ struct snd_soc_codec *codec) ++{ ++ msleep(2); ++ return snd_rpi_hifiberry_dacplus_is_sclk(codec); ++} ++ ++static bool snd_rpi_hifiberry_dacplus_is_pro_card(struct snd_soc_codec *codec) ++{ ++ bool isClk44EN, isClk48En, isNoClk; ++ ++ snd_rpi_hifiberry_dacplus_clk_gpio(codec); ++ ++ snd_rpi_hifiberry_dacplus_select_clk(codec, HIFIBERRY_DACPRO_CLK44EN); ++ isClk44EN = snd_rpi_hifiberry_dacplus_is_sclk_sleep(codec); ++ ++ snd_rpi_hifiberry_dacplus_select_clk(codec, HIFIBERRY_DACPRO_NOCLOCK); ++ isNoClk = snd_rpi_hifiberry_dacplus_is_sclk_sleep(codec); ++ ++ snd_rpi_hifiberry_dacplus_select_clk(codec, HIFIBERRY_DACPRO_CLK48EN); ++ isClk48En = snd_rpi_hifiberry_dacplus_is_sclk_sleep(codec); ++ ++ return (isClk44EN && isClk48En && !isNoClk); ++} ++ ++static int snd_rpi_hifiberry_dacplus_clk_for_rate(int sample_rate) ++{ ++ int type; ++ ++ switch (sample_rate) { ++ case 11025: ++ case 22050: ++ case 44100: ++ case 88200: ++ case 176400: ++ type = HIFIBERRY_DACPRO_CLK44EN; ++ break; ++ default: ++ type = HIFIBERRY_DACPRO_CLK48EN; ++ break; ++ } ++ return type; ++} ++ ++static void snd_rpi_hifiberry_dacplus_set_sclk(struct snd_soc_codec *codec, ++ int sample_rate) ++{ ++ struct pcm512x_priv *pcm512x = snd_soc_codec_get_drvdata(codec); ++ ++ if (!IS_ERR(pcm512x->sclk)) { ++ int ctype; ++ ++ ctype = snd_rpi_hifiberry_dacplus_clk_for_rate(sample_rate); ++ clk_set_rate(pcm512x->sclk, (ctype == HIFIBERRY_DACPRO_CLK44EN) ++ ? CLK_44EN_RATE : CLK_48EN_RATE); ++ snd_rpi_hifiberry_dacplus_select_clk(codec, ctype); ++ } ++} ++ + static int snd_rpi_hifiberry_dacplus_init(struct snd_soc_pcm_runtime *rtd) + { + struct snd_soc_codec *codec = rtd->codec; ++ struct pcm512x_priv *priv; ++ ++ snd_rpi_hifiberry_is_dacpro ++ = snd_rpi_hifiberry_dacplus_is_pro_card(codec); ++ ++ if (snd_rpi_hifiberry_is_dacpro) { ++ struct snd_soc_dai_link *dai = rtd->dai_link; ++ ++ dai->name = "HiFiBerry DAC+ Pro"; ++ dai->stream_name = "HiFiBerry DAC+ Pro HiFi"; ++ dai->dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF ++ | SND_SOC_DAIFMT_CBM_CFM; ++ ++ snd_soc_update_bits(codec, PCM512x_BCLK_LRCLK_CFG, 0x31, 0x11); ++ snd_soc_update_bits(codec, PCM512x_MASTER_MODE, 0x03, 0x03); ++ snd_soc_update_bits(codec, PCM512x_MASTER_CLKDIV_2, 0x7f, 63); ++ } else { ++ priv = snd_soc_codec_get_drvdata(codec); ++ priv->sclk = ERR_PTR(-ENOENT); ++ } ++ + snd_soc_update_bits(codec, PCM512x_GPIO_EN, 0x08, 0x08); +- snd_soc_update_bits(codec, PCM512x_GPIO_OUTPUT_4, 0xf, 0x02); +- snd_soc_update_bits(codec, PCM512x_GPIO_CONTROL_1, 0x08,0x08); ++ snd_soc_update_bits(codec, PCM512x_GPIO_OUTPUT_4, 0x0f, 0x02); ++ snd_soc_update_bits(codec, PCM512x_GPIO_CONTROL_1, 0x08, 0x08); ++ ++ return 0; ++} ++ ++static int snd_rpi_hifiberry_dacplus_update_rate_den( ++ struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) ++{ ++ struct snd_soc_pcm_runtime *rtd = substream->private_data; ++ struct snd_soc_codec *codec = rtd->codec; ++ struct pcm512x_priv *pcm512x = snd_soc_codec_get_drvdata(codec); ++ struct snd_ratnum *rats_no_pll; ++ unsigned int num = 0, den = 0; ++ int err; ++ ++ rats_no_pll = devm_kzalloc(rtd->dev, sizeof(*rats_no_pll), GFP_KERNEL); ++ if (!rats_no_pll) ++ return -ENOMEM; ++ ++ rats_no_pll->num = clk_get_rate(pcm512x->sclk) / 64; ++ rats_no_pll->den_min = 1; ++ rats_no_pll->den_max = 128; ++ rats_no_pll->den_step = 1; ++ ++ err = snd_interval_ratnum(hw_param_interval(params, ++ SNDRV_PCM_HW_PARAM_RATE), 1, rats_no_pll, &num, &den); ++ if (err >= 0 && den) { ++ params->rate_num = num; ++ params->rate_den = den; ++ } ++ ++ devm_kfree(rtd->dev, rats_no_pll); + return 0; + } + +-static int snd_rpi_hifiberry_dacplus_hw_params(struct snd_pcm_substream *substream, +- struct snd_pcm_hw_params *params) ++static int snd_rpi_hifiberry_dacplus_set_bclk_ratio_pro( ++ struct snd_soc_dai *cpu_dai, struct snd_pcm_hw_params *params) + { ++ int bratio = snd_pcm_format_physical_width(params_format(params)) ++ * params_channels(params); ++ return snd_soc_dai_set_bclk_ratio(cpu_dai, bratio); ++} ++ ++static int snd_rpi_hifiberry_dacplus_hw_params( ++ struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) ++{ ++ int ret; + struct snd_soc_pcm_runtime *rtd = substream->private_data; + struct snd_soc_dai *cpu_dai = rtd->cpu_dai; +- return snd_soc_dai_set_bclk_ratio(cpu_dai, 64); ++ ++ if (snd_rpi_hifiberry_is_dacpro) { ++ struct snd_soc_codec *codec = rtd->codec; ++ ++ snd_rpi_hifiberry_dacplus_set_sclk(codec, ++ params_rate(params)); ++ ++ ret = snd_rpi_hifiberry_dacplus_set_bclk_ratio_pro(cpu_dai, ++ params); ++ if (!ret) ++ ret = snd_rpi_hifiberry_dacplus_update_rate_den( ++ substream, params); ++ } else { ++ ret = snd_soc_dai_set_bclk_ratio(cpu_dai, 64); ++ } ++ return ret; + } + +-static int snd_rpi_hifiberry_dacplus_startup(struct snd_pcm_substream *substream) { ++static int snd_rpi_hifiberry_dacplus_startup( ++ struct snd_pcm_substream *substream) ++{ + struct snd_soc_pcm_runtime *rtd = substream->private_data; + struct snd_soc_codec *codec = rtd->codec; +- snd_soc_update_bits(codec, PCM512x_GPIO_CONTROL_1, 0x08,0x08); ++ ++ snd_soc_update_bits(codec, PCM512x_GPIO_CONTROL_1, 0x08, 0x08); + return 0; + } + +-static void snd_rpi_hifiberry_dacplus_shutdown(struct snd_pcm_substream *substream) { ++static void snd_rpi_hifiberry_dacplus_shutdown( ++ struct snd_pcm_substream *substream) ++{ + struct snd_soc_pcm_runtime *rtd = substream->private_data; + struct snd_soc_codec *codec = rtd->codec; +- snd_soc_update_bits(codec, PCM512x_GPIO_CONTROL_1, 0x08,0x00); ++ ++ snd_soc_update_bits(codec, PCM512x_GPIO_CONTROL_1, 0x08, 0x00); + } + + /* machine stream operations */ +@@ -90,19 +285,20 @@ static int snd_rpi_hifiberry_dacplus_probe(struct platform_device *pdev) + int ret = 0; + + snd_rpi_hifiberry_dacplus.dev = &pdev->dev; +- + if (pdev->dev.of_node) { +- struct device_node *i2s_node; +- struct snd_soc_dai_link *dai = &snd_rpi_hifiberry_dacplus_dai[0]; +- i2s_node = of_parse_phandle(pdev->dev.of_node, +- "i2s-controller", 0); +- +- if (i2s_node) { +- dai->cpu_dai_name = NULL; +- dai->cpu_of_node = i2s_node; +- dai->platform_name = NULL; +- dai->platform_of_node = i2s_node; +- } ++ struct device_node *i2s_node; ++ struct snd_soc_dai_link *dai; ++ ++ dai = &snd_rpi_hifiberry_dacplus_dai[0]; ++ i2s_node = of_parse_phandle(pdev->dev.of_node, ++ "i2s-controller", 0); ++ ++ if (i2s_node) { ++ dai->cpu_dai_name = NULL; ++ dai->cpu_of_node = i2s_node; ++ dai->platform_name = NULL; ++ dai->platform_of_node = i2s_node; ++ } + } + + ret = snd_soc_register_card(&snd_rpi_hifiberry_dacplus); +diff --git a/sound/soc/codecs/pcm512x.c b/sound/soc/codecs/pcm512x.c +index e12764d..8d16b2f 100644 +--- a/sound/soc/codecs/pcm512x.c ++++ b/sound/soc/codecs/pcm512x.c +@@ -856,7 +856,8 @@ static int pcm512x_set_dividers(struct snd_soc_dai *dai, + int fssp; + int gpio; + +- lrclk_div = snd_soc_params_to_frame_size(params); ++ lrclk_div = snd_pcm_format_physical_width(params_format(params)) ++ * params_channels(params); + if (lrclk_div == 0) { + dev_err(dev, "No LRCLK?\n"); + return -EINVAL; +