]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/mipi-dsi: mipi_dsi_*_write functions don't need to ratelimit prints
authorDouglas Anderson <dianders@chromium.org>
Tue, 14 May 2024 17:20:53 +0000 (10:20 -0700)
committerNeil Armstrong <neil.armstrong@linaro.org>
Wed, 15 May 2024 20:59:12 +0000 (22:59 +0200)
commit7d3f6acaf87c7db6dcd868694a2f65e7040478dc
tree518ffce55890a60a7bdec240443fbd6b4f905b5d
parent24acbcce5cc673886c2f4f9b3f6f89a9c6a53b7e
drm/mipi-dsi: mipi_dsi_*_write functions don't need to ratelimit prints

We really don't expect these errors to be printed over and over
again. When a driver hits the error it should bail out. Just use a
normal error print.

This gives a nice space savings for users of these functions:

$ scripts/bloat-o-meter \
  .../before/panel-novatek-nt36672e.ko \
  .../after/panel-novatek-nt36672e.ko
add/remove: 0/1 grow/shrink: 0/1 up/down: 0/-16760 (-16760)
Function                                     old     new   delta
nt36672e_1080x2408_60hz_init               17080   10640   -6440
nt36672e_1080x2408_60hz_init._rs           10320       -  -10320
Total: Before=31815, After=15055, chg -52.68%

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20240514102056.v5.3.I9982cd5d8014de7a4513f5619f66f88da49ce4ec@changeid
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240514102056.v5.3.I9982cd5d8014de7a4513f5619f66f88da49ce4ec@changeid
include/drm/drm_mipi_dsi.h