Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • early-display
  • variant-emmc-nvme-boot
  • 2023-01-25
  • v3
  • variant-emmc-nvme-boot
  • 2020-06-01
7 results

ftsdc010_mci.c

Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
  • Gabor Juhos's avatar
    dbb713ba
    mmc: ftsdc010_mci: fix build error if CONFIG_FTSDC010_SDIO is not defined · dbb713ba
    Gabor Juhos authored
    
    The FTSDC010_DCR_FIFO_RST symbol is conditionally
    defined in <faraday/ftsdc010.h> and it is available
    available when CONFIG_FTSDC010_SDIO is enabled.
    
    However the actual driver code unconditionally uses
    the FTSDC010_DCR_FIFO_RST constant and this causes
    build error if CONFIG_FTSDC010_SDIO is not enabled.
    
    The following error happens when compiling for the
    adp-ag101 board:
    
      ftsdc010_mci.c: In function 'ftsdc010_request':
      ftsdc010_mci.c:178: error: 'FTSDC010_DCR_FIFO_RST' undeclared (first use in this function)
      ftsdc010_mci.c:178: error: (Each undeclared identifier is reported only once
      ftsdc010_mci.c:178: error: for each function it appears in.)
    
    The patch ensures that the FTSDC010_DCR_FIFO_RST
    symbol gets used only if CONFIG_FTSDC010_SDIO is
    defined.
    
    Compile tested only.
    
    Cc: Kuo-Jung Su <dantesu@faraday-tech.com>
    Cc: Macpaul Lin <macpaul@andestech.com>
    Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>
    Reviewed-by: default avatarKuo-Jung Su <dantesu@faraday-tech.com>
    dbb713ba
    History
    mmc: ftsdc010_mci: fix build error if CONFIG_FTSDC010_SDIO is not defined
    Gabor Juhos authored
    
    The FTSDC010_DCR_FIFO_RST symbol is conditionally
    defined in <faraday/ftsdc010.h> and it is available
    available when CONFIG_FTSDC010_SDIO is enabled.
    
    However the actual driver code unconditionally uses
    the FTSDC010_DCR_FIFO_RST constant and this causes
    build error if CONFIG_FTSDC010_SDIO is not enabled.
    
    The following error happens when compiling for the
    adp-ag101 board:
    
      ftsdc010_mci.c: In function 'ftsdc010_request':
      ftsdc010_mci.c:178: error: 'FTSDC010_DCR_FIFO_RST' undeclared (first use in this function)
      ftsdc010_mci.c:178: error: (Each undeclared identifier is reported only once
      ftsdc010_mci.c:178: error: for each function it appears in.)
    
    The patch ensures that the FTSDC010_DCR_FIFO_RST
    symbol gets used only if CONFIG_FTSDC010_SDIO is
    defined.
    
    Compile tested only.
    
    Cc: Kuo-Jung Su <dantesu@faraday-tech.com>
    Cc: Macpaul Lin <macpaul@andestech.com>
    Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>
    Reviewed-by: default avatarKuo-Jung Su <dantesu@faraday-tech.com>