immortalwrt/target/linux/generic/patches-4.9
Alexey Brodkin 2b27e62e74 linux-4.9: Fix building of DWC3 module
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]
2017-05-02 15:17:30 +02:00
..
010-Kbuild-don-t-hardcode-path-to-awk-in-scripts-ld-vers.patch
011-kbuild-export-SUBARCH.patch
012-usb-Make-sure-usb-phy-of-gets-built-in.patch linux-4.9: Fix building of DWC3 module 2017-05-02 15:17:30 +02:00
020-backport_netfilter_rtcache.patch
021-bridge-multicast-to-unicast.patch kernel: update kernel 4.9 to 4.9.17 2017-03-26 12:23:19 +02:00
022-net-add-devm-version-of-alloc_etherdev_mqs-function.patch kernel: update 4.9 to 4.9.12 2017-02-26 08:44:26 +01:00
023-1-smsc95xx-Use-skb_cow_head-to-deal-with-cloned-skbs.patch kernel: use skb_cow_head() to deal with cloned skbs 2017-04-23 13:51:55 +02:00
023-2-smsc75xx-use-skb_cow_head-to-deal-with-cloned-skbs.patch kernel: use skb_cow_head() to deal with cloned skbs 2017-04-23 13:51:55 +02:00
023-3-cx82310_eth-use-skb_cow_head-to-deal-with-cloned-skb.patch kernel: use skb_cow_head() to deal with cloned skbs 2017-04-23 13:51:55 +02:00
023-4-sr9700-use-skb_cow_head-to-deal-with-cloned-skbs.patch kernel: use skb_cow_head() to deal with cloned skbs 2017-04-23 13:51:55 +02:00
023-5-lan78xx-use-skb_cow_head-to-deal-with-cloned-skbs.patch kernel: use skb_cow_head() to deal with cloned skbs 2017-04-23 13:51:55 +02:00
023-6-ch9200-use-skb_cow_head-to-deal-with-cloned-skbs.patch kernel: use skb_cow_head() to deal with cloned skbs 2017-04-23 13:51:55 +02:00
023-7-kaweth-use-skb_cow_head-to-deal-with-cloned-skbs.patch kernel: use skb_cow_head() to deal with cloned skbs 2017-04-23 13:51:55 +02:00
030-01-ubifs-Drop-softlimit-and-delta-fields-from-struct-ub.patch
030-02-ubifs-Use-dirty_writeback_interval-value-for-wbuf-ti.patch
031-ubifs-fix-RENAME_WHITEOUT-support.patch kernel: fix whiteout rename on ubifs (FS#579) 2017-03-06 10:12:42 +01:00
040-01-MIPS-Introduce-irq_stack.patch
040-02-MIPS-Stack-unwinding-while-on-IRQ-stack.patch kernel: update kernel 4.9 to 4.9.14 2017-03-12 15:45:50 +01:00
040-03-MIPS-Only-change-28-to-thread_info-if-coming-from-us.patch
040-04-MIPS-Switch-to-the-irq_stack-in-interrupts.patch
040-05-MIPS-Select-HAVE_IRQ_EXIT_ON_IRQ_STACK.patch
040-06-MIPS-IRQ-Stack-Fix-erroneous-jal-to-plat_irq_dispatc.patch kernel: MIPS: IRQ Stack: Fix erroneous jal to plat_irq_dispatch 2017-02-12 01:41:43 +01:00
050-usb-dwc2-Remove-unnecessary-kfree.patch
060-0001-mtd-bcm47xxpart-fix-parsing-first-block-after-aligne.patch kernel: backport bcm47xxsflash support for reading 32 MiB flashes 2017-02-09 08:41:23 +01:00
060-0002-mtd-bcm47xxsflash-use-platform_-set-get-_drvdata.patch kernel: backport bcm47xxsflash support for reading 32 MiB flashes 2017-02-09 08:41:23 +01:00
060-0003-mtd-bcm47xxsflash-support-reading-flash-out-of-mappi.patch kernel: backport bcm47xxsflash support for reading 32 MiB flashes 2017-02-09 08:41:23 +01:00
060-0004-mtd-bcm47xxpart-move-TRX-parsing-code-to-separated-f.patch kernel: move upstream accepted bcm47xxpart TRX cleanups 2017-02-10 08:30:16 +01:00
060-0005-mtd-bcm47xxpart-support-layouts-with-multiple-TRX-pa.patch kernel: move upstream accepted bcm47xxpart TRX cleanups 2017-02-10 08:30:16 +01:00
061-v4.10-0001-mtd-spi-nor-add-Macronix-mx25u25635f-to-list-of-know.patch kernel: update spi-nor in 4.9 to version from Linus's tree (4.10) 2017-02-07 15:35:39 +01:00
061-v4.10-0002-mtd-spi-nor-fix-spansion-quad-enable.patch kernel: update spi-nor in 4.9 to version from Linus's tree (4.10) 2017-02-07 15:35:39 +01:00
061-v4.10-0003-mtd-spi-nor-fix-flags-for-s25fl128s.patch kernel: update spi-nor in 4.9 to version from Linus's tree (4.10) 2017-02-07 15:35:39 +01:00
061-v4.10-0004-mtd-spi-nor-add-support-for-s25fl208k.patch kernel: update spi-nor in 4.9 to version from Linus's tree (4.10) 2017-02-07 15:35:39 +01:00
061-v4.10-0005-mtd-spi-nor-Add-at25df321-spi-nor-flash-support.patch kernel: update spi-nor in 4.9 to version from Linus's tree (4.10) 2017-02-07 15:35:39 +01:00
061-v4.10-0006-mtd-spi-nor-Add-support-for-N25Q016A.patch kernel: update spi-nor in 4.9 to version from Linus's tree (4.10) 2017-02-07 15:35:39 +01:00
061-v4.10-0007-mtd-spi-nor-Add-support-for-mr25h40.patch kernel: update spi-nor in 4.9 to version from Linus's tree (4.10) 2017-02-07 15:35:39 +01:00
062-v4.11-0001-mtd-spi-nor-Add-support-for-S3AN-spi-nor-devices.patch kernel: update spi-nor in 4.9 to spi-nor tree version (next branch) 2017-02-07 15:35:39 +01:00
062-v4.11-0002-mtd-spi-nor-improve-macronix_quad_enable.patch kernel: update spi-nor in 4.9 to spi-nor tree version (next branch) 2017-02-07 15:35:39 +01:00
062-v4.11-0003-mtd-spi-nor-remove-WARN_ONCE-message-in-spi_nor_writ.patch kernel: update spi-nor in 4.9 to spi-nor tree version (next branch) 2017-02-07 15:35:39 +01:00
062-v4.11-0004-mtd-spi-nor-rename-SPINOR_OP_-macros-of-the-4-byte-a.patch kernel: update spi-nor in 4.9 to spi-nor tree version (next branch) 2017-02-07 15:35:39 +01:00
062-v4.11-0005-mtd-spi-nor-add-a-stateless-method-to-support-memory.patch kernel: update spi-nor in 4.9 to spi-nor tree version (next branch) 2017-02-07 15:35:39 +01:00
062-v4.11-0006-mtd-spi-nor-Add-lock-unlock-support-for-f25l32pa.patch kernel: update spi-nor in 4.9 to spi-nor tree version (next branch) 2017-02-07 15:35:39 +01:00
062-v4.11-0007-mtd-spi-nor-Fix-S3AN-addressing-calculation.patch kernel: update spi-nor in 4.9 to spi-nor tree version (next branch) 2017-02-07 15:35:39 +01:00
062-v4.11-0008-mtd-spi-nor-Add-support-for-gd25q16.patch kernel: update spi-nor in 4.9 to spi-nor tree version (next branch) 2017-02-07 15:35:39 +01:00
063-mtd-spi-nor-enable-stateless-4b-op-codes-for-mx25u25.patch generic: mtd: backport mx25u25635f stateless 4b support 2017-04-19 21:00:52 +02:00
070-bcma-from-4.11.patch kernel: update kernel 4.9 to 4.9.14 2017-03-12 15:45:50 +01:00
071-v4.10-0001-net-bgmac-allocate-struct-bgmac-just-once-don-t-copy.patch
071-v4.10-0002-net-bgmac-drop-struct-bcma_mdio-we-don-t-need-anymor.patch
071-v4.10-0003-net-bgmac-use-PHY-subsystem-for-initializing-PHY.patch
072-bcma-from-4.12.patch kernel: update bcma including recent changes for 4.12 2017-03-21 09:58:05 +01:00
075-v4.10-0001-net-phy-broadcom-Update-Auxiliary-Control-Register-m.patch
075-v4.10-0002-net-phy-broadcom-Add-support-for-BCM54612E.patch
075-v4.10-0003-net-phy-broadcom-add-bcm54xx_auxctl_read.patch
075-v4.10-0004-net-phy-broadcom-Add-BCM54810-PHY-entry.patch
075-v4.10-0005-net-phy-broadcom-Move-bcm54xx_auxctl_-read-write-to-.patch
076-v4.11-0001-net-phy-broadcom-Allow-enabling-or-disabling-of-EEE.patch
076-v4.11-0002-net-phy-broadcom-Add-support-code-for-reading-PHY-co.patch
076-v4.11-0003-net-phy-bcm7xxx-Add-entry-for-BCM7278.patch
076-v4.11-0004-net-phy-bcm7xxx-Implement-EGPHY-workaround-for-7278.patch
076-v4.11-0005-net-phy-broadcom-use-auxctl-reading-helper-in-BCM546.patch
076-v4.11-0006-net-phy-broadcom-add-support-for-BCM54210E.patch
076-v4.11-0007-net-phy-broadcom-rehook-BCM54612E-specific-init.patch
080-0001-leds-core-add-OF-variants-of-LED-registering-functio.patch kernel: fix of_node handling in LEDs core code 2017-03-08 13:06:16 +01:00
080-0002-leds-gpio-use-OF-variant-of-LED-registering-function.patch kernel: fix of_node handling in LEDs core code 2017-03-08 13:06:16 +01:00
081-0001-thermal-bcm2835-add-thermal-driver-for-bcm2835-SoC.patch kernel: backport Broadcom thermal drivers 2017-04-14 22:57:47 +02:00
081-0002-thermal-broadcom-add-Northstar-thermal-driver.patch kernel: backport Broadcom thermal drivers 2017-04-14 22:57:47 +02:00
100-MIPS-fix-cache-flushing-for-highmem-pages.patch
110-ehci_hcd_ignore_oc.patch
120-Fix-alloc_node_mem_map-with-ARCH_PFN_OFFSET-calcu.patch
121-of-Add-check-to-of_scan_flat_dt-before-accessing-ini.patch
130-add-linux-spidev-compatible-si3210.patch
131-spi-use-gpio_set_value_cansleep-for-setting-chipsele.patch
140-jffs2-use-.rename2-and-add-RENAME_WHITEOUT-support.patch
141-jffs2-add-RENAME_EXCHANGE-support.patch kernel: Fix the incorrect i_nlink count after jffs2's RENAME_EXCHANGE operations. 2017-03-16 11:28:40 +01:00
150-bridge_allow_receiption_on_disabled_port.patch kernel: update kernel 4.9 to 4.9.17 2017-03-26 12:23:19 +02:00
160-mtd-part-add-generic-parsing-of-linux-part-probe.patch
170-MIPS-PCI-add-controllers-before-the-specified-head.patch kernel: update MIPS pci fix to the accepted version 2017-04-08 14:30:00 +02:00
180-net-phy-at803x-add-support-for-AT8032.patch
200-fix_localversion.patch
201-extra_optimization.patch
202-reduce_module_size.patch
203-kallsyms_uncompressed.patch
204-module_strip.patch
205-backtrace_module_info.patch kernel: fix compile error on linux 4.9 with CONFIG_KALLSYMS disabled 2017-02-12 13:55:13 +01:00
206-mips-disable-vdso.patch
207-disable-modorder.patch kernel: do not build modules.order 2017-03-16 19:14:24 +01:00
210-darwin_scripts_include.patch
211-host_tools_portability.patch kernel: fix linux 4.9 host tools portability issues 2017-02-11 19:02:52 +01:00
212-byteshift_portability.patch
214-spidev_h_portability.patch
220-gc_sections.patch kernel: fix earlycon by keeping __earlycon_table 2017-03-01 15:40:17 +01:00
221-module_exports.patch
222-arm_zimage_none.patch
230-openwrt_lzma_options.patch
240-remove-unsane-filenames-from-deps_initramfs-list.patch
250-netfilter_depends.patch
251-sound_kconfig.patch
252-mv_cesa_depends.patch
253-ssb_b43_default_on.patch
254-textsearch_kconfig_hacks.patch
255-lib80211_kconfig_hacks.patch
256-crypto_add_kconfig_prompts.patch
257-wireless_ext_kconfig_hack.patch
258-netfilter_netlink_kconfig_hack.patch
259-regmap_dynamic.patch
260-crypto_test_dependencies.patch
261-enable_wilink_platform_without_drivers.patch
270-uapi-kernel.h-glibc-specific-inclusion-of-sysinfo.h.patch
271-uapi-libc-compat.h-do-not-rely-on-__GLIBC__.patch
272-uapi-if_ether.h-prevent-redefinition-of-struct-ethhd.patch
280-rfkill-stubs.patch
300-mips_expose_boot_raw.patch
301-mips_image_cmdline_hack.patch
302-mips_no_branch_likely.patch
304-mips_disable_fpu.patch kernel: update kernel 4.9 to version 4.9.10 2017-02-16 00:46:23 +01:00
305-mips_module_reloc.patch kernel: fix crashes on MIPS when loading kernel modules under memory pressure 2017-02-15 12:35:17 +01:00
306-mips_mem_functions_performance.patch kernel: fix MIPS memory function optimization build error in decompressor 2017-02-28 20:22:10 +01:00
307-mips_highmem_offset.patch
308-mips32r2_tune.patch
310-arm_module_unresolved_weak_sym.patch
321-powerpc_crtsavres_prereq.patch
330-MIPS-kexec-Accept-command-line-parameters-from-users.patch
332-arc-add-OWRTDTB-section.patch
333-arc-enable-unaligned-access-in-kernel-mode.patch
400-mtd-add-rootfs-split-support.patch
401-mtd-add-support-for-different-partition-parser-types.patch
402-mtd-use-typed-mtd-parsers-for-rootfs-and-firmware-split.patch
403-mtd-hook-mtdsplit-to-Kbuild.patch
404-mtd-add-more-helper-functions.patch
410-mtd-move-forward-declaration-of-struct-mtd_info.patch
411-mtd-partial_eraseblock_write.patch
412-mtd-partial_eraseblock_unlock.patch
420-mtd-redboot_space.patch
430-mtd-add-myloader-partition-parser.patch
431-mtd-bcm47xxpart-check-for-bad-blocks-when-calculatin.patch
432-mtd-bcm47xxpart-detect-T_Meter-partition.patch
440-block2mtd_init.patch
441-block2mtd_probe.patch
460-mtd-cfi_cmdset_0002-no-erase_suspend.patch
461-mtd-cfi_cmdset_0002-add-buffer-write-cmd-timeout.patch
465-m25p80-mx-disable-software-protection.patch kernel: update spi-nor in 4.9 to spi-nor tree version (next branch) 2017-02-07 15:35:39 +01:00
476-mtd-spi-nor-add-eon-en25q128.patch kernel: update spi-nor in 4.9 to spi-nor tree version (next branch) 2017-02-07 15:35:39 +01:00
477-mtd-add-spi-nor-add-mx25u3235f.patch kernel: update spi-nor in 4.9 to spi-nor tree version (next branch) 2017-02-07 15:35:39 +01:00
480-mtd-set-rootfs-to-be-root-dev.patch
490-ubi-auto-attach-mtd-device-named-ubi-or-data-on-boot.patch kernel: update kernel 4.9 to 4.9.20 2017-04-02 12:47:55 +02:00
491-ubi-auto-create-ubiblock-device-for-rootfs.patch
492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch
493-ubi-set-ROOT_DEV-to-ubiblock-rootfs-if-unset.patch
494-mtd-ubi-add-EOF-marker-support.patch
530-jffs2_make_lzma_available.patch
531-debloat_lzma.patch
532-jffs2_eofdetect.patch
551-ubifs-fix-default-compression-selection.patch
600-netfilter_conntrack_flush.patch
610-netfilter_match_bypass_default_checks.patch
611-netfilter_match_bypass_default_table.patch
612-netfilter_match_reduce_memory_access.patch
613-netfilter_optional_tcp_window_check.patch
616-net_optimize_xfrm_calls.patch
630-packet_socket_type.patch kernel: update kernel 4.9 to 4.9.17 2017-03-26 12:23:19 +02:00
640-bridge-only-accept-EAP-locally.patch kernel: update kernel 4.9 to 4.9.17 2017-03-26 12:23:19 +02:00
641-bridge_port_isolate.patch kernel: update kernel 4.9 to 4.9.17 2017-03-26 12:23:19 +02:00
650-pppoe_header_pad.patch
651-wireless_mesh_header.patch
655-increase_skb_pad.patch
660-fq_codel_defaults.patch
661-use_fq_codel_by_default.patch
662-remove_pfifo_fast.patch
666-Add-support-for-MAP-E-FMRs-mesh-mode.patch kernel: update 4.9 to 4.9.12 2017-02-26 08:44:26 +01:00
670-ipv6-allow-rejecting-with-source-address-failed-policy.patch
671-net-provide-defines-for-_POLICY_FAILED-until-all-cod.patch
680-NET-skip-GRO-for-foreign-MAC-addresses.patch kernel: update kernel 4.9 to 4.9.17 2017-03-26 12:23:19 +02:00
681-NET-add-of_get_mac_address_mtd.patch
700-swconfig_switch_drivers.patch
701-phy_extension.patch
702-phy_add_aneg_done_function.patch kernel: fix phy aneg crash 2017-03-12 11:58:45 +01:00
703-phy-add-detach-callback-to-struct-phy_driver.patch
704-phy-no-genphy-soft-reset.patch
710-phy-add-mdio_register_board_info.patch
721-phy_packets.patch kernel: update kernel 4.9 to 4.9.17 2017-03-26 12:23:19 +02:00
734-net-phy-at803x-allow-to-configure-via-pdata.patch
735-net-phy-at803x-fix-at8033-sgmii-mode.patch
773-bgmac-add-srab-switch.patch
810-pci_disable_common_quirks.patch kernel: update kernel 4.9 to 4.9.17 2017-03-26 12:23:19 +02:00
811-pci_disable_usb_common_quirks.patch
821-usb-Remove-annoying-warning-about-bogus-URB.patch
831-ledtrig_netdev.patch
834-ledtrig-libata.patch kernel: update kernel 4.9 to version 4.9.10 2017-02-16 00:46:23 +01:00
835-misc-owl_loader.patch
840-rtc7301.patch
841-rtc_pt7c4338.patch
890-uart_optional_sysrq.patch
901-debloat_sock_diag.patch kernel: update kernel 4.9 to 4.9.20 2017-04-02 12:47:55 +02:00
902-debloat_proc.patch kernel: update kernel 4.9 to 4.9.20 2017-04-02 12:47:55 +02:00
904-debloat_dma_buf.patch
910-kobject_uevent.patch
911-kobject_add_broadcast_uevent.patch
920-mangle_bootargs.patch
921-always-create-console-node-in-initramfs.patch
930-crashlog.patch kernel: fix crashlog build error on 4.9 2017-02-06 11:56:57 +01:00