7192ae79aad5dad883935dde4375b83487d88257
[openwrt/staging/ynezz.git] /
1 From d7050fa7b0b0e88217ebfc09666eb08632dfe436 Mon Sep 17 00:00:00 2001
2 From: Laurentiu Tudor <laurentiu.tudor@nxp.com>
3 Date: Tue, 12 Mar 2019 17:57:26 +0200
4 Subject: [PATCH] fsl_qbman: add dummy functions for probe deferal APIs
5
6 Add missing definitions for probe deferal APIs for drivers
7 that use them with the SDK version of the qbman drivers.
8
9 Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
10 Signed-off-by: Vlad Pelin <vlad.pelin@nxp.com>
11 Acked-by: Madalin Bucur <madalin.bucur@nxp.com>
12 ---
13 include/linux/fsl_qman.h | 10 ++++++++++
14 1 file changed, 10 insertions(+)
15
16 --- a/include/linux/fsl_qman.h
17 +++ b/include/linux/fsl_qman.h
18 @@ -3893,6 +3893,16 @@ int qman_p_enqueue_orp(struct qman_porta
19 int qman_p_enqueue_precommit(struct qman_portal *p, struct qman_fq *fq,
20 const struct qm_fd *fd, u32 flags,
21 qman_cb_precommit cb, void *cb_arg);
22 +
23 +static inline int qman_is_probed(void) {
24 + return 1;
25 +}
26 +
27 +
28 +static inline int qman_portals_probed(void) {
29 + return 1;
30 +}
31 +
32 #ifdef __cplusplus
33 }
34 #endif