summaryrefslogtreecommitdiff
path: root/include/dt-bindings/reset/stih415-resets.h
blob: c2329fe29cf6e0c9e455cb593d96d5444db0bbef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * This header provides constants for the reset controller
 * based peripheral powerdown requests on the STMicroelectronics
 * STiH415 SoC.
 */
#ifndef _DT_BINDINGS_RESET_CONTROLLER_STIH415
#define _DT_BINDINGS_RESET_CONTROLLER_STIH415

#define STIH415_EMISS_POWERDOWN		0
#define STIH415_NAND_POWERDOWN		1
#define STIH415_KEYSCAN_POWERDOWN	2
#define STIH415_USB0_POWERDOWN		3
#define STIH415_USB1_POWERDOWN		4
#define STIH415_USB2_POWERDOWN		5
#define STIH415_SATA0_POWERDOWN		6
#define STIH415_SATA1_POWERDOWN		7
#define STIH415_PCIE_POWERDOWN		8

#define STIH415_ETH0_SOFTRESET		0
#define STIH415_ETH1_SOFTRESET		1
#define STIH415_IRB_SOFTRESET		2
#define STIH415_USB0_SOFTRESET		3
#define STIH415_USB1_SOFTRESET		4
#define STIH415_USB2_SOFTRESET		5
#define STIH415_KEYSCAN_SOFTRESET	6

#endif /* _DT_BINDINGS_RESET_CONTROLLER_STIH415 */
th>040587af31228d82c52267f717c9fcdb65f36335 (diff)
net: thunderx: avoid dereferencing xcv when NULL
This fixes the following smatch and coccinelle warnings: drivers/net/ethernet/cavium/thunder/thunder_xcv.c:119 xcv_setup_link() error: we previously assumed 'xcv' could be null (see line 118) [smatch] drivers/net/ethernet/cavium/thunder/thunder_xcv.c:119:16-20: ERROR: xcv is NULL but dereferenced. [coccinelle] Fixes: 6465859aba1e66a5 ("net: thunderx: Add RGMII interface type support") Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net> Cc: Sunil Goutham <sgoutham@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/irda/irlmp_frame.h')