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: 9190791 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 502676075A for ; Tue, 21 Jun 2016 14:57:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4122B28174 for ; Tue, 21 Jun 2016 14:57:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 35510281F9; Tue, 21 Jun 2016 14:57:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B3AE628174 for ; Tue, 21 Jun 2016 14:57:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751579AbcFUO5v (ORCPT ); Tue, 21 Jun 2016 10:57:51 -0400 Received: from mail-lf0-f44.google.com ([209.85.215.44]:35858 "EHLO mail-lf0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751242AbcFUO5t (ORCPT ); Tue, 21 Jun 2016 10:57:49 -0400 Received: by mail-lf0-f44.google.com with SMTP id q132so27664035lfe.3 for ; Tue, 21 Jun 2016 07:56:54 -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=YjidB4NUbrR6IYRyE1hKOKXYvbcDr+IjID3/0aqZrdHeRY7fBUOiMiQWpsyX54d7Pt NmmFE8To7Kiq66D8RptvgAIjfFF03Kh8fPoxJ0NXLEKA0OF2yPYZ3qDHEGbAOsXraHTq K2vGRrtCrVax0MKfJy8m2w44FNWI6w1VJZKBsG/OhhZ6SGi6bF1Uod0z7l3G1L8Nw3MN fBdybWwF/oL/U4FGtKwdjym8eKis4mi8VyPxZJlNP18A6ytxCIx/IUJnskfx4eLZkq8E Jni/hsuBRk1Bp2KrP7kBAMRbnb6Z4SqfcHBsob6FRGw8VE34oYjIH2NzJ3IH/g6BDP8k gVYg== X-Gm-Message-State: ALyK8tJ/z6+u702S61sCWNV5nboY01UmHN1r+U2bKv8gC7EXgttIEo/bd2ci22qKPhsD1LsG X-Received: by 10.25.38.206 with SMTP id m197mr5136762lfm.201.1466514795653; Tue, 21 Jun 2016 06:13:15 -0700 (PDT) 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> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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;