Changeset 4744


Ignore:
Timestamp:
11/03/08 01:48:41 (8 years ago)
Author:
werner
Message:

More cleanup and a little priority boost for the io task.

  • moved hif-direct-interrupt.patch and hack-dont-poll-irq.patch to the attic as well
  • gta02-mmc-spi-bitbang.patch, last of the SPI drivers, to the attic
  • gta02-mmc-mci.patch: since S3C MCI is now the only SDIO low-level driver, we don't have to be able to select it by configuration
  • arch/arm/mach-s3c2440/mach-gta02.c: remove obsolete gta02_mmc_cfg, remove the experimental registration of s3c_device_sdi, and re-enable s3c_device_sdi in the list of platform devices
  • drivers/ar6000/hif/hif2.c: boost priority of io task to one level below ksdioirqd
Location:
developers/werner/wlan-spi/patches-tracking
Files:
3 edited
3 moved

Legend:

Unmodified
Added
Removed
  • developers/werner/wlan-spi/patches-tracking/gta02-mmc-mci.patch

    r4741 r4744  
    11Use S3C SDI on GTA02. 
    22 
    3 Index: ktrack/arch/arm/mach-s3c2440/Kconfig 
    4 =================================================================== 
    5 --- ktrack.orig/arch/arm/mach-s3c2440/Kconfig   2008-11-02 11:04:06.000000000 -0200 
    6 +++ ktrack/arch/arm/mach-s3c2440/Kconfig        2008-11-02 11:04:06.000000000 -0200 
    7 @@ -113,6 +113,11 @@ 
    8                  bool "GPIO bit-banging SPI" 
    9                  select MMC_SPI 
    10                  select SPI_S3C24XX_GPIO 
    11 + 
    12 +       config AR6K_S3CMCI 
    13 +               bool "S3C MMC/SD/SDIO driver" 
    14 +               select MMC_S3C 
    15 + 
    16  endchoice 
    17   
    18  endmenu 
    193Index: ktrack/arch/arm/mach-s3c2440/mach-gta02.c 
    204=================================================================== 
    21 --- ktrack.orig/arch/arm/mach-s3c2440/mach-gta02.c      2008-11-02 11:04:06.000000000 -0200 
    22 +++ ktrack/arch/arm/mach-s3c2440/mach-gta02.c   2008-11-02 11:04:06.000000000 -0200 
    23 @@ -1720,6 +1720,11 @@ 
    24         platform_device_register(&gta02_spi_wlan); 
    25  #endif /* CONFIG_AR6K_SPI_S3C24XX_GPIO */ 
     5--- ktrack.orig/arch/arm/mach-s3c2440/mach-gta02.c      2008-11-02 22:49:21.000000000 -0200 
     6+++ ktrack/arch/arm/mach-s3c2440/mach-gta02.c   2008-11-02 22:53:59.000000000 -0200 
     7@@ -902,12 +902,6 @@ 
     8        .software_ecc   = 1, 
     9 }; 
    2610  
    27 +#ifdef CONFIG_AR6K_S3CMCI 
    28 +       s3c_device_sdi.dev.platform_data = NULL; 
    29 +       platform_device_register(&s3c_device_sdi); /* @@@ just for testing */ 
    30 +#endif /* CONFIG_AR6K_S3CMCI */ 
    31 + 
    32         platform_add_devices(gta02_devices, ARRAY_SIZE(gta02_devices)); 
     11-static struct s3c24xx_mci_pdata gta02_mmc_cfg = { 
     12-       .gpio_detect    = GTA02v1_GPIO_nSD_DETECT, 
     13-       .set_power      = NULL, 
     14-       .ocr_avail      = MMC_VDD_32_33, 
     15-}; 
     16- 
     17 static void gta02_udc_command(enum s3c2410_udc_cmd_e cmd) 
     18 { 
     19        printk(KERN_DEBUG "%s(%d)\n", __func__, cmd); 
     20@@ -1529,7 +1523,7 @@ 
     21        &s3c_device_usb, 
     22        &s3c_device_wdt, 
     23        &gta02_memconfig_device, 
     24-       // &s3c_device_sdi, /* FIXME: temporary disable to avoid s3cmci bind */ 
     25+       &s3c_device_sdi, 
     26        &s3c_device_usbgadget, 
     27        &s3c_device_nand, 
     28        &gta02_nor_flash, 
     29@@ -1607,17 +1601,6 @@ 
    3330  
    34         s3c2410_pm_init(); 
     31        s3c_device_usb.dev.platform_data = &gta02_usb_info; 
     32        s3c_device_nand.dev.platform_data = &gta02_nand_info; 
     33-       s3c_device_sdi.dev.platform_data = &gta02_mmc_cfg; 
     34- 
     35-       /* Only GTA02v1 has a SD_DETECT GPIO.  Since the slot is not 
     36-        * hot-pluggable, this is not required anyway */ 
     37-       switch (system_rev) { 
     38-       case GTA02v1_SYSTEM_REV: 
     39-               break; 
     40-       default: 
     41-               gta02_mmc_cfg.gpio_detect = 0; 
     42-               break; 
     43-       } 
     44  
     45        /* acc sensor chip selects */ 
     46        s3c2410_gpio_setpin(S3C2410_GPD12, 1); 
  • developers/werner/wlan-spi/patches-tracking/hif-linux-sdio.patch

    r4741 r4744  
    1212Index: ktrack/drivers/ar6000/Makefile 
    1313=================================================================== 
    14 --- ktrack.orig/drivers/ar6000/Makefile 2008-11-02 08:01:22.000000000 -0200 
    15 +++ ktrack/drivers/ar6000/Makefile      2008-11-02 08:04:17.000000000 -0200 
     14--- ktrack.orig/drivers/ar6000/Makefile 2008-11-02 23:09:13.000000000 -0200 
     15+++ ktrack/drivers/ar6000/Makefile      2008-11-02 23:09:15.000000000 -0200 
    1616@@ -21,7 +21,7 @@ 
    1717                htc/htc_recv.o             \ 
     
    2626=================================================================== 
    2727--- /dev/null   1970-01-01 00:00:00.000000000 +0000 
    28 +++ ktrack/drivers/ar6000/hif/hif2.c    2008-11-02 12:01:30.000000000 -0200 
    29 @@ -0,0 +1,593 @@ 
     28+++ ktrack/drivers/ar6000/hif/hif2.c    2008-11-02 23:46:53.000000000 -0200 
     29@@ -0,0 +1,598 @@ 
    3030+/* 
    3131+ * hif2.c - HIF layer re-implementation for the Linux SDIO stack 
     
    5151+#include <linux/wait.h> 
    5252+#include <linux/spinlock.h> 
     53+#include <linux/sched.h> 
    5354+#include <linux/mmc/sdio_func.h> 
    5455+#include <linux/mmc/sdio.h> 
     
    214215+{ 
    215216+       struct hif_device *hif = data; 
     217+       struct sched_param param = { .sched_priority = 2 }; 
     218+               /* one priority level slower than ksdioirqd (which is at 1) */ 
    216219+       DEFINE_WAIT(wait); 
    217220+       struct hif_request *req; 
     221+ 
     222+       sched_setscheduler(current, SCHED_FIFO, &param); 
    218223+ 
    219224+       while (1) { 
  • developers/werner/wlan-spi/patches-tracking/series

    r4741 r4744  
    2020sdio-add-atheros-ar6k.patch 
    2121hif-linux-sdio.patch 
    22 gta02-mmc-spi-bitbang.patch 
    2322 
    2423gta02-mmc-mci.patch 
     
    2625# dirty experimental stuff follows 
    2726 
    28 # didn't survive the move to 2.6.27 :-( 
    29 #hack-dont-poll-irq.patch  
    30 #hif-direct-interrupt.patch 
    3127#hif-can-do-async.patch 
    3228 
Note: See TracChangeset for help on using the changeset viewer.