aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/patches-4.9
Commit message (Collapse)AuthorAgeFilesLines
* linux-4.9: Fix building of DWC3 moduleAlexey Brodkin2017-05-021-0/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DWC3 driver uses of_usb_get_phy_mode() which is implemented in drivers/usb/phy/of.c and in bare minimal configuration it might not be pulled in kernel binary. In case of ARC or ARM this could be easily reproduced with "allnodefconfig" +CONFIG_USB=m +CONFIG_USB_DWC3=m. On building all ends-up with: ---------------------->8------------------ Kernel: arch/arm/boot/Image is ready Kernel: arch/arm/boot/zImage is ready Building modules, stage 2. MODPOST 5 modules ERROR: "of_usb_get_phy_mode" [drivers/usb/dwc3/dwc3.ko] undefined! make[1]: *** [__modpost] Error 1 make: *** [modules] Error 2 ---------------------->8------------------ This was affecting Lede in case of CONFIG_ALL_KMODS=y. The patch is already scheduled for v4.12 and once it is backported to 4.9.y it must be removed from here. Note this patch makes sense not only for ARC instead it fixes a generic issue which may affect more arches and platforms thus putting it in "generic/" folder. Signed-off-by: Alexey Brodkin <Alexey.Brodkin@synopsys.com> Signed-off-by: Felix Fietkau <nbd@nbd.name> [patch rename]
* kernel: remove out of tree direct-io disable hackFelix Fietkau2017-04-261-82/+0
| | | | | | | Direct-IO support has to be enabled for the release build anyway, so this hack is not worth keeping Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: use skb_cow_head() to deal with cloned skbsÁlvaro Fernández Rojas2017-04-237-0/+267
| | | | | | | | | | | We need to ensure there is enough headroom to push extra header, but we also need to check if we are allowed to change headers. skb_cow_head() is the proper helper to deal with this. Fixes Ethernet<->WiFi bridge for Raspberry Pi and probably other devices. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* generic: mtd: backport mx25u25635f stateless 4b supportMathias Kresin2017-04-191-0/+29
| | | | | | | | | Use the stateless 4-byte op codes for this flash chip to fix reboot hangs on SoCs expecting the flash chip in 3-byte mode. Fixes: FS#179 Signed-off-by: Mathias Kresin <dev@kresin.me>
* kernel: backport Broadcom thermal driversRafał Miłecki2017-04-142-0/+538
| | | | | | This includes driver for Northstar and for Raspberry Pi. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* kernel: update MIPS pci fix to the accepted versionMathias Kresin2017-04-082-31/+31
| | | | | | | Fix the list order instead of adjusting the controller scan order. Revert the former required changes to the lantiq PCIe driver. Signed-off-by: Mathias Kresin <dev@kresin.me>
* kernel: update kernel 4.9 to 4.9.20Hauke Mehrtens2017-04-023-6/+4
| | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: fix ubi auto attach loggingJohn Crispin2017-04-021-3/+5
| | | | | | The patch is missing a trailing new line Signed-off-by: John Crispin <john@phrozen.org>
* kernel: update kernel 4.9 to 4.9.17Hauke Mehrtens2017-03-268-16/+16
| | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: add MIPS pci fix send upstreamMathias Kresin2017-03-241-0/+31
| | | | | | | | | | | | | | | Upstream commit 23dac14d058f ("MIPS: PCI: Use struct list_head lists") changed the controller list from reverse to straight order without taking care of the changed order for the scan of the recorded PCI controllers. Traverse the list in reverse order to restore the former behaviour. This patches fixes the following PCI error on lantiq: pci 0000:01:00.0: BAR 0: error updating (0x1c000004 != 0x000000) Signed-off-by: Mathias Kresin <dev@kresin.me>
* kernel: update bcma including recent changes for 4.12Rafał Miłecki2017-03-211-0/+35
| | | | | | | This adds support for describing GPIO chips placed on PCIe cards. Thanks to this we get working 2.4 GHz LED on Tenda AC9. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* kernel: do not build modules.orderFelix Fietkau2017-03-161-0/+34
| | | | | | | It is not needed for anything on the system and skipping this saves some build time, especially in cases where there is nothing to do. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: Fix the incorrect i_nlink count after jffs2's RENAME_EXCHANGE ↵Jing Qiu2017-03-161-5/+21
| | | | | | | | | | | | | | | | | | | | | operations. The problem is caused by the incorrect handling of the parent inode's i_nlink count for the dentry to be RENAME_EXCHANGED. There are 3 cases to consider. Assume we want to RENAME_EXCHANGE struct dentry *a and struct dentry *b, and inode_a is pointed to by dentry_a, inode_b is pointed to by dentry_b: 1. If inode_a is a directory, but inode_b isn't, then we must decrease the i_nlink count of old_dir_i, and increase the i_nlink of new_dir_i. 2. If inode_a isn't a directory, but inode_b is a directory, then we must increase the i_nlink of old_dir_i, and decrease the i_nlink count of new_dir_i. 3. If the types of inode_a and inode_b are the same, we don't change the i_nlink for either old_dir_i or new_dir_i. Signed-off-by: Jing Qiu <aqiu0720@gmail.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: update kernel 4.9 to 4.9.14Hauke Mehrtens2017-03-122-21/+1
| | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: fix phy aneg crashTim Harvey2017-03-121-1/+1
| | | | | | | Fix a kernel crash caused when CONFIG_FIXED_PHY used for fixed phy drivers in phy-add-aneg-done-function patch. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
* kernel: backport first bcma 4.12 patch for GPIO and of_nodeRafał Miłecki2017-03-081-0/+12
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* kernel: fix of_node handling in LEDs core codeRafał Miłecki2017-03-082-0/+180
| | | | | | | | | This backports fixes for setting of_node and making it possible to read extra info from DT. This was partially fixed by: [PATCH] leds: leds-gpio: Set of_node for created LED devices but it didn't work during initialization. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* kernel: fix whiteout rename on ubifs (FS#579)Felix Fietkau2017-03-061-0/+25
| | | | | | This was apparently caused by some linux upstream merge damage Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: fix earlycon by keeping __earlycon_tableRafał Miłecki2017-03-012-1/+10
| | | | | | | | Somewhere between 4.4 and 4.9 there was a change that made OF_EARLYCON_DECLARE adding entries to the __earlycon_table instead of __earlycon_of_table. We need to keep this table as well. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* kernel: fix MIPS memory function optimization build error in decompressorFelix Fietkau2017-02-281-10/+20
| | | | | | | | | | | | | | | | | | Fixes the following build error: CC arch/mips/boot/compressed/decompress.o OBJCOPY arch/mips/boot/compressed/vmlinux.bin XZKERN arch/mips/boot/compressed/vmlinux.bin.z OBJCOPY arch/mips/boot/compressed/piggy.o LD vmlinuz arch/mips/boot/compressed/decompress.o: In function `lzma2_lzma': /tmp2/mehrtens/linux/arch/mips/boot/compressed/../../../../lib/xz/xz_dec_lzma2.c:884: undefined reference to `memmove' make[1]: *** [vmlinuz] Error 1 make: *** [vmlinuz] Error 2 lib/decompress_unxz.c only defines its own memmove function if there is no macro with the same name. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: update 4.9 to 4.9.13Ansuel Smith2017-02-271-8/+8
| | | | | | refresh patch 630-packet_socket_type Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* kernel: update 4.9 to 4.9.12Ansuel Smith2017-02-265-26/+26
| | | | | | | | Refresh generic patch Compiled and tested WRT1900ACS Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* kernel: update kernel 4.9 to version 4.9.10Hauke Mehrtens2017-02-163-102/+10
| | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: fix crashes on MIPS when loading kernel modules under memory pressureFelix Fietkau2017-02-151-1/+4
| | | | | | | | | | | When memory is tight, modules may need to be loaded into vmalloc() space. The code then has to generate jump trampolines which enable relocations between vmalloc space and physical address space. The code had a bug that was freeing these trampolines even when the module was successfully loaded. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: fix compile error on linux 4.9 with CONFIG_KALLSYMS disabledMartin Blumenstingl2017-02-121-2/+3
| | | | | | | | Upstream linux commit 7523e4dc5057e "module: use a structure to encapsulate layout." moves some of the struct module members into a separate struct module_layout. Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
* kernel: MIPS: IRQ Stack: Fix erroneous jal to plat_irq_dispatchHauke Mehrtens2017-02-121-0/+35
| | | | | | | This backports the following fix to our mips IRQ stack patches: https://patchwork.linux-mips.org/patch/15110/ Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: fix linux 4.9 host tools portability issuesFelix Fietkau2017-02-111-0/+28
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: fix 304-mips_disable_fpu.patch for v4.9John Crispin2017-02-111-9/+42
| | | | | | | the function prototype has changed, make the new stub consistent with this change. Signed-off-by: John Crispin <john@phrozen.org>
* kernel: move upstream accepted bcm47xxpart TRX cleanupsRafał Miłecki2017-02-102-3/+10
| | | | | | Use 0xx prefix for accepted patches. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* kernel: backport bcm47xxsflash support for reading 32 MiB flashesRafał Miłecki2017-02-093-0/+144
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* kernel: update spi-nor in 4.9 to spi-nor tree version (next branch)Rafał Miłecki2017-02-0712-28/+784
| | | | | | | These are patches queued for 4.11. It adds support for even more hw and removes some annoying WARN_ONCE. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* kernel: update spi-nor in 4.9 to version from Linus's tree (4.10)Rafał Miłecki2017-02-0713-15/+200
| | | | | | This adds support for more devices. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* kernel: fix crashlog build error on 4.9Felix Fietkau2017-02-061-2/+2
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: add compile fix for linux 4.9 on x86Felix Fietkau2017-02-061-0/+13
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: add linux 4.9 supportFelix Fietkau2017-02-04167-0/+22636
Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Tim Harvey <tharvey@gateworks.com> [fixes]