From patchwork Mon Nov 26 13:38:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 10698393 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 5D5B418B8 for ; Mon, 26 Nov 2018 13:38:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4F83D294CE for ; Mon, 26 Nov 2018 13:38:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4438C293B8; Mon, 26 Nov 2018 13:38:34 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=unavailable 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 05D76292F7 for ; Mon, 26 Nov 2018 13:38:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726448AbeK0Acm (ORCPT ); Mon, 26 Nov 2018 19:32:42 -0500 Received: from sauhun.de ([88.99.104.3]:47956 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726210AbeK0Acm (ORCPT ); Mon, 26 Nov 2018 19:32:42 -0500 Received: from localhost (p54B335AF.dip0.t-ipconnect.de [84.179.53.175]) by pokefinder.org (Postfix) with ESMTPSA id 5C2982E4004; Mon, 26 Nov 2018 14:38:30 +0100 (CET) From: Wolfram Sang To: linux-mmc@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= , Avri Altman , Wolfram Sang Subject: [PATCH 0/2] mmc: refactor RPMB block count handling Date: Mon, 26 Nov 2018 14:38:12 +0100 Message-Id: <20181126133814.1185-1-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 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 On Renesas R-Car SDHI hardware, we sometimes had timeouts accessing the RPMB. This is because AutoCMD23/12 features needs a properly filled sbc to work correctly. But RPMB sends an individual CMD23. I could have fixed the driver but after some research concluded that fixing the core seems the proper thing to do. Tested on a R-Car M3-N. No timeouts showed up anymore. Changes since RFC: * dropped sanity checks on block count size * added comment why we don't do sanity checks * rebased to current mmc/next * added Tested-tags from Clément, thanks! Wolfram Sang (2): mmc: core: use mrq->sbc when sending CMD23 for RPMB mmc: core: remove obsolete mmc_set_blockcount() function drivers/mmc/core/block.c | 15 ++++++++++----- drivers/mmc/core/core.c | 14 -------------- drivers/mmc/core/core.h | 2 -- 3 files changed, 10 insertions(+), 21 deletions(-)