From patchwork Tue Jun 21 13:12:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 70557 Delivered-To: patches@linaro.org Received: by 10.140.28.4 with SMTP id 4csp2011206qgy; Tue, 21 Jun 2016 06:13:16 -0700 (PDT) X-Received: by 10.25.88.146 with SMTP id m140mr3028998lfb.217.1466514796069; Tue, 21 Jun 2016 06:13:16 -0700 (PDT) Return-Path: Received: from mail-lf0-x233.google.com (mail-lf0-x233.google.com. [2a00:1450:4010:c07::233]) by mx.google.com with ESMTPS id k40si29903287lfi.153.2016.06.21.06.13.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Jun 2016 06:13:16 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::233 as permitted sender) client-ip=2a00:1450:4010:c07::233; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::233 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-lf0-x233.google.com with SMTP id f6so23248429lfg.0 for ; Tue, 21 Jun 2016 06:13:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ofXbih4T6Q9srrg1oIuvu1k8fAjnOqxY6GMiTBb+I7Y=; b=VLIg15B5AzqCOBsTLd64FW3LS6FIbCnEAv8PNdOG4G4shq03yWjYEtDsmN1wLbcPlq GuLLj+ufJqNV4WUNlhdy8TGanJFTCGvX4r73e9x3kLP7tFn4ImOIhEi+TnEzUqsiB6G1 fLENMdXGQU8no37F+OhD/mzrugLh+In2I3hh8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ofXbih4T6Q9srrg1oIuvu1k8fAjnOqxY6GMiTBb+I7Y=; b=CHWxmQe817jZbK4fmkRXmFCoKnJoGGtgBCQhiOyydr/gOvgFi3x5/C4UM2xHP+uonk /KcIBoZQnuebEgeEyWJsjwEGK3ZzdSOqhujhBCwRSzBthswG8LbxLzVsAuVFuK/1qCnO A/6jQpk6MVm7pC7VAfTZVHD7vt0G1fzk+3RKacHrOOaeXA+WBNzHGI8r2J4woikEMupg 21oZNXj8j358y8l8W7C2UDhq83Ru2S5hjt9P1TCahy1mNVqRPAGq03nIPnS5vVIFFr9v tbx8+Y+bSusjtaOWExSistn9/N8QUSoR0IB1BuP9oFi2FJ1e0ewSS+YgZBI4AXOPoumo UgoQ== X-Gm-Message-State: ALyK8tLvyIIaOxsByobH5Z/NZzUHU+tJ8nX2B26ER4VlhBcB7WFnMxuhu+8J6iumkDYMY7tx2nA= X-Received: by 10.25.38.206 with SMTP id m197mr5136762lfm.201.1466514795653; Tue, 21 Jun 2016 06:13:15 -0700 (PDT) Return-Path: Received: from uffe-Latitude-E6430s.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id ze5sm4978244lbb.8.2016.06.21.06.13.13 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 21 Jun 2016 06:13:13 -0700 (PDT) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson Cc: Kuninori Morimoto , Geert Uytterhoeven , Nguyen Viet Dung , Magnus Damm , Simon Horman , Baolin Wang Subject: [PATCH 4/5] mmc: sh_mmcif: Inform the mmc core about the max busy timeout Date: Tue, 21 Jun 2016 15:12:49 +0200 Message-Id: <1466514770-9462-5-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1466514770-9462-1-git-send-email-ulf.hansson@linaro.org> References: <1466514770-9462-1-git-send-email-ulf.hansson@linaro.org> The sh_mmcif driver is already using a 10s request timeout. Let's also inform the mmc core about this value, as there are situations when it needs to know about it. Signed-off-by: Ulf Hansson --- drivers/mmc/host/sh_mmcif.c | 1 + 1 file changed, 1 insertion(+) -- 1.9.1 diff --git a/drivers/mmc/host/sh_mmcif.c b/drivers/mmc/host/sh_mmcif.c index 96a45d8..bab971b 100644 --- a/drivers/mmc/host/sh_mmcif.c +++ b/drivers/mmc/host/sh_mmcif.c @@ -1455,6 +1455,7 @@ static int sh_mmcif_probe(struct platform_device *pdev) mmc->caps |= MMC_CAP_MMC_HIGHSPEED | MMC_CAP_WAIT_WHILE_BUSY; mmc->caps2 |= MMC_CAP2_NO_SD | MMC_CAP2_NO_SDIO; + mmc->max_busy_timeout = 10000; if (pd && pd->caps) mmc->caps |= pd->caps;