Skip to content

reset: make optional functions

Dinh Nguyen stable 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 5 repliesIn review
  2. v16 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6reset: make optional functions really optionaldrivers/reset/core.c include/linux/reset.h+63 -300 replies
2/6reset: core: fix reset_control_putdrivers/reset/core.c+1 -10 replies
3/6reset: fix optional reset_control_get stubs to return NULLinclude/linux/reset.h+2 -70 replies
4/6reset: add exported __reset_control_get, return NULL if optionaldrivers/reset/core.c include/linux/reset.h+30 -140 replies
5/6reset: make device_reset_optional() really optionaldrivers/reset/core.c include/linux/reset.h+18 -190 replies
6/6reset: remove remaining WARN_ON() in <linux/reset.h>include/linux/reset.h+0 -60 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchAndrzej HajdaAndy Shevchenko
1/6
2/6
3/6T-b R-b
4/6T-b
5/6
6/6

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

Read the v2 thread

Cover letter [PATCHv2 for v4.19-stable 0/6] reset: make optional functions

Hi Greg/Sasha:

Please apply this series to v4.9.y stable tree. The reason is that v4.9-stable branch has this patch for stmmac ethernet driver:

"6f37f7b62baa net: stmmac: socfpga: add additional ocp reset line for Stratix10"

This patch calls devm_reset_control_get_optional(). This call ultimately fails without this reset patch, becuase the call to devm_reset_control_get_optional() is returning an error code, which causes the ethernet driver to fail to load. This patch fixes the call to *_get_optional_* in that any call to the reset driver with *_optional_* will return 0 instead of an error value.

Patches 2-6 are needed as well because those patches fix patch 1/6.

Thanks..

Dinh

Heiner Kallweit (1):
reset: core: fix reset_control_put

Masahiro Yamada (2):
reset: make device_reset_optional() really optional
reset: remove remaining WARN_ON() in <linux/reset.h>

Philipp Zabel (2):
reset: fix optional reset_control_get stubs to return NULL
reset: add exported __reset_control_get, return NULL if optional

Ramiro Oliveira (1):
reset: make optional functions really optional

 drivers/reset/core.c  | 79 +++++++++++++++++++++++++++----------
 include/linux/reset.h | 92 +++++++++++++++++++++----------------------
 2 files changed, 104 insertions(+), 67 deletions(-)
Signature · 1 line
2.17.1