devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: grygorii.strashko@ti.com
Cc: rogerq@ti.com, t-kristo@ti.com, netdev@vger.kernel.org,
	devicetree@vger.kernel.org, robh+dt@kernel.org,
	peter.ujfalusi@ti.com, nsekhar@ti.com,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next 5/9] net: ethernet: ti: introduce am65x/j721e gigabit eth subsystem driver
Date: Sun, 23 Feb 2020 21:06:20 -0800 (PST)	[thread overview]
Message-ID: <20200223.210620.497537969860161356.davem@davemloft.net> (raw)
In-Reply-To: <20200222155752.22021-6-grygorii.strashko@ti.com>

From: Grygorii Strashko <grygorii.strashko@ti.com>
Date: Sat, 22 Feb 2020 17:57:48 +0200

> +/**
> + * struct am65_cpsw_regdump_hdr - regdump record header
> + *
> + * @module_id: CPSW module ID
> + * @len: CPSW module registers space length in u32
> + */
> +
> +struct am65_cpsw_regdump_hdr {
> +	u32 module_id;
> +	u32 len;
> +} __packed;

I see no reason for this __packed attribute, please remove it.

> +void am65_cpsw_nuss_adjust_link(struct net_device *ndev)
> +{
> +	struct am65_cpsw_port *port = am65_ndev_to_port(ndev);
> +	struct am65_cpsw_common *common = am65_ndev_to_common(ndev);
> +	struct phy_device *phy = port->slave.phy;
> +	u32 mac_control = 0;

Please order the local variables in reverse christmas tree order,
thank you.

> +static void am65_cpsw_nuss_ndo_slave_set_rx_mode(struct net_device *ndev)
> +{
> +	struct am65_cpsw_port *port = am65_ndev_to_port(ndev);
> +	struct am65_cpsw_common *common = am65_ndev_to_common(ndev);
> +	u32 port_mask;
> +	bool promisc;

Likewise.

> +static int am65_cpsw_nuss_rx_push(struct am65_cpsw_common *common,
> +				  struct sk_buff *skb)
> +{
> +	struct cppi5_host_desc_t *desc_rx;
> +	struct am65_cpsw_rx_chn *rx_chn = &common->rx_chns;
> +	struct device *dev = common->dev;
> +	dma_addr_t desc_dma;
> +	dma_addr_t buf_dma;
> +	u32 pkt_len = skb_tailroom(skb);
> +	void *swdata;

Likewsie.

And so on, and so forth, for your entire submission.

Thank you.

  reply	other threads:[~2020-02-24  5:06 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-22 15:57 [PATCH net-next 0/9] net: ethernet: ti: add networking support for k3 am65x/j721e soc Grygorii Strashko
2020-02-22 15:57 ` [PATCH net-next 1/9] net: ethernet: ti: ale: fix seeing unreg mcast packets with promisc and allmulti disabled Grygorii Strashko
2020-02-22 15:57 ` [PATCH net-next 2/9] net: ethernet: ti: ale: add support for mac-only mode Grygorii Strashko
2020-02-22 15:57 ` [PATCH net-next 3/9] net: ethernet: ti: ale: am65: add support for default thread cfg Grygorii Strashko
2020-02-22 15:57 ` [PATCH net-next 4/9] dt-binding: ti: am65x: document mcu cpsw nuss Grygorii Strashko
2020-02-24 18:38   ` Rob Herring
2020-02-22 15:57 ` [PATCH net-next 5/9] net: ethernet: ti: introduce am65x/j721e gigabit eth subsystem driver Grygorii Strashko
2020-02-24  5:06   ` David Miller [this message]
2020-02-22 15:57 ` [PATCH net-next 6/9] arm64: dts: ti: k3-am65-mcu: add cpsw nuss node Grygorii Strashko
2020-02-22 15:57 ` [PATCH net-next 7/9] arm64: dts: k3-am654-base-board: add mcu cpsw nuss pinmux and phy defs Grygorii Strashko
2020-02-22 15:57 ` [PATCH net-next 8/9] arm64: dts: ti: k3-j721e-mcu: add mcu cpsw nuss node Grygorii Strashko
2020-02-22 15:57 ` [PATCH net-next 9/9] arm64: dts: ti: k3-j721e-common-proc-board: add mcu cpsw nuss pinmux and phy defs Grygorii Strashko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200223.210620.497537969860161356.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=grygorii.strashko@ti.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=nsekhar@ti.com \
    --cc=peter.ujfalusi@ti.com \
    --cc=robh+dt@kernel.org \
    --cc=rogerq@ti.com \
    --cc=t-kristo@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).