Skip to content

phy: phy-can-transceiver: Ad-hoc cleanups and refactoring

Andy Shevchenko linux-can linux-phy lkml 5 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest6 patches 1 replyApplied
  2. v45 patches 1 replySuperseded
  3. v34 patches 4 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v24 patches12 repliesSuperseded
v14 patches6 repliesSuperseded

Changes in v5 from the cover letter

- fixed typo due to rebasing of patch 2 (Sashiko)
- added patch 5 to slightly improve maintainability

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/6phy: phy-can-transceiver: Check driver match and driver data against NULLdrivers/phy/phy-can-transceiver.c+3 -00 replies
2/6phy: phy-can-transceiver: use device_get_match_data()drivers/phy/phy-can-transceiver.c+4 -60 replies
3/6phy: phy-can-transceiver: Move OF ID table closer to their userdrivers/phy/phy-can-transceiver.c+29 -290 replies
4/6phy: phy-can-transceiver: Don't check for specific errors when parsing propertiesdrivers/phy/phy-can-transceiver.c+13 -40 replies
5/6phy: phy-can-transceiver: Decouple assignment and definition in probedrivers/phy/phy-can-transceiver.c+3 -10 replies
6/6phy: phy-can-transceiver: Drop unused includedrivers/phy/phy-can-transceiver.c+1 -20 replies

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by.

PatchJosua Mayer
1/6
2/6R-b
3/6
4/6
5/6
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/6] phy: phy-can-transceiver: Ad-hoc cleanups and refactoring

The driver does two things that need to be addressed:
- includes subject to remove gpio.h
- checks for error code from device property APIs when it can be done in a robust way

This series addresses the above and adds a couple of additional refactoring.

On top of that it fixes potential NULL pointer dereference when driver_override is in use.

Changelog v5:
- fixed typo due to rebasing of patch 2 (Sashiko)
- added patch 5 to slightly improve maintainability

v4: [email protected]

Changelog v4:
- prepended the series with match and driver data check (Sashiko, Vinod)
- made the max_bitrate==0 warning only when property is present (Sashiko, Vinod)
- rebased the rest accordingly

v3: [email protected]

Changelog v3:
- fixed commit message in patch 1 (Josua)
- dropped stray change (Vinod)
- collected tags (Josua)

v2: [email protected]

Changelog v2:
- rebased on top of the latest changes in the driver
- Cc'ed to Ulf and Josua due to above
- elaborated dropping of_node parameter (Vladimir)

v1: [email protected]

*** BLURB HERE ***

Andy Shevchenko (6):
phy: phy-can-transceiver: Check driver match and driver data against
NULL
phy: phy-can-transceiver: use device_get_match_data()
phy: phy-can-transceiver: Move OF ID table closer to their user
phy: phy-can-transceiver: Don't check for specific errors when parsing
properties
phy: phy-can-transceiver: Decouple assignment and definition in probe
phy: phy-can-transceiver: Drop unused include

 drivers/phy/phy-can-transceiver.c | 93 +++++++++++++++++--------------
 1 file changed, 52 insertions(+), 41 deletions(-)
Signature · 1 line
2.50.1