drm/i915: incidental -EPERM considered harmful
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | drm/i915/dsi: pass struct mipi_dsi_packet pointer, not the entire structdrivers/ | +12 | 0 replies | |
| 2/6 | drm/i915/dsi: fuse dsi_send_pkt_payld() and add_payld_to_queue()drivers/ | +15 | 0 replies | |
| 3/6 | drm/i915/dsi: return -EBUSY instead of -1drivers/ | +1 | 0 replies | |
| 4/6 | drm/i915/hdmi: return -EINVAL instead of -1drivers/ | +1 | 0 replies | |
| 5/6 | drm/i915/drv: return -EIO instead of -1drivers/ | +4 | 0 replies | |
| 6/6 | drm/i915/dram: return -ENOENT instead of -1drivers/ | +2 | 2 replies |
Reviews trailers per patch
1 of 6 patches has a Reviewed-by or Acked-by.
| Patch | Ville Syrjälä |
|---|---|
| 1/6 | |
| 2/6 | |
| 3/6 | |
| 4/6 | |
| 5/6 | |
| 6/6 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [Intel-gfx] [PATCH 0/6] drm/i915: incidental -EPERM considered harmful
I think using return -1 to indicate errors in kernel is generally a bad idea. There are specific cases, such as returning invalid indexes, where it might be justified, but functions that are expected to return actual kernel error codes should return actual kernel error codes, not incidental -EPERM.
Fix a handful of these cases as an example. I thought DSI needed a little cleanup first instead of just making the conversion.
BR,
Jani.
Jani Nikula (6):
drm/i915/dsi: pass struct mipi_dsi_packet pointer, not the entire
struct
drm/i915/dsi: fuse dsi_send_pkt_payld() and add_payld_to_queue() drm/i915/dsi: return -EBUSY instead of -1 drm/i915/hdmi: return -EINVAL instead of -1 drm/i915/drv: return -EIO instead of -1
drm/i915/dram: return -ENOENT instead of -1
drivers/gpu/drm/i915/display/icl_dsi.c | 64 +++++++++-------------- drivers/gpu/drm/i915/display/intel_hdmi.c | 2 +- drivers/gpu/drm/i915/i915_drv.c | 7 +-- drivers/gpu/drm/i915/intel_dram.c | 4 +- 4 files changed, 32 insertions(+), 45 deletions(-)
Signature · 1 line
2.30.2