主题 : 关于SD卡移植的问题 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 22746
精华: 0
发帖: 16
金钱: 80 两
威望: 16 点
综合积分: 32 分
注册时间: 2010-06-06
最后登录: 2010-07-26
楼主  发表于: 2010-06-22 22:52

 关于SD卡移植的问题

s3c-sdi s3c2440-sdi: host detect has no irq available
s3c-sdi s3c2440-sdi: failed to get writeprotect
s3c-sdi: probe of s3c2440-sdi failed with error -16
启动时出现这个信息
在s3cmci.c中的s3cmci_probe函数中打印出来
disable_irq(host->irq);
    host->irq_state = false;

    if (!host->pdata->no_detect) {
        ret = gpio_request(host->pdata->gpio_detect, "s3cmci detect");
        if (ret) {
            dev_err(&pdev->dev, "failed to get detect gpio\n");
            goto probe_free_irq;
        }

        host->irq_cd = s3c2410_gpio_getirq(host->pdata->gpio_detect);

        if (host->irq_cd >= 0) {
            if (request_irq(host->irq_cd, s3cmci_irq_cd,
                    IRQF_TRIGGER_RISING |
                    IRQF_TRIGGER_FALLING,
                    DRIVER_NAME, host)) {
                dev_err(&pdev->dev,
                    "can't get card detect irq.\n");
                ret = -ENOENT;
                goto probe_free_gpio_cd;
            }
        } else {
            dev_warn(&pdev->dev,
                 "host detect has no irq available\n");
            gpio_direction_input(host->pdata->gpio_detect);
        }
    } else
        host->irq_cd = -1;

    if (!host->pdata->no_wprotect) {
        ret = gpio_request(host->pdata->gpio_wprotect, "s3cmci wp");
        if (ret) {
            dev_err(&pdev->dev, "failed to get writeprotect\n");
            goto probe_free_irq_cd;
        }

        gpio_direction_input(host->pdata->gpio_wprotect);
    }