Skip to content

Use -ENOSYS consistently

Simon Glass u-boot 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest9 patches 0 repliesNew
  2. v29 patches 0 repliesSuperseded
  3. v16 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- Add updates based on feedback from Sean Anderson <[email protected]>

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9dm: core: Document the common error codesdoc/driver-model/design.rst+133 -01 reply
1/9dm: core: Document the common error codes+0 -00 replies
2/9dm: core: Use -ENOSPC in acpi_get_path()drivers/core/acpi.c+1 -10 replies
2/9dm: core: Use -ENOSPC in acpi_get_path()+0 -00 replies
3/9usb: Return -ENOSYS when system call is not availabledrivers/usb/gadget/udc/udc-uclass.c+1 -10 replies
3/9usb: Return -ENOSYS when system call is not available+0 -00 replies
4/9spi: Return -ENOSYS when system call is not availableinclude/spi-mem.h+1 -10 replies
4/9spi: Return -ENOSYS when system call is not available+0 -00 replies
5/9tlv_eeprom: Return -ENOSYS when system call is not availableinclude/tlv_eeprom.h+3 -30 replies
5/9tlv_eeprom: Return -ENOSYS when system call is not available+0 -00 replies
6/9clk: Update drivers to use -EINVALdrivers/clk/aspeed/clk_ast2600.c drivers/clk/clk-hsdk-cgu.c drivers/clk/imx/clk-imx8.c +6 more+17 -170 replies
6/9clk: Update drivers to use -EINVAL+0 -00 replies
7/9clk: Return -ENOSYS when system call is not availabledrivers/clk/clk-composite.c+4 -40 replies
7/9clk: Return -ENOSYS when system call is not available+0 -00 replies
8/9simple-pm-bus: Use -ENOSYS for checking missing system calldrivers/core/simple-pm-bus.c+2 -20 replies
8/9simple-pm-bus: Use -ENOSYS for checking missing system call+0 -00 replies
9/9pinctrl: Return -ENOSYS when system call is not availabledrivers/pinctrl/pinctrl-uclass.c+6 -40 replies
9/9pinctrl: Return -ENOSYS when system call is not available+0 -00 replies

Reviews trailers per patch

8 of 18 patches have a Reviewed-by or Acked-by.

PatchSean AndersonStefan Roese
1/9R-b
1/9R-b
2/9
2/9
3/9
3/9
4/9
4/9
5/9
5/9
6/9A-b A-b R-b R-b
6/9A-b A-b R-b R-b
7/9R-b R-b
7/9R-b R-b
8/9R-b R-b
8/9R-b R-b
9/9
9/9

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

Read the v3 thread

Cover letter [PATCH v3 0/9] Use -ENOSYS consistently

A few places use -ENOTSUPP when they should use -ENOSYS. In two cases both are used. This little series tidies this up and documents the conventions.

Changes in v3:
- Add updates based on feedback from Sean Anderson <[email protected]>

Changes in v2:
- Add a patch to document the common error codes
- Add new patch for acpi_get_path()
- Add new patch to update clk drivers to use -EINVAL

Simon Glass (9):
dm: core: Document the common error codes
dm: core: Use -ENOSPC in acpi_get_path()
usb: Return -ENOSYS when system call is not available
spi: Return -ENOSYS when system call is not available
tlv_eeprom: Return -ENOSYS when system call is not available
clk: Update drivers to use -EINVAL
clk: Return -ENOSYS when system call is not available
simple-pm-bus: Use -ENOSYS for checking missing system call
pinctrl: Return -ENOSYS when system call is not available

 doc/driver-model/design.rst            | 133 +++++++++++++++++++++++++
 drivers/clk/aspeed/clk_ast2600.c       |   2 +-
 drivers/clk/clk-composite.c            |   8 +-
 drivers/clk/clk-hsdk-cgu.c             |   4 +-
 drivers/clk/imx/clk-imx8.c             |   4 +-
 drivers/clk/imx/clk-imx8qm.c           |   6 +-
 drivers/clk/imx/clk-imx8qxp.c          |   6 +-
 drivers/clk/imx/clk-pllv3.c            |   2 +-
 drivers/clk/kendryte/bypass.c          |   2 +-
 drivers/clk/kendryte/clk.c             |   2 +-
 drivers/clk/mvebu/armada-37xx-periph.c |   6 +-
 drivers/core/acpi.c                    |   2 +-
 drivers/core/simple-pm-bus.c           |   4 +-
 drivers/pinctrl/pinctrl-uclass.c       |  10 +-
 drivers/usb/gadget/udc/udc-uclass.c    |   2 +-
 include/spi-mem.h                      |   2 +-
 include/tlv_eeprom.h                   |   6 +-
 17 files changed, 168 insertions(+), 33 deletions(-)
Signature · 1 line
2.31.0.291.g576ba9dcdaf-goog