Bug 236624 - Beaglebone Black: cpsw device does not load on FreeBSD 13.0-CURRENT
Summary: Beaglebone Black: cpsw device does not load on FreeBSD 13.0-CURRENT
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: arm (show other bugs)
Version: CURRENT
Hardware: arm Any
: --- Affects Some People
Assignee: Ed Maste
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-19 00:55 UTC by Gerald Aryeetey
Modified: 2019-04-17 17:19 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gerald Aryeetey 2019-03-19 00:55:21 UTC
As per: https://lists.freebsd.org/pipermail/freebsd-arm/2019-February/019420.html

The cpsw device doesn't load from the FDT which causes panics when trying to boot over NFS.
Comment 1 commit-hook freebsd_committer freebsd_triage 2019-04-03 21:02:23 UTC
A commit references this bug:

Author: emaste
Date: Wed Apr  3 21:01:54 UTC 2019
New revision: 345855
URL: https://svnweb.freebsd.org/changeset/base/345855

Log:
  cpsw: use `phy-handle` in FDT to find PHY address

  In r337703 DTS files were updated to Linux 4.18, including Linux commit
  4d8b032d3c03f4e9788a18bbb51b10e6c9e8a56b which removed the `phy_id`
  property from am335x-bone-common (as the property was deprecated).

  Use `phy-handle` via fdt_get_phyaddr, keeping the existing code as a
  fallback for old DTBs.

  PR:		236624
  Submitted by:	manu, Gerald Aryeetey <aryeeteygerald_rogers.com>
  Reported by:	Gerald Aryeetey
  Reviewed by:	manu
  MFC after:	2 weeks
  Sponsored by:	The FreeBSD Foundation
  Differential Revision:	https://reviews.freebsd.org/D19814

Changes:
  head/sys/arm/ti/cpsw/if_cpsw.c
  head/sys/dev/fdt/fdt_common.c
Comment 2 commit-hook freebsd_committer freebsd_triage 2019-04-17 17:19:40 UTC
A commit references this bug:

Author: emaste
Date: Wed Apr 17 17:19:20 UTC 2019
New revision: 346325
URL: https://svnweb.freebsd.org/changeset/base/346325

Log:
  MFC r345855: cpsw: use `phy-handle` in FDT to find PHY address

  In r337703 DTS files were updated to Linux 4.18, including Linux commit
  4d8b032d3c03f4e9788a18bbb51b10e6c9e8a56b which removed the `phy_id`
  property from am335x-bone-common (as the property was deprecated).

  Use `phy-handle` via fdt_get_phyaddr, keeping the existing code as a
  fallback for old DTBs.

  PR:		236624
  Submitted by:	manu, Gerald Aryeetey <aryeeteygerald_rogers.com>
  Reported by:	Gerald Aryeetey
  Reviewed by:	manu
  Sponsored by:	The FreeBSD Foundation

Changes:
_U  stable/12/
  stable/12/sys/arm/ti/cpsw/if_cpsw.c
  stable/12/sys/dev/fdt/fdt_common.c