mbox series

[0/7] realtek: add HPE 1920 support

Message ID 20220723205319.3326374-1-jan@3e8.eu
Headers show
Series realtek: add HPE 1920 support | expand

Message

Jan Hoffmann July 23, 2022, 8:53 p.m. UTC
This adds support for three switches from the HPE 1920 series. It has 
been tested on HPE 1920-8G and HPE 1920-16G. Support for HPE 1920-24G
is also included, as it uses the same board as the 16-port model.

The patch series depends on the firmware-utils patch adding the
mkh3cimg and mkh3cvfs tools.

Jan Hoffmann (7):
  realtek: rtl83xx-phy: fix RTL8214FC media change
  realtek: rtl83xx-phy: decouple RTL8214FC media change and power config
  realtek: add SFP support for RTL8214FC PHY
  realtek: clean up rtl838x MDIO busy wait loop
  kernel: mtdsplit: add support for H3C VFS filesystem
  tools: add 7z host package
  realtek: add support for HPE 1920 series

 target/linux/generic/config-5.10              |   1 +
 target/linux/generic/config-5.15              |   1 +
 .../files/drivers/mtd/mtdsplit/Kconfig        |   5 +
 .../files/drivers/mtd/mtdsplit/Makefile       |   1 +
 .../drivers/mtd/mtdsplit/mtdsplit_h3c_vfs.c   | 170 ++++++++++++++++++
 .../realtek/base-files/etc/board.d/02_network |  18 +-
 .../realtek/dts-5.10/rtl8380_hpe_1920-8g.dts  | 113 ++++++++++++
 .../realtek/dts-5.10/rtl8382_hpe_1920-16g.dts |  48 +++++
 .../realtek/dts-5.10/rtl8382_hpe_1920-24g.dts |  68 +++++++
 .../realtek/dts-5.10/rtl8382_hpe_1920.dtsi    | 117 ++++++++++++
 target/linux/realtek/dts-5.10/rtl838x.dtsi    |   7 +
 .../realtek/dts-5.10/rtl838x_hpe_1920.dtsi    |  96 ++++++++++
 .../drivers/net/dsa/rtl83xx/rtl838x.c         |  37 ++--
 .../files-5.10/drivers/net/phy/rtl83xx-phy.c  | 146 +++++++++------
 target/linux/realtek/image/Makefile           |  49 +++++
 target/linux/realtek/image/rtl838x.mk         |  24 +++
 target/linux/realtek/rtl838x/config-5.10      |   3 +
 tools/7z/Makefile                             |  36 ++++
 tools/Makefile                                |   1 +
 19 files changed, 871 insertions(+), 70 deletions(-)
 create mode 100644 target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_h3c_vfs.c
 create mode 100644 target/linux/realtek/dts-5.10/rtl8380_hpe_1920-8g.dts
 create mode 100644 target/linux/realtek/dts-5.10/rtl8382_hpe_1920-16g.dts
 create mode 100644 target/linux/realtek/dts-5.10/rtl8382_hpe_1920-24g.dts
 create mode 100644 target/linux/realtek/dts-5.10/rtl8382_hpe_1920.dtsi
 create mode 100644 target/linux/realtek/dts-5.10/rtl838x_hpe_1920.dtsi
 create mode 100644 tools/7z/Makefile

Comments

Jan Hoffmann July 28, 2022, 1:10 p.m. UTC | #1
> This adds support for three switches from the HPE 1920 series. It has
> been tested on HPE 1920-8G and HPE 1920-16G. Support for HPE 1920-24G
> is also included, as it uses the same board as the 16-port model.
> 
> The patch series depends on the firmware-utils patch adding the
> mkh3cimg and mkh3cvfs tools.

This patch series has just been merged. However, as mentioned in the 
cover letter, it depends on new tools in firmware-utils. As the 
corresponding patch series ("add tools for H3C devices") hasn't been 
merged yet, this won't actually build.

Please tell me if I should have made this dependency clearer in any way, 
so I can avoid similar situations in the future.


Jan
Sander Vanheule July 28, 2022, 1:27 p.m. UTC | #2
On Thu, 2022-07-28 at 15:10 +0200, Jan Hoffmann wrote:
> > This adds support for three switches from the HPE 1920 series. It has
> > been tested on HPE 1920-8G and HPE 1920-16G. Support for HPE 1920-24G
> > is also included, as it uses the same board as the 16-port model.
> > 
> > The patch series depends on the firmware-utils patch adding the
> > mkh3cimg and mkh3cvfs tools.
> 
> This patch series has just been merged. However, as mentioned in the 
> cover letter, it depends on new tools in firmware-utils. As the 
> corresponding patch series ("add tools for H3C devices") hasn't been 
> merged yet, this won't actually build.

I've pushed a revert commit to avoid breaking the builds.

Can someone explain why this whole series needed to be merged so quickly? These *7* patches have
only been posted on Saturday, and testing was performed for patches 2-4. At least patches 5-7
could've remained unmerged awaiting some further comments.

> 
> Please tell me if I should have made this dependency clearer in any way, 
> so I can avoid similar situations in the future.

It was plainly stated in the cover letter, I don't think you could have been any clearer about this
dependency.

Best,
Sander
Daniel Golle July 28, 2022, 2:51 p.m. UTC | #3
On Thu, Jul 28, 2022 at 03:27:14PM +0200, Sander Vanheule wrote:
> On Thu, 2022-07-28 at 15:10 +0200, Jan Hoffmann wrote:
> > > This adds support for three switches from the HPE 1920 series. It has
> > > been tested on HPE 1920-8G and HPE 1920-16G. Support for HPE 1920-24G
> > > is also included, as it uses the same board as the 16-port model.
> > > 
> > > The patch series depends on the firmware-utils patch adding the
> > > mkh3cimg and mkh3cvfs tools.
> > 
> > This patch series has just been merged. However, as mentioned in the 
> > cover letter, it depends on new tools in firmware-utils. As the 
> > corresponding patch series ("add tools for H3C devices") hasn't been 
> > merged yet, this won't actually build.
> 
> I've pushed a revert commit to avoid breaking the builds.
> 
> Can someone explain why this whole series needed to be merged so quickly? These *7* patches have
> only been posted on Saturday, and testing was performed for patches 2-4. At least patches 5-7
> could've remained unmerged awaiting some further comments.

As 5-7 depend on the actual device for testing they are unlikely to
receive great amounts of feedback, but are also unlikely to break
anything.

> 
> > 
> > Please tell me if I should have made this dependency clearer in any way, 
> > so I can avoid similar situations in the future.
> 
> It was plainly stated in the cover letter, I don't think you could have been any clearer about this
> dependency.

Yes, it was absolutely clear and I had it in my local firmware-utils
tree for which I used CONFIG_SRC_TREE_OVERRIDE.
The fact that the cover letter doesn't become part of git history was
part of the reason why I forgot about that before pushing.
Sander Vanheule July 28, 2022, 3:11 p.m. UTC | #4
On Thu, 2022-07-28 at 16:51 +0200, Daniel Golle wrote:
> On Thu, Jul 28, 2022 at 03:27:14PM +0200, Sander Vanheule wrote:
> > On Thu, 2022-07-28 at 15:10 +0200, Jan Hoffmann wrote:
> > > > This adds support for three switches from the HPE 1920 series. It has
> > > > been tested on HPE 1920-8G and HPE 1920-16G. Support for HPE 1920-24G
> > > > is also included, as it uses the same board as the 16-port model.
> > > > 
> > > > The patch series depends on the firmware-utils patch adding the
> > > > mkh3cimg and mkh3cvfs tools.
> > > 
> > > This patch series has just been merged. However, as mentioned in the 
> > > cover letter, it depends on new tools in firmware-utils. As the 
> > > corresponding patch series ("add tools for H3C devices") hasn't been 
> > > merged yet, this won't actually build.
> > 
> > I've pushed a revert commit to avoid breaking the builds.
> > 
> > Can someone explain why this whole series needed to be merged so quickly? These *7* patches have
> > only been posted on Saturday, and testing was performed for patches 2-4. At least patches 5-7
> > could've remained unmerged awaiting some further comments.
> 
> As 5-7 depend on the actual device for testing they are unlikely to
> receive great amounts of feedback, but are also unlikely to break
> anything.

Well, I started with replying to the firmware-utils changes yesterday. Now those two patches are
merged with still a plethora of errors and warnings from checkpatch.pl, and someone will have to
clean up those files incrementally.

In general, I feel that if anyone thinks patches are good enough without any real  discussion, or is
waiting for changes to be merged, I would strongly prefer that they express this via a public notice
on those patches. At least give people 24h to let you know they still want to review something.

Best,
Sander

> 
> > 
> > > 
> > > Please tell me if I should have made this dependency clearer in any way, 
> > > so I can avoid similar situations in the future.
> > 
> > It was plainly stated in the cover letter, I don't think you could have been any clearer about
> > this
> > dependency.
> 
> Yes, it was absolutely clear and I had it in my local firmware-utils
> tree for which I used CONFIG_SRC_TREE_OVERRIDE.
> The fact that the cover letter doesn't become part of git history was
> part of the reason why I forgot about that before pushing.
> 
>