This is an automated email from the ASF dual-hosted git repository.

ncasaril pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new b927136  hw/mcu/nrf5340_net: Remove enable/disable from init
     new 10de8d4  Merge pull request #2624 from ncasaril/nc_nrf5340_net_spi
b927136 is described below

commit b927136889e2a3be0d5b56d4ce91bac828ed0442
Author: Niklas Casaril <[email protected]>
AuthorDate: Wed Jun 23 13:51:07 2021 +1000

    hw/mcu/nrf5340_net: Remove enable/disable from init
---
 hw/mcu/nordic/nrf5340_net/src/hal_spi.c | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/hw/mcu/nordic/nrf5340_net/src/hal_spi.c 
b/hw/mcu/nordic/nrf5340_net/src/hal_spi.c
index 38e4200..75b3b03 100644
--- a/hw/mcu/nordic/nrf5340_net/src/hal_spi.c
+++ b/hw/mcu/nordic/nrf5340_net/src/hal_spi.c
@@ -466,15 +466,6 @@ hal_spi_init(int spi_num, void *cfg, uint8_t spi_type)
         return EINVAL;
     }
 
-    rc = hal_spi_disable(spi_num);
-    if (rc) {
-        return rc;
-    }
-    rc = hal_spi_enable(spi_num);
-    if (rc) {
-        return rc;
-    }
-
     return hal_spi_init_master(spi, (struct nrf5340_net_hal_spi_cfg *)cfg);
 #endif
 
@@ -483,11 +474,6 @@ hal_spi_init(int spi_num, void *cfg, uint8_t spi_type)
         return EINVAL;
     }
 
-    rc = hal_spi_disable(spi_num);
-    if (rc) {
-        return rc;
-    }
-
     return hal_spi_init_slave(spi, (struct nrf5340_net_hal_spi_cfg *)cfg);
 #endif
 }

Reply via email to