Re: [PATCH net-next 1/1] net: phy: Refactor mediatek-ge-soc.c for clarity and correctness
From: SkyLake Huang (黃啟澤)
Date: Tue Oct 15 2024 - 13:19:23 EST
On Mon, 2024-10-14 at 09:18 +0100, Simon Horman wrote:
>
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
> On Mon, Oct 14, 2024 at 12:05:21PM +0800, Sky Huang wrote:
> > From: "SkyLake.Huang" <skylake.huang@xxxxxxxxxxxx>
> >
> > This patch does the following clean-up:
> > 1. Fix spelling errors and rearrange variables with reverse
> > Xmas tree order.
> > 2. Shrink mtk-ge-soc.c line wrapping to 80 characters.
> > 3. Propagate error code correctly in cal_cycle().
> > 4. Fix some functions with FIELD_PREP()/FIELD_GET().
> > 5. Remove unnecessary outer parens of supported_triggers var.
> >
> > Signed-off-by: SkyLake.Huang <skylake.huang@xxxxxxxxxxxx>
> > ---
> > This patch is derived from Message ID:
> > 20241004102413.5838-9-SkyLake.Huang@xxxxxxxxxxxx
>
> Hi Sky,
>
> I think this patch is trying to do two many things (at least 5 are
> listed
> above). Please consider breaking this up into separate patches,
> perhaps
> one for each of the points above.
>
> Also, I think it would be best to drop the following changes unless
> you are
> touching those lines for some other reason [1] or are preparing to do
> so:
>
> * xmas tree
> * 80 character lines
> * parentheses updates
>
> [1]
> https://docs.kernel.org/process/maintainer-netdev.html#clean-up-patches
Hi Simon,
Reverse Xmas tree style & 80 char preferences come from your advise
in
https://lore.kernel.org/all/20240530034844.11176-6-SkyLake.Huang@xxxxxxxxxxxx/
Parens removing comes from Daniel's advise in
https://lore.kernel.org/all/20240701105417.19941-14-SkyLake.Huang@xxxxxxxxxxxx/
Because previous patchset(
https://lore.kernel.org/all/20240701105417.19941-1-SkyLake.Huang@xxxxxxxxxxxx/
) is too large, I guess it's better to commit this change first so that
I can handle the rest. And this should be "some other reason"?
And since this patch is simple clean-ups, is it necessary to separate
it?
BRs,
Sky