RE: [PATCH net-next v4 5/5] net: stmmac: add EHL SGMII 1Gbps PCI info and PCI ID

From: Jose Abreu
Date: Wed May 29 2019 - 06:32:15 EST


From: Voon Weifeng <weifeng.voon@xxxxxxxxx>
Date: Wed, May 29, 2019 at 17:58:27

> + plat->axi = devm_kzalloc(&pdev->dev, sizeof(*plat->axi),
> + GFP_KERNEL);
> + if (!plat->axi)
> + return -ENOMEM;

Missing line break here.

> + plat->axi->axi_lpi_en = 0;
> + plat->axi->axi_xit_frm = 0;
> + plat->axi->axi_wr_osr_lmt = 0;

This is not a valid value.

> + plat->axi->axi_rd_osr_lmt = 2;
> + plat->axi->axi_blen[0] = 4;
> + plat->axi->axi_blen[1] = 8;
> + plat->axi->axi_blen[2] = 16;
> +
> + /* Set default value for multicast hash bins */
> + plat->multicast_filter_bins = HASH_TABLE_SIZE;
> +
> + /* Set default value for unicast filter entries */
> + plat->unicast_filter_entries = 1;
> +
> + /* Set the maxmtu to a default of JUMBO_LEN */
> + plat->maxmtu = JUMBO_LEN;
> +
> + /* Set 32KB fifo size as the advertised fifo size in
> + * the HW features is not the same as the HW implementation
> + */

Hmm ? I'm curious, can you explain ?

> + plat->tx_fifo_size = 32768;
> + plat->rx_fifo_size = 32768;
> +
> + return 0;
> +}
> +
> +static int ehl_sgmii1g_data(struct pci_dev *pdev,
> + struct plat_stmmacenet_data *plat)
> +{
> + int ret;
> +
> + /* Set common default data first */
> + ret = ehl_common_data(pdev, plat);
> +

Remove the extra line break please.

> + if (ret)
> + return ret;
> +