ath79/mikrotik: use routerbootpart partitions
[oweals/openwrt.git] / target / linux / layerscape / patches-5.4 / 701-net-0354-bus-fsl-mc-add-the-dpdbg-device-type.patch
1 From 6f506965930f06a3c82ba46c5f095e7b1b6368af Mon Sep 17 00:00:00 2001
2 From: Ioana Ciornei <ioana.ciornei@nxp.com>
3 Date: Fri, 20 Dec 2019 14:35:52 +0200
4 Subject: [PATCH] bus: fsl-mc: add the dpdbg device type
5
6 A new object type was recently added in MC.  This has to be added in the
7 fsl-mc bus device type list so that it can be properly listed.
8
9 Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
10 Reviewed-by: Madalin Bucur <madalin.bucur@nxp.com>
11 ---
12  drivers/bus/fsl-mc/fsl-mc-bus.c | 5 +++++
13  1 file changed, 5 insertions(+)
14
15 --- a/drivers/bus/fsl-mc/fsl-mc-bus.c
16 +++ b/drivers/bus/fsl-mc/fsl-mc-bus.c
17 @@ -369,6 +369,10 @@ struct device_type fsl_mc_bus_dpdmai_typ
18         .name = "fsl_mc_bus_dpdmai"
19  };
20  
21 +struct device_type fsl_mc_bus_dpdbg_type = {
22 +       .name = "fsl_mc_bus_dpdbg"
23 +};
24 +
25  static struct device_type *fsl_mc_get_device_type(const char *type)
26  {
27         static const struct {
28 @@ -390,6 +394,7 @@ static struct device_type *fsl_mc_get_de
29                 { &fsl_mc_bus_dpaiop_type, "dpaiop" },
30                 { &fsl_mc_bus_dpci_type, "dpci" },
31                 { &fsl_mc_bus_dpdmai_type, "dpdmai" },
32 +               { &fsl_mc_bus_dpdbg_type, "dpdbg" },
33                 { NULL, NULL }
34         };
35         int i;