mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: Marek Vasut <marex@nabladev.com>
Cc: netdev@vger.kernel.org, davem@davemloft.net,
	andrew+netdev@lunn.ch, edumazet@google.com, pabeni@redhat.com,
	bigeasy@linutronix.de, yiconghui@gmail.com,
	kernel@dh-electronics.com, linux-kernel@vger.kernel.org
Subject: Re: [net,PATCH v1] net: ks8851: Fix receiver error in 100BASE-TX mode following software power-down
Date: Fri, 4 Sep 2026 18:28:12 -0700	[thread overview]
Message-ID: <20260904182812.303b91c0@kernel.org> (raw)
In-Reply-To: <f7149e71-2c32-4f53-86c9-d1c586218fc2@nabladev.com>

On Sat, 5 Sep 2026 03:16:12 +0200 Marek Vasut wrote:
> On 9/4/26 2:37 AM, Jakub Kicinski wrote:
> > This is an AI-generated review of your patch.  
> 
> Sigh, a wall of generated text.

I'd feel bad if most of the patches I have to suffer thru
these days weren't entirely YOLO'ed slop where every lines comes 
with a 15 line comment :/ (not speaking about your patch, just
a general vent)

> >> @@ -506,8 +503,6 @@ static int ks8851_net_stop(struct net_device *dev)
> >>   	/* shutdown TX process */
> >>   	ks8851_wrreg16(ks, KS_TXCR, 0x0000);
> >>   
> >> -	/* set powermode to soft power down to save power */
> >> -	ks8851_set_powermode(ks, PMECR_PM_SOFTDOWN);
> >>   	ks8851_unlock(ks);  
> > 
> > [Severity: Low]
> > Related to the above: the kernel-doc for ks8851_net_stop() just above this
> > function still promises the low power transition that is being removed here:
> > 
> > 	/**
> > 	 * ks8851_net_stop - close network device
> > 	 * @dev: The device being closed.
> > 	 *
> > 	 * Called to close down a network device which has been active. Cancel any
                                                vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
> > 	 * work, shutdown the RX and TX process and then place the chip into a low
           vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvXXXX^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > 	 * power state whilst it is not being used.\
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > 	 */
> > 
> > The post-patch body only masks IER/ISR, zeroes RXCR1/TXCR, drains ks->txq
> > and calls free_irq(), with no PMECR access left. Should that last sentence
> > be dropped or reworded to mention the errata, so readers of
> > ks8851_suspend()->ks8851_net_stop() are not told a low power transition
> > happens?  
> 
> What exactly should I adjust in V2 ?

Drop the part of the sentence in the ks8851_net_stop() kdoc that says
we'll put the device in low power mode?

  reply	other threads:[~2026-09-05  1:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-01 17:39 Marek Vasut
2026-09-01 19:47 ` Sebastian Andrzej Siewior
2026-09-04  0:37 ` Jakub Kicinski
2026-09-05  1:16   ` Marek Vasut
2026-09-05  1:28     ` Jakub Kicinski [this message]
2026-09-05 13:01       ` Marek Vasut

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=20260904182812.303b91c0@kernel.org \
    --to=kuba@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=bigeasy@linutronix.de \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=kernel@dh-electronics.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marex@nabladev.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=yiconghui@gmail.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

all inboxes | Powered by JetHome®