mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 06:33:41 +00:00
210c534ce2
This commit moves the patches for the r8152.c driver to the generic directory. Previously they were only available on the bcm27xx target. With these patches the Realtek RTL8153C, RTL8153D, RTL8156A and RTL8156B chips are supported on all targets by the kmod-usb-net-rtl8152 module. The RTL8156A and RTL8156B are the 2.5Gb/s Ethernet adapters. The patches have been tested on TP-Link UE300 (RTL8153A) and UNITEK 1313B (RTL8156B). Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
35 lines
1.6 KiB
Diff
35 lines
1.6 KiB
Diff
From 5fcfa846181de6676509696c4cd7b60a22e74077 Mon Sep 17 00:00:00 2001
|
|
From: Lee Jones <lee.jones@linaro.org>
|
|
Date: Mon, 2 Nov 2020 11:45:09 +0000
|
|
Subject: [PATCH] net: usb: r8152: Fix a couple of spelling errors in
|
|
fw_phy_nc's docs
|
|
|
|
commit 9f07814d01ad085b2d9f1d55b4ce532fb2c27110 upstream.
|
|
|
|
Fixes the following W=1 kernel build warning(s):
|
|
|
|
drivers/net/usb/r8152.c:992: warning: Function parameter or member 'mode_pre' not described in 'fw_phy_nc'
|
|
drivers/net/usb/r8152.c:992: warning: Function parameter or member 'mode_post' not described in 'fw_phy_nc'
|
|
|
|
Signed-off-by: Lee Jones <lee.jones@linaro.org>
|
|
Acked-by: Hayes Wang <hayeswang@realtek.com>
|
|
Link: https://lore.kernel.org/r/20201102114512.1062724-28-lee.jones@linaro.org
|
|
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
|
|
---
|
|
drivers/net/usb/r8152.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
--- a/drivers/net/usb/r8152.c
|
|
+++ b/drivers/net/usb/r8152.c
|
|
@@ -964,8 +964,8 @@ struct fw_phy_patch_key {
|
|
* @patch_en_addr: the register of enabling patch mode. Depends on chip.
|
|
* @patch_en_value: patch mode enabled mask. Depends on the firmware.
|
|
* @mode_reg: the regitster of switching the mode.
|
|
- * @mod_pre: the mode needing to be set before loading the firmware.
|
|
- * @mod_post: the mode to be set when finishing to load the firmware.
|
|
+ * @mode_pre: the mode needing to be set before loading the firmware.
|
|
+ * @mode_post: the mode to be set when finishing to load the firmware.
|
|
* @reserved: reserved space (unused)
|
|
* @bp_start: the start register of break points. Depends on chip.
|
|
* @bp_num: the break point number which needs to be set for this firmware.
|