From patchwork Wed Mar 20 17:48:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kochetkov X-Patchwork-Id: 10862351 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2D7891575 for ; Wed, 20 Mar 2019 17:49:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0AB7B29E5E for ; Wed, 20 Mar 2019 17:49:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F29CF29E63; Wed, 20 Mar 2019 17:49:02 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B44EA29E31 for ; Wed, 20 Mar 2019 17:49:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=3e0twTQcUi+612S7eGdvq2By2qqFLdotmGtOlAAN5GA=; b=Hsi Z9DrGvQkjU9JzPTu76UTSjm30Qg/jpfJPrRBeF/OUtF2oLU+QkggHxMGbq1lVUjP14vVwlM5Kvcjt DpWy7eCgVxFffFEkBqLFnSGaNjLmB2pPGYSFfQ94T4bKFBTUgOvrTaQcpjywN1kuXnkdjIHfyscL/ G5hj2OBTg/KaDLFau/QUshnthjxfiCgyCFVwzhtGocrxyLERzsZQk+Bt141BdbhXqJC5CQ2luSrZ5 Vop46AsWhQFVtahTt51zT84xWQJu3MehOpWOOZ6LXku8j3Dhbmq9ptmRuq5E9MWwIwjq8dF5oYoFb MXVUbIqu9ZqMBHSrI29zeUjpfF03yjg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h6fKm-0007Gh-UW; Wed, 20 Mar 2019 17:49:00 +0000 Received: from mail-lf1-x142.google.com ([2a00:1450:4864:20::142]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h6fKD-0006Y5-Tb; Wed, 20 Mar 2019 17:48:28 +0000 Received: by mail-lf1-x142.google.com with SMTP id y62so2522333lfc.13; Wed, 20 Mar 2019 10:48:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=CGQh4afoDBme1hb62DaNdpATkJ+u8Yt7kgWs9YFM8bo=; b=nU+oLl9NF+D0KpBfJNI+o+hWrtS7HNpfcZqyuKG3qeP+WnsV/3LDQKRdg7LxQ3z4cX CcKVlKipMidRpIh2orR8syFA31dC2RGsYoHOYX+J8lKznUYK7gLy+pl6Hz9hGgXgW5T8 TnKg+KF2wdRkNTNlRyWKYPLrCFT+DnXxuqkSz0KYXu2cGAm5/sd35DjK5r80smzzqhL/ tXuCs/qiciEac7BMLU777orf126NZ4mTNAXIzmoMoSzKKOZQCzFW9v0A3xD5VeHYktgT +x1sQx25rtOpAFFWUEAGRr+BF1lIGIl17Hp8K9Dflrc+ofzNzYD4VrPSFsJv4mJ+huen zzUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=CGQh4afoDBme1hb62DaNdpATkJ+u8Yt7kgWs9YFM8bo=; b=WlDLL4QtM2yIoX7CjAEJPmLX3rEEJKV10Svpj6PmDmhD7vGF6HZCidroyMEEVn3gNb LB7CzQ6hnwnHzAeJmTCe/r0pUd427QwFaQiWvjly4I8NiVUFsnx6HzcZbkrDV5HR5vom 5Jvo723uGlos/exLfYjMKINFYKHkAJD/VeR+e2pf2pllgz9S9RiAYKdtI5RbnJnBmx9a vdKbDVsQHTSHyDJvPRSgdfLKz3C/Rau4ARXk++X1fMMUBv+CKe/PtFxTiV/nziwQd8Xz WO8UHauDF+oKaiV/eclu42vcJjdC1C1LhyDINsbeBiU6p0d9Xu7rtUEwkGaD+y7XmD3D FErA== X-Gm-Message-State: APjAAAWbEV7rneJSlISKb0/A7QKDcK+YBN0z03CZ2Mny5hyAI5x1aA8y VAABRKivrT+SRnZjKROXfLk= X-Google-Smtp-Source: APXvYqzK1dqOxV+fIT8xGgKX7Z3/BFSRRpWo5jN5HBZsyAjH6mVKjb+Yn6Lr0v5mFrxOdInYr2hZsQ== X-Received: by 2002:a19:c209:: with SMTP id l9mr16205797lfc.68.1553104101447; Wed, 20 Mar 2019 10:48:21 -0700 (PDT) Received: from ubuntu.lintech.local ([80.87.144.137]) by smtp.gmail.com with ESMTPSA id m19sm479959lfb.78.2019.03.20.10.48.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Mar 2019 10:48:20 -0700 (PDT) From: Alexander Kochetkov To: Jaehoon Chung , Ulf Hansson , Heiko Stuebner , linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] Fix eMMC hang on rk3188 and earlier Date: Wed, 20 Mar 2019 20:48:03 +0300 Message-Id: <1553104085-32312-1-git-send-email-al.kochet@gmail.com> X-Mailer: git-send-email 1.7.9.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190320_104825_951608_3AF40F35 X-CRM114-Status: UNSURE ( 8.72 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexander Kochetkov MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hello! I found, that sometimes dw_mmc driver stop transfer data to eMMC card on my rk3188 based board. One of tranfers hangs then doing EDMA transfer and controller gives HTO. And here is a fix. Alexander Kochetkov (2): mmc: dw_mmc: add init_slot() hook to platform function table mmc: dw_mmc-rockchip: fix transfer hangs on rk3188 drivers/mmc/host/dw_mmc-rockchip.c | 19 +++++++++++++++++++ drivers/mmc/host/dw_mmc.c | 4 ++++ drivers/mmc/host/dw_mmc.h | 2 ++ 3 files changed, 25 insertions(+)