All of lore.kernel.org
 help / color / mirror / Atom feed
From: <markus.stockhausen@gmx.de>
To: "'Krzysztof Kozlowski'" <krzk@kernel.org>,
	<linux-phy@lists.infradead.org>,
	<chris.packham@alliedtelesis.co.nz>
Subject: AW: [PATCH v2 2/3] phy: Realtek Otto SerDes driver
Date: Fri, 11 Oct 2024 18:10:48 +0200	[thread overview]
Message-ID: <000a01db1bf8$232fb4d0$698f1e70$@gmx.de> (raw)
In-Reply-To: <e4ab7c7f-b5a1-4507-add7-862c18b09995@kernel.org>

> -----Ursprüngliche Nachricht-----
> Von: Krzysztof Kozlowski <krzk@kernel.org> 
> Gesendet: Montag, 7. Oktober 2024 21:32
> An: Markus Stockhausen <markus.stockhausen@gmx.de>; linux-phy@lists.infradead.org; chris.packham@alliedtelesis.co.nz; devicetree@vger.kernel.org
> Betreff: Re: [PATCH v2 2/3] phy: Realtek Otto SerDes driver
> ..
> > +static ssize_t rtsds_dbg_reset_write(struct file *file, const char __user *userbuf,
> > +				size_t count, loff_t *ppos)
> > +{
> > +	struct seq_file *seqf = file->private_data;
> > +	struct rtsds_macro *macro = dev_get_drvdata(seqf->private);
> > +	struct rtsds_ctrl *ctrl = macro->ctrl;
> > +	int ret, reset, sid = macro->sid;
> > +
> > +	ret = kstrtou32_from_user(userbuf, count, 10, &reset);
> > +	if (ret || reset != 1)
> > +		return ret;
> > +
> > +	rtsds_phy_reset_int(ctrl, sid);
> > +
> > +	return count;
> > +}
> > +DEFINE_SHOW_STORE_ATTRIBUTE(rtsds_dbg_reset);
>
> That's not a debugfs interface. Drop reset.
>

Hi Krzysztof,

thanks for all your feedback and kickstarting me into this all. I went back to 
the drawing board. A overhauled version will be available over the weekend.
Regarding the debug interface I have a question left:

The current state of exploration and understanding of the four different SoCs
boils down that 3 debug writing functions will improve further testing and
development very much.

- reset SerDes -> used to compensate for link hangs (because of wrong firmware)
- change mode -> I will change it so it will only accept supported modes
- modify registers -> I can go without that.

One may ask why? There are a lot of different devices out there and I have only
one of each series. So if the driver provides this debugging flexibility users
(especially of OpenWrt) can assist in analyzing/testing without complete rebuilds.

What will be the way forward here without dropping the code?

Last but not least: I expect the v3 version to have ~1/3 of the code changed.
Shall I still give this a v3 tag?

Best regards.

Markus


-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

  reply	other threads:[~2024-10-11 16:11 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-07 16:36 [PATCH v2 0/3] phy: Realtek Otto SerDes: add new driver Markus Stockhausen
2024-10-07 16:36 ` Markus Stockhausen
2024-10-07 16:36 ` [PATCH v2 1/3] dt-bindings: phy: add realtek,otto-serdes PHY binding Markus Stockhausen
2024-10-07 16:36   ` Markus Stockhausen
2024-10-07 18:17   ` Rob Herring (Arm)
2024-10-07 18:17     ` Rob Herring (Arm)
2024-10-07 19:26   ` Krzysztof Kozlowski
2024-10-07 19:26     ` Krzysztof Kozlowski
2024-10-08  5:38     ` AW: " markus.stockhausen
2024-10-08  5:38       ` markus.stockhausen
2024-10-08  6:17       ` Krzysztof Kozlowski
2024-10-08  6:17         ` Krzysztof Kozlowski
2024-10-08  6:56         ` AW: " markus.stockhausen
2024-10-08  6:56           ` markus.stockhausen
2024-10-08  8:32           ` Krzysztof Kozlowski
2024-10-08  8:32             ` Krzysztof Kozlowski
2024-10-08  9:27             ` AW: " markus.stockhausen
2024-10-08  9:27               ` markus.stockhausen
2024-10-16 15:30     ` markus.stockhausen
2024-10-16 15:30       ` markus.stockhausen
2024-10-17  6:15       ` Krzysztof Kozlowski
2024-10-17  6:15         ` Krzysztof Kozlowski
2024-10-07 19:30   ` Rob Herring
2024-10-07 19:30     ` Rob Herring
2024-10-08 12:27     ` AW: " markus.stockhausen
2024-10-08 12:27       ` markus.stockhausen
2024-10-08  7:04   ` Krzysztof Kozlowski
2024-10-08  7:04     ` Krzysztof Kozlowski
2024-10-08  7:06   ` Krzysztof Kozlowski
2024-10-08  7:06     ` Krzysztof Kozlowski
2024-10-07 16:36 ` [PATCH v2 2/3] phy: Realtek Otto SerDes driver Markus Stockhausen
2024-10-07 16:36   ` Markus Stockhausen
2024-10-07 19:32   ` Krzysztof Kozlowski
2024-10-07 19:32     ` Krzysztof Kozlowski
2024-10-11 16:10     ` markus.stockhausen [this message]
2024-10-11 16:19       ` AW: " Krzysztof Kozlowski
2024-10-07 16:36 ` [PATCH v2 3/3] phy: Integrate Realtek Otto SerDes driver into build system Markus Stockhausen
2024-10-07 16:36   ` Markus Stockhausen
2024-10-07 19:27   ` Krzysztof Kozlowski
2024-10-07 19:27     ` Krzysztof Kozlowski
2024-10-08  6:38   ` kernel test robot
2024-10-08  6:38     ` kernel test robot
2024-10-08  7:20   ` kernel test robot
2024-10-08  7:20     ` kernel test robot
2024-10-08  8:21   ` kernel test robot
2024-10-08  8:21     ` kernel test robot

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='000a01db1bf8$232fb4d0$698f1e70$@gmx.de' \
    --to=markus.stockhausen@gmx.de \
    --cc=chris.packham@alliedtelesis.co.nz \
    --cc=krzk@kernel.org \
    --cc=linux-phy@lists.infradead.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.