Merge Official Source
This commit is contained in:
commit
16cbaf6cf0
@ -22,17 +22,20 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
|
||||
Supported chips: RT2880, RT3050, RT3052, RT3350, RT3352.
|
||||
--- a/drivers/net/wireless/ralink/rt2x00/rt2x00eeprom.c
|
||||
+++ b/drivers/net/wireless/ralink/rt2x00/rt2x00eeprom.c
|
||||
@@ -26,11 +26,72 @@
|
||||
@@ -26,11 +26,76 @@
|
||||
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/module.h>
|
||||
+#if IS_ENABLED(CONFIG_MTD)
|
||||
+#include <linux/mtd/mtd.h>
|
||||
+#include <linux/mtd/partitions.h>
|
||||
+#endif
|
||||
#include <linux/of.h>
|
||||
|
||||
#include "rt2x00.h"
|
||||
#include "rt2x00lib.h"
|
||||
|
||||
+#if IS_ENABLED(CONFIG_MTD)
|
||||
+static int rt2800lib_read_eeprom_mtd(struct rt2x00_dev *rt2x00dev)
|
||||
+{
|
||||
+ int ret = -EINVAL;
|
||||
@ -91,16 +94,19 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
|
||||
+
|
||||
+ return ret;
|
||||
+}
|
||||
+#endif
|
||||
+
|
||||
static const char *
|
||||
rt2x00lib_get_eeprom_file_name(struct rt2x00_dev *rt2x00dev)
|
||||
{
|
||||
@@ -58,6 +119,9 @@ static int rt2x00lib_request_eeprom_file
|
||||
@@ -58,6 +123,11 @@ static int rt2x00lib_request_eeprom_file
|
||||
const char *ee_name;
|
||||
int retval;
|
||||
|
||||
+#if IS_ENABLED(CONFIG_MTD)
|
||||
+ if (!rt2800lib_read_eeprom_mtd(rt2x00dev))
|
||||
+ return 0;
|
||||
+#endif
|
||||
+
|
||||
ee_name = rt2x00lib_get_eeprom_file_name(rt2x00dev);
|
||||
if (!ee_name && test_bit(REQUIRE_EEPROM_FILE, &rt2x00dev->cap_flags)) {
|
||||
|
||||
@ -52,7 +52,7 @@ define Device/domywifi_dw33d
|
||||
DEVICE_VENDOR := DomyWifi
|
||||
DEVICE_MODEL := DW33D
|
||||
DEVICE_PACKAGES := kmod-usb2 kmod-usb-storage kmod-usb-ledtrig-usbport \
|
||||
kmod-ath10k-ct ath10k-firmware-qca988x-ct
|
||||
kmod-ath10k-ct ath10k-firmware-qca988x-ct
|
||||
KERNEL_SIZE := 5120k
|
||||
IMAGE_SIZE := 98304k
|
||||
BLOCKSIZE := 128k
|
||||
@ -61,7 +61,7 @@ define Device/domywifi_dw33d
|
||||
IMAGES += factory.bin
|
||||
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
||||
IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | \
|
||||
check-size $$$$(IMAGE_SIZE)
|
||||
check-size $$$$(IMAGE_SIZE)
|
||||
endef
|
||||
TARGET_DEVICES += domywifi_dw33d
|
||||
|
||||
@ -115,7 +115,7 @@ define Device/glinet_gl-ar750s-nor-nand
|
||||
GL_UBOOT_UBI_OFFSET := 2048k
|
||||
IMAGES += factory.img
|
||||
IMAGE/factory.img := append-kernel | pad-to $$$$(GL_UBOOT_UBI_OFFSET) | \
|
||||
append-ubi | check-kernel-size $$$$(GL_UBOOT_UBI_OFFSET)
|
||||
append-ubi | check-kernel-size $$$$(GL_UBOOT_UBI_OFFSET)
|
||||
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
||||
SUPPORTED_DEVICES += glinet,gl-ar750s-nor
|
||||
endef
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
--- a/drivers/pci/controller/Kconfig
|
||||
+++ b/drivers/pci/controller/Kconfig
|
||||
--- a/drivers/pci/host/Kconfig
|
||||
+++ b/drivers/pci/host/Kconfig
|
||||
@@ -220,4 +220,9 @@ config VMD
|
||||
To compile this driver as a module, choose M here: the
|
||||
module will be called vmd.
|
||||
@ -10,8 +10,8 @@
|
||||
+ select PCIEPORTBUS
|
||||
+
|
||||
endmenu
|
||||
--- a/drivers/pci/controller/Makefile
|
||||
+++ b/drivers/pci/controller/Makefile
|
||||
--- a/drivers/pci/host/Makefile
|
||||
+++ b/drivers/pci/host/Makefile
|
||||
@@ -20,6 +20,7 @@ obj-$(CONFIG_PCIE_ALTERA) += pcie-altera
|
||||
obj-$(CONFIG_PCIE_ALTERA_MSI) += pcie-altera-msi.o
|
||||
obj-$(CONFIG_PCIE_ROCKCHIP) += pcie-rockchip.o
|
||||
|
||||
Loading…
Reference in New Issue
Block a user