From fa2de5382f6200f25451178516b213cfdfdc4251 Mon Sep 17 00:00:00 2001 From: Dave Whitters Date: Mon, 20 Dec 2021 13:52:33 -0500 Subject: [PATCH] Add update to SPI --- host/linux/host_driver/esp32/main.c | 2 +- host/linux/host_driver/esp32/spi/esp_spi.c | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/host/linux/host_driver/esp32/main.c b/host/linux/host_driver/esp32/main.c index 9f897aeee9..e94844856b 100644 --- a/host/linux/host_driver/esp32/main.c +++ b/host/linux/host_driver/esp32/main.c @@ -732,7 +732,7 @@ static int __init esp_init(void) /* Create the char devices */ ret = esp_serial_init((void *)adapter); if (ret != 0) { - printk(KERN_ERR "Error initialising sdio char devices!\n"); + printk(KERN_ERR "Error initialising serial char devices!\n"); return ret; } #endif diff --git a/host/linux/host_driver/esp32/spi/esp_spi.c b/host/linux/host_driver/esp32/spi/esp_spi.c index 3a9bedf393..c354e72eac 100644 --- a/host/linux/host_driver/esp32/spi/esp_spi.c +++ b/host/linux/host_driver/esp32/spi/esp_spi.c @@ -23,9 +23,6 @@ #include "esp_if.h" #include "esp_api.h" #include "esp_bt_api.h" -#ifdef CONFIG_SUPPORT_ESP_SERIAL -#include "esp_serial.h" -#endif #define SPI_INITIAL_CLK_MHZ 10 #define NUMBER_1M 1000000 @@ -493,15 +490,6 @@ static int spi_init(void) return status; } -#ifdef CONFIG_SUPPORT_ESP_SERIAL - status = esp_serial_init((void *) spi_context.adapter); - if (status != 0) { - spi_exit(); - printk(KERN_ERR "Error initialising serial interface\n"); - return status; - } -#endif - status = esp_add_card(spi_context.adapter); if (status) { spi_exit(); @@ -530,7 +518,6 @@ static void spi_exit(void) spi_context.spi_workqueue = NULL; } - esp_serial_cleanup(); esp_remove_card(spi_context.adapter); if (spi_context.adapter->hcidev)