Greentime Hu
19fdc166f7
net: xilinx: fix the wrong dma base address issue
...
If we just use fdtdec_get_addr_size_fixed to get "reg" it will use
64bit address cell to get the base address.
soc {
#address-cells = <1>;
#size-cells = <1>;
compatible ="SiFive,FU500-soc", "fu500-soc", "sifive-soc", "simple-bus";
ranges;
L28: axidma@30010000 {
#dma-cells = <1>;
compatible = "xlnx,axi-dma-1.00.a";
axistream-connected = <&L27>;
axistream-control-connected = <&L27>;
clocks = <&L1>;
interrupt-parent = <&L6>;
interrupts = <32 33>;
reg = <0x30010000 0x4000>;
fdtdec_get_addr_size_fixed: reg: addr=3001000000004000
We should get the base address through its parent's address-cells and
size-cells settings. So we should use fdtdec_get_addr_size_auto_parent()
to get correct base address.
After applying this patch, we can get the correct base address of dma by
replacing fdtdec_get_addr_size_fixed() with
fdtdec_get_addr_size_auto_parent().
fdtdec_get_addr_size_auto_parent:
na=1, ns=1, fdtdec_get_addr_size_fixed: reg: addr=30010000
Signed-off-by: Greentime Hu <greentime.hu@sifive.com >
Signed-off-by: Andy Chiu <andy.chiu@sifive.com >
Link: https://lore.kernel.org/r/20220120084128.1892101-1-andy.chiu@sifive.com
Signed-off-by: Michal Simek <michal.simek@xilinx.com >
2022-02-01 17:11:33 +01:00
..
2021-12-02 08:34:01 +02:00
2022-01-20 11:35:29 +01:00
2021-11-09 17:18:06 +05:30
2021-02-02 15:33:42 -05:00
2021-12-02 08:34:01 +02:00
2021-09-30 08:08:56 -04:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-15 18:50:16 +02:00
2021-08-02 13:32:14 -04:00
2022-01-28 17:58:41 -05:00
2021-02-02 15:33:42 -05:00
2021-02-02 15:33:42 -05:00
2020-05-18 21:19:23 -04:00
2021-09-28 18:50:56 +03:00
2018-05-07 09:34:12 -04:00
2021-11-23 09:57:56 +02:00
2020-07-17 09:30:13 -04:00
2010-07-12 00:14:29 -07:00
2020-12-13 16:51:09 -07:00
2020-12-13 16:51:09 -07:00
2020-05-18 21:19:23 -04:00
2018-05-07 09:34:12 -04:00
2021-09-28 18:50:56 +03:00
2018-05-07 09:34:12 -04:00
2020-12-13 16:51:09 -07:00
2021-09-30 09:08:16 -04:00
2021-02-24 16:51:49 -05:00
2021-01-27 10:47:44 -05:00
2020-07-17 09:30:13 -04:00
2018-05-07 09:34:12 -04:00
2020-12-13 16:51:09 -07:00
2021-09-13 18:23:13 -04:00
2020-12-13 16:51:09 -07:00
2021-09-30 09:08:16 -04:00
2008-08-26 23:08:19 -07:00
2020-07-17 09:30:13 -04:00
2009-02-10 00:16:27 +01:00
2021-09-28 18:50:56 +03:00
2021-12-02 08:35:44 +02:00
2021-05-14 17:46:50 +02:00
2021-02-02 15:33:42 -05:00
2021-01-15 17:48:37 +08:00
2021-08-02 13:32:14 -04:00
2021-09-30 08:08:56 -04:00
2021-09-30 09:08:16 -04:00
2021-09-28 18:50:56 +03:00
2021-09-28 18:50:56 +03:00
2018-05-07 09:34:12 -04:00
2022-01-15 18:51:49 +02:00
2020-12-13 16:51:09 -07:00
2022-01-19 18:11:34 +01:00
2021-11-23 09:57:56 +02:00
2021-01-05 12:24:41 -07:00
2021-09-28 18:50:56 +03:00
2021-07-06 05:22:41 +03:00
2022-01-15 18:53:16 +02:00
2021-09-28 18:50:56 +03:00
2020-12-13 16:51:08 -07:00
2022-01-18 12:48:17 -05:00
2020-05-18 21:19:23 -04:00
2021-02-15 10:16:45 -05:00
2018-05-07 09:34:12 -04:00
2021-09-28 18:50:56 +03:00
2018-05-07 09:34:12 -04:00
2021-06-17 09:40:57 +08:00
2020-12-18 20:32:21 -07:00
2021-12-02 08:34:01 +02:00
2021-01-19 09:15:02 -05:00
2013-06-24 19:11:14 -05:00
2021-07-10 18:12:42 +02:00
2020-07-17 09:30:13 -04:00
2018-05-07 09:34:12 -04:00
2021-09-28 18:50:56 +03:00
2021-12-02 16:43:51 +08:00
2021-01-18 11:06:38 +08:00
2021-12-02 08:34:01 +02:00
2021-07-18 21:03:57 -04:00
2021-07-07 19:52:22 -04:00
2021-01-05 12:24:41 -07:00
2021-04-06 11:10:29 +02:00
2021-04-06 11:10:29 +02:00
2020-12-13 08:00:25 -07:00
2020-12-13 08:00:25 -07:00
2021-01-05 12:24:41 -07:00
2021-09-28 18:50:56 +03:00
2021-01-24 21:39:27 +01:00
2020-12-13 16:51:09 -07:00
2020-12-13 16:51:09 -07:00
2020-07-28 22:44:00 -04:00
2021-09-28 18:50:56 +03:00
2018-07-26 14:08:21 -05:00
2021-09-30 08:08:56 -04:00
2021-02-02 15:33:42 -05:00
2021-05-20 13:03:35 +02:00
2020-07-17 09:30:13 -04:00
2021-08-02 13:32:14 -04:00
2020-07-17 09:30:13 -04:00
2020-12-13 16:51:09 -07:00
2018-05-07 09:34:12 -04:00
2020-12-13 16:51:09 -07:00
2021-02-02 15:33:42 -05:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2021-12-13 00:37:28 +01:00
2020-12-13 16:51:09 -07:00
2020-12-13 16:51:09 -07:00
2020-02-05 19:33:46 -07:00
2021-07-15 18:42:05 -04:00
2021-02-02 15:33:42 -05:00
2021-09-28 18:50:56 +03:00
2021-02-15 10:16:24 -05:00
2022-01-15 18:49:13 +02:00
2021-09-28 18:50:56 +03:00
2021-09-30 09:08:16 -04:00
2021-07-22 21:55:05 +03:00
2021-08-30 14:13:28 -04:00
2021-02-02 15:33:42 -05:00
2021-07-23 18:53:45 -04:00
2021-10-11 10:46:44 +01:00
2021-01-05 12:24:40 -07:00
2021-11-23 09:57:56 +02:00
2020-07-17 09:30:13 -04:00
2020-05-18 21:19:23 -04:00
2020-07-17 09:30:13 -04:00
2022-02-01 17:11:33 +01:00
2021-07-26 09:18:45 +02:00
2021-07-26 09:18:45 +02:00
2021-02-02 15:33:42 -05:00
2022-01-17 10:02:35 +01:00