Debug Prints#
You can enable debug prints (observed in dmesg) in the driver in the following two ways:
By assigning module param while installing the driver.
Through debugfs after installing the driver.
Both are explained below.
Assigning module param:
# insmod rsi_91x.ko rsi_zone_enabled=0x601In this case,
rsi_zone_enabledis a bitmap value which is explained below.Through debugfs:
# echo <value> > /sys/kernel/debug/phy<X>/debug_zone
rsi_zone_enabled and \<value\> are bitmap values as explained below.
BIT  | ZONE  | 
|---|---|
BIT(0)  | ERROR ZONE  | 
BIT(1)  | INFO ZONE  | 
BIT(2)  | INIT ZONE  | 
BIT(3)  | MGMT TX ZONE  | 
BIT(4)  | MGMT RX ZONE  | 
BIT(5)  | DATA TX ZONE  | 
BIT(6)  | DATA RX ZONE  | 
BIT(7)  | FSM ZONE  | 
BIT(8)  | ISR ZONE  | 
BIT(9)  | INT MGMT ZONE  | 
BIT(10)  | MGMT DEBUG ZONE  | 
For example, to enable both INFO ZONE and ERROR ZONE, set BIT(1) and BIT(0) to arrive at a bitmap value of 0x03.