mfd: cros_ec: add debugfs, console log file
If the EC supports the new CONSOLE_READ command type, then we place a console_log file in debugfs for that EC device which allows us to grab EC logs. The kernel will poll every 10 seconds for the log and keep its own buffer, but userspace should grab this and write it out to some logs which actually get rotated. Signed-off-by: NEric Caruso <ejcaruso@chromium.org> Signed-off-by: NNicolas Boichat <drinkcat@chromium.org> Acked-by: NLee Jones <lee.jones@linaro.org> Tested-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> [bleung: restored original version of this commit, with pointer size issue to be fixed in next commit] Signed-off-by: NBenson Leung <bleung@chromium.org>
Showing
想要评论请 注册 或 登录