adding new glue driver dwmac-dwc-qos-eth
Subsystems (6)
v4 cover adding new glue driver dwmac-dwc-qos-eth
This patch set contains the porting of the synopsys/dwc_eth_qos.c driver to the stmmac structure. This operation resulted in the creation of a new platform glue driver called dwmac-dwc-qos-eth which was based in the dwc_eth_qos as is.
dwmac-dwc-qos-eth inherited dwc_eth_qos DT bindings, to assure that current and old users can continue to use it as before. We can see this driver as being deprecated, since all new development will be done in stmmac.
Please check each patch for implementation details.
Joao Pinto (3):
stmmac: adding DT parameter for LPI tx clock gating
stmmac: move stmmac_clk, pclk, clk_ptp_ref and stmmac_rst to platform
structure
stmmac: adding new glue driver dwmac-dwc-qos-eth
.../bindings/net/snps,dwc-qos-ethernet.txt | 3 + Documentation/devicetree/bindings/net/stmmac.txt | 2 + drivers/net/ethernet/stmicro/stmmac/Kconfig | 9 + drivers/net/ethernet/stmicro/stmmac/Makefile | 1 + drivers/net/ethernet/stmicro/stmmac/common.h | 3 +- .../ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c | 202 +++++++++++++++++++++ .../net/ethernet/stmicro/stmmac/dwmac-socfpga.c | 2 +- .../net/ethernet/stmicro/stmmac/dwmac1000_core.c | 5 +- drivers/net/ethernet/stmicro/stmmac/dwmac4.h | 1 + drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c | 6 +- drivers/net/ethernet/stmicro/stmmac/stmmac.h | 5 - .../net/ethernet/stmicro/stmmac/stmmac_ethtool.c | 4 +- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 85 ++------- .../net/ethernet/stmicro/stmmac/stmmac_platform.c | 65 ++++++- include/linux/stmmac.h | 6 + 15 files changed, 317 insertions(+), 82 deletions(-) create mode 100644 drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c
Signature · 1 line
2.9.3
PATCH v4 1/3 stmmac: adding DT parameter for LPI tx clock gating
This patch adds a new parameter to the stmmac DT: snps,en-tx-lpi-clockgating. It was ported from synopsys/dwc_eth_qos.c and it is useful if lpi tx clock gating is needed by stmmac users also.
---
changes v1 -> v4:
- Nothing changed, just to keep up patch set version
Documentation/devicetree/bindings/net/stmmac.txt | 2 ++ drivers/net/ethernet/stmicro/stmmac/common.h | 3 ++- drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c | 5 ++++- drivers/net/ethernet/stmicro/stmmac/dwmac4.h | 1 + drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c | 6 +++++- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 3 ++- drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 3 +++ include/linux/stmmac.h | 1 + 8 files changed, 20 insertions(+), 4 deletions(-)
Documentation/devicetree/bindings/net/stmmac.txt +2 -0
@@ -49,6 +49,8 @@ Optional properties: - snps,force_sf_dma_mode Force DMA to use the Store and Forward mode for both tx and rx. This flag is ignored if force_thresh_dma_mode is set. +- snps,en-tx-lpi-clockgating Enable gating of the MAC TX clock during + TX low-power mode - snps,multicast-filter-bins: Number of multicast filter hash bins supported by this device instance - snps,perfect-filter-entries: Number of perfect filter entries supported
drivers/net/ethernet/stmicro/stmmac/common.h +2 -1
@@ -476,7 +476,8 @@ struct stmmac_ops { unsigned int reg_n);void (*get_umac_addr)(struct mac_device_info *hw,unsigned char *addr,unsigned int reg_n); -void (*set_eee_mode)(struct mac_device_info *hw); +void (*set_eee_mode)(struct mac_device_info *hw, +bool en_tx_lpi_clockgating);void (*reset_eee_mode)(struct mac_device_info *hw);void (*set_eee_timer)(struct mac_device_info *hw,int ls,int tw);void (*set_eee_pls)(struct mac_device_info *hw,int link);
drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c +4 -1
@@ -343,11 +343,14 @@ static int dwmac1000_irq_status(struct mac_device_info *hw,return ret; } -static void dwmac1000_set_eee_mode (struct mac_device_info *hw) +static void dwmac1000_set_eee_mode (struct mac_device_info *hw, +bool en_tx_lpi_clockgating) {void __iomem *ioaddr = hw->pcsr;u32 value; +/*TODO - en_tx_lpi_clockgating treatment */ +/* Enable the link status receive on RGMII, SGMII ore SMII * receive path and instruct the transmit to enter in LPI * state.
drivers/net/ethernet/stmicro/stmmac/dwmac4.h +1 -0
@@ -98,6 +98,7 @@ enum power_event {#define GMAC4_LPI_TIMER_CTRL 0xd4/* LPI control and status defines */ +#define GMAC4_LPI_CTRL_STATUS_LPITCSE BIT(21)/* LPI Tx Clock Stop Enable */ #define GMAC4_LPI_CTRL_STATUS_LPITXA BIT(19)/* Enable LPI TX Automate */ #define GMAC4_LPI_CTRL_STATUS_PLS BIT(17)/* PHY Link Status */ #define GMAC4_LPI_CTRL_STATUS_LPIEN BIT(16)/* LPI Enable */
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c +5 -1
@@ -137,7 +137,8 @@ static void dwmac4_get_umac_addr(struct mac_device_info *hw, GMAC_ADDR_LOW(reg_n)); } -static void dwmac4_set_eee_mode (struct mac_device_info *hw) +static void dwmac4_set_eee_mode (struct mac_device_info *hw, +bool en_tx_lpi_clockgating) {void __iomem *ioaddr = hw->pcsr;u32 value;
@@ -149,6 +150,9 @@ static void dwmac4_set_eee_mode(struct mac_device_info *hw) value =readl (ioaddr +GMAC4_LPI_CTRL_STATUS ); value |=GMAC4_LPI_CTRL_STATUS_LPIEN |GMAC4_LPI_CTRL_STATUS_LPITXA ; +if (en_tx_lpi_clockgating) + value |=GMAC4_LPI_CTRL_STATUS_LPITCSE ; +writel (value, ioaddr +GMAC4_LPI_CTRL_STATUS ); }
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +2 -1
@@ -239,7 +239,8 @@ static void stmmac_enable_eee_mode(struct stmmac_priv *priv)/* Check and enter in LPI mode */ if ((priv->dirty_tx == priv->cur_tx) && (priv->tx_path_in_lpi_mode == false)) - priv->hw->mac->set_eee_mode (priv->hw); + priv->hw->mac->set_eee_mode (priv->hw, + priv->plat->en_tx_lpi_clockgating); }/**
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +3 -0
@@ -249,6 +249,9 @@ stmmac_probe_config_dt(struct platform_device *pdev, const char **mac) plat->force_sf_dma_mode =of_property_read_bool (np,"snps,force_sf_dma_mode" ); + plat->en_tx_lpi_clockgating = +of_property_read_bool (np,"snps,en-tx-lpi-clockgating" ); +/* Set the maxmtu to a default of JUMBO_LEN in case the * parameter is not present in the device tree. */
include/linux/stmmac.h +1 -0
@@ -143,5 +143,6 @@ struct plat_stmmacenet_data {int has_gmac4;bool tso_en;int mac_port_sel_speed; + bool en_tx_lpi_clockgating; };#endif
Signature · 1 line
2.9.3
PATCH v4 2/3 stmmac: move stmmac_clk, pclk, clk_ptp_ref and stmmac_rst to platform structure
In reply to Joao PintoThis patch moves stmmac_clk, pclk, clk_ptp_ref and stmmac_rst to the plat_stmmacenet_data structure. It also moves these platform variables initialization to stmmac_platform. This was done for two reasons:
a) If PCI is used, platform related code is being executed in stmmac_main resulting in warnings that have no sense and conceptually was not right
b) stmmac as a synopsys reference ethernet driver stack will be hosting more and more drivers to its structure like synopsys/dwc_eth_qos.c. These drivers have their own DT bindings that are not compatible with stmmac's. One of the most important are the clock names, and so they need to be parsed in the glue logic and initialized there, and that is the main reason why the clocks were passed to the platform structure.
---
changes v3 -> v4:
- Nothing changed, just to keep up patch set version
changes v2 -> v3:
- dwmac-socfpga glue driver was also using stmmac_rst from priv struct and was causing a build error caught by kbuild robot
changes v1 -> v2:
- Nothing changed, just to keep up patch set version
.../net/ethernet/stmicro/stmmac/dwmac-socfpga.c | 2 +- drivers/net/ethernet/stmicro/stmmac/stmmac.h | 5 -- .../net/ethernet/stmicro/stmmac/stmmac_ethtool.c | 4 +- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 82 ++++------------------ .../net/ethernet/stmicro/stmmac/stmmac_platform.c | 47 +++++++++++++ include/linux/stmmac.h | 5 ++ 6 files changed, 70 insertions(+), 75 deletions(-)
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c +1 -1
@@ -341,7 +341,7 @@ static int socfpga_dwmac_probe(struct platform_device *pdev)* mode. Create a copy of the core reset handle so it can be used by * the driver later. */ - dwmac->stmmac_rst = stpriv->stmmac_rst; + dwmac->stmmac_rst = stpriv->plat->stmmac_rst; ret =socfpga_dwmac_set_phy_mode (dwmac);if (ret)
drivers/net/ethernet/stmicro/stmmac/stmmac.h +0 -5
@@ -106,9 +106,6 @@ struct stmmac_priv {u32 msg_enable;int wolopts;int wol_irq; -struct clk *stmmac_clk; -struct clk *pclk; -struct reset_control *stmmac_rst;int clk_csr;struct timer_list eee_ctrl_timer;int lpi_irq;
@@ -120,8 +117,6 @@ struct stmmac_priv {struct ptp_clock *ptp_clock;struct ptp_clock_info ptp_clock_ops;unsigned int default_addend; -struct clk *clk_ptp_ref; -unsigned int clk_ptp_rate;u32 adv_ts;int use_riwt;int irq_wake;
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c +2 -2
@@ -712,7 +712,7 @@ static int stmmac_ethtool_op_set_eee(struct net_device *dev,static u32 stmmac_usec2riwt (u32 usec,struct stmmac_priv *priv) { -unsigned long clk =clk_get_rate (priv->stmmac_clk); +unsigned long clk =clk_get_rate (priv->plat->stmmac_clk);if (!clk)return 0 ;
@@ -722,7 +722,7 @@ static u32 stmmac_usec2riwt(u32 usec, struct stmmac_priv *priv)static u32 stmmac_riwt2usec (u32 riwt,struct stmmac_priv *priv) { -unsigned long clk =clk_get_rate (priv->stmmac_clk); +unsigned long clk =clk_get_rate (priv->plat->stmmac_clk);if (!clk)return 0 ;
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +15 -67
142 lines not on this page · raw message
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +47 -0
54 lines not on this page · raw message
include/linux/stmmac.h +5 -0
@@ -139,6 +139,11 @@ struct plat_stmmacenet_data {int (*init)(struct platform_device *pdev,void *priv);void (*exit)(struct platform_device *pdev,void *priv);void *bsp_priv; +struct clk *stmmac_clk; +struct clk *pclk; +struct clk *clk_ptp_ref; +unsigned int clk_ptp_rate; +struct reset_control *stmmac_rst;struct stmmac_axi *axi;int has_gmac4;bool tso_en;
Signature · 1 line
2.9.3
PATCH v4 3/3 stmmac: adding new glue driver dwmac-dwc-qos-eth
In reply to Joao PintoThis patch adds a new glue driver called dwmac-dwc-qos-eth which was based in the dwc_eth_qos as is. To assure retro-compatibility a slight tweak was also added to stmmac_platform.
---
changes v3 -> v4:
- stmmac_res is now being initialized to 0
changes v2 -> v3:
- Nothing changed, just to keep up patch set version changes v1 -> v2:
- WOL was not declared in the new glue driver
- clocks were switched and now fixed (apb_pclk and phy_ref_clk)
.../bindings/net/snps,dwc-qos-ethernet.txt | 3 + drivers/net/ethernet/stmicro/stmmac/Kconfig | 9 + drivers/net/ethernet/stmicro/stmmac/Makefile | 1 + .../ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c | 202 +++++++++++++++++++++ .../net/ethernet/stmicro/stmmac/stmmac_platform.c | 15 +- 5 files changed, 227 insertions(+), 3 deletions(-) create mode 100644 drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c
Documentation/devicetree/bindings/net/snps,dwc-qos-ethernet.txt +3 -0
@@ -1,5 +1,8 @@ * Synopsys DWC Ethernet QoS IP version 4.10 driver (GMAC) +This binding is deprecated, but it continues to be supported, but new +features should be preferably added to the stmmac binding document. + This binding supports the Synopsys Designware Ethernet QoS (Quality Of Service) IP block. The IP supports multiple options for bus type, clocking and reset structure, and feature list. Consequently, a number of properties and list
drivers/net/ethernet/stmicro/stmmac/Kconfig +9 -0
@@ -29,6 +29,15 @@ config STMMAC_PLATFORM if STMMAC_PLATFORM +config DWMAC_DWC_QOS_ETH + tristate "Support for snps,dwc-qos-ethernet.txt DT binding." + select PHYLIB + select CRC32 + select MII + depends on OF && HAS_DMA + help + Support for chips using the snps,dwc-qos-ethernet.txt DT binding. + config DWMAC_GENERIC tristate "Generic driver for DWMAC" default STMMAC_PLATFORM
drivers/net/ethernet/stmicro/stmmac/Makefile +1 -0
@@ -16,6 +16,7 @@ obj-$(CONFIG_DWMAC_SOCFPGA) += dwmac-altr-socfpga.o obj-$(CONFIG_DWMAC_STI) += dwmac-sti.o obj-$(CONFIG_DWMAC_STM32) += dwmac-stm32.o obj-$(CONFIG_DWMAC_SUNXI) += dwmac-sunxi.o +obj-$(CONFIG_DWMAC_DWC_QOS_ETH) += dwmac-dwc-qos-eth.o obj-$(CONFIG_DWMAC_GENERIC) += dwmac-generic.o stmmac-platform-objs:= stmmac_platform.o dwmac-altr-socfpga-objs := altr_tse_pcs.o dwmac-socfpga.o
drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c new file +202 -0
202 lines not on this page · raw message
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +12 -3
@@ -181,10 +181,19 @@ static int stmmac_dt_phy(struct plat_stmmacenet_data *plat, mdio = false; } -/* If snps,dwmac-mdio is passed from DT, always register the MDIO */ -for_each_child_of_node (np, plat->mdio_node) { -if (of_device_is_compatible (plat->mdio_node,"snps,dwmac-mdio" )) +/* exception for dwmac-dwc-qos-eth glue logic */ +if (of_device_is_compatible (np,"snps,dwc-qos-ethernet-4.10" )) { + plat->mdio_node =of_get_child_by_name (np,"mdio" ); + }else { +/** +* If snps,dwmac-mdio is passed from DT, always register +* the MDIO +*/ +for_each_child_of_node (np, plat->mdio_node) { +if (of_device_is_compatible (plat->mdio_node, +"snps,dwmac-mdio" ))break ; + } }if (plat->mdio_node) {
Signature · 1 line
2.9.3
kbuild test robot
build botRe: [PATCH v4 3/3] stmmac: adding new glue driver dwmac-dwc-qos-eth
url: https://github.com/0day-ci/linux/commits/Joao-Pinto/adding-new-glue-driver-dwmac-dwc-qos-eth/20170106-154152 config: ia64-allmodconfig (attached as .config) compiler: ia64-linux-gcc (GCC) 6.2.0…
Hi Joao,
[auto build test ERROR on net-next/master]
[also build test ERROR on next-20170105]
[cannot apply to v4.10-rc2]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Joao-Pinto/adding-new-glue-driver-dwmac-dwc-qos-eth/20170106-154152
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=ia64
All errors (new ones prefixed by >>):
drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c: In function 'dwc_eth_dwmac_probe':
>> drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:116:9: error: incompatible type for argument 1 of 'memset'
memset(stmmac_res, 0, sizeof(struct stmmac_resources));
^~~~~~~~~~
In file included from include/linux/string.h:18:0,
from include/linux/bitmap.h:8,
from include/linux/cpumask.h:11,
from include/linux/rcupdate.h:40,
from include/linux/srcu.h:33,
from include/linux/notifier.h:15,
from include/linux/clk.h:17,
from drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:14:
arch/ia64/include/asm/string.h:19:14: note: expected 'void *' but argument is of type 'struct stmmac_resources'
extern void *memset (void *, int, __kernel_size_t);
^~~~~~vim +/memset +116 drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c
110 {
111 struct plat_stmmacenet_data *plat_dat;
112 struct stmmac_resources stmmac_res;
113 struct resource *res;
114 int ret;
115
> 116 memset(stmmac_res, 0, sizeof(struct stmmac_resources));
117
118 /**
119 * Since stmmac_platform supports name IRQ only, basic platform
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
kbuild test robot
build botRe: [PATCH v4 3/3] stmmac: adding new glue driver dwmac-dwc-qos-eth
In reply to Joao Pintourl: https://github.com/0day-ci/linux/commits/Joao-Pinto/adding-new-glue-driver-dwmac-dwc-qos-eth/20170106-154152 config: i386-allmodconfig (attached as .config) compiler: gcc-6 (Debian 6.2.0-3)…
Hi Joao,
[auto build test ERROR on net-next/master]
[also build test ERROR on next-20170105]
[cannot apply to v4.10-rc2]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Joao-Pinto/adding-new-glue-driver-dwmac-dwc-qos-eth/20170106-154152
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce:
# save the attached .config to linux build tree
make ARCH=i386 All errors (new ones prefixed by >>):
In file included from arch/x86/include/asm/string.h:2:0,
from include/linux/string.h:18,
from arch/x86/include/asm/page_32.h:34,
from arch/x86/include/asm/page.h:13,
from arch/x86/include/asm/processor.h:17,
from include/linux/mutex.h:19,
from include/linux/notifier.h:13,
from include/linux/clk.h:17,
from drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:14:
drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c: In function 'dwc_eth_dwmac_probe':
>> drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:116:9: error: incompatible type for argument 1 of '__builtin_memset'
memset(stmmac_res, 0, sizeof(struct stmmac_resources));
^
arch/x86/include/asm/string_32.h:325:46: note: in definition of macro 'memset'
#define memset(s, c, count) __builtin_memset(s, c, count)
^
drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:116:9: note: expected 'void *' but argument is of type 'struct stmmac_resources'
memset(stmmac_res, 0, sizeof(struct stmmac_resources));
^
arch/x86/include/asm/string_32.h:325:46: note: in definition of macro 'memset'
#define memset(s, c, count) __builtin_memset(s, c, count)
^vim +/__builtin_memset +116 drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c
8 * published by the Free Software Foundation.
9 *
10 * You should have received a copy of the GNU General Public License
11 * along with this program. If not, see <http://www.gnu.org/licenses/>.
12 */
13
> 14 #include <linux/clk.h>
15 #include <linux/clk-provider.h>
16 #include <linux/device.h>
17 #include <linux/ethtool.h>
18 #include <linux/io.h>
19 #include <linux/ioport.h>
20 #include <linux/module.h>
21 #include <linux/of_net.h>
22 #include <linux/mfd/syscon.h>
23 #include <linux/platform_device.h>
24 #include <linux/stmmac.h>
25
26 #include "stmmac_platform.h"
27
28 static int dwc_eth_dwmac_config_dt(struct platform_device *pdev,
29 struct plat_stmmacenet_data *plat_dat)
30 {
31 struct device_node *np = pdev->dev.of_node;
32 u32 burst_map = 0;
33 u32 bit_index = 0;
34 u32 a_index = 0;
35
36 if (!plat_dat->axi) {
37 plat_dat->axi = kzalloc(sizeof(struct stmmac_axi), GFP_KERNEL);
38
39 if (!plat_dat->axi)
40 return -ENOMEM;
41 }
42
43 plat_dat->axi->axi_lpi_en = of_property_read_bool(np, "snps,en-lpi");
44 if (of_property_read_u32(np, "snps,write-requests",
45 &plat_dat->axi->axi_wr_osr_lmt)) {
46 /**
47 * Since the register has a reset value of 1, if property
48 * is missing, default to 1.
49 */
50 plat_dat->axi->axi_wr_osr_lmt = 1;
51 } else {
52 /**
53 * If property exists, to keep the behavior from dwc_eth_qos,
54 * subtract one after parsing.
55 */
56 plat_dat->axi->axi_wr_osr_lmt--;
57 }
58
59 if (of_property_read_u32(np, "read,read-requests",
60 &plat_dat->axi->axi_rd_osr_lmt)) {
61 /**
62 * Since the register has a reset value of 1, if property
63 * is missing, default to 1.
64 */
65 plat_dat->axi->axi_rd_osr_lmt = 1;
66 } else {
67 /**
68 * If property exists, to keep the behavior from dwc_eth_qos,
69 * subtract one after parsing.
70 */
71 plat_dat->axi->axi_rd_osr_lmt--;
72 }
73 of_property_read_u32(np, "snps,burst-map", &burst_map);
74
75 /* converts burst-map bitmask to burst array */
76 for (bit_index = 0; bit_index < 7; bit_index++) {
77 if (burst_map & (1 << bit_index)) {
78 switch (bit_index) {
79 case 0:
80 plat_dat->axi->axi_blen[a_index] = 4; break;
81 case 1:
82 plat_dat->axi->axi_blen[a_index] = 8; break;
83 case 2:
84 plat_dat->axi->axi_blen[a_index] = 16; break;
85 case 3:
86 plat_dat->axi->axi_blen[a_index] = 32; break;
87 case 4:
88 plat_dat->axi->axi_blen[a_index] = 64; break;
89 case 5:
90 plat_dat->axi->axi_blen[a_index] = 128; break;
91 case 6:
92 plat_dat->axi->axi_blen[a_index] = 256; break;
93 default:
94 break;
95 }
96 a_index++;
97 }
98 }
99
100 /* dwc-qos needs GMAC4, AAL, TSO and PMT */
101 plat_dat->has_gmac4 = 1;
102 plat_dat->dma_cfg->aal = 1;
103 plat_dat->tso_en = 1;
104 plat_dat->pmt = 1;
105
106 return 0;
107 }
108
109 static int dwc_eth_dwmac_probe(struct platform_device *pdev)
110 {
111 struct plat_stmmacenet_data *plat_dat;
112 struct stmmac_resources stmmac_res;
113 struct resource *res;
114 int ret;
115
> 116 memset(stmmac_res, 0, sizeof(struct stmmac_resources)); 117
118 /**
119 * Since stmmac_platform supports name IRQ only, basic platform
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation