How to use DSI debugfs?

Hi,I want to read/write register on DSI panel , I think the debugfs can do it
and i check the debug file

root@msm8916_64:/sys/kernel/debug/mdp # ls
dsi0_ctrl_off
dsi0_ctrl_reg
dsi0_phy_off
dsi0_phy_reg
dump
off
panel_off
panel_reg
perf
reg
stat
vbif_off
vbif_reg
xlog

i try to read 0x0a register from dsi panel

root@msm8916_64:/sys/kernel/debug/mdp # echo “0x0a 10 0x00000000” > dsi0_ctrl_off
root@msm8916_64:/sys/kernel/debug/mdp # cat dsi0_ctrl_reg
but my android os will crash,and i need to restart the dragonboard

how can i read the register from the dsi panel?
Thank you

hi,

you can add debugs in the panel driver

refer this
https://github.com/vinaysimha/kernel-msm-ifc6410/commit/d60232e68bf7f966cde6122ab03dc7de6f68be1a

MIPI_DCS_GET_POWER_MODE = 0x0A,
include/video/mipi_display.h

regards,
vinaysimha