Message ID | 1493059318-767-3-git-send-email-steven.hill@cavium.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-mmc-owner@kernel.org> 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 AB77060224 for <patchwork-linux-mmc@patchwork.kernel.org>; Mon, 24 Apr 2017 18:44:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9F2EB2841D for <patchwork-linux-mmc@patchwork.kernel.org>; Mon, 24 Apr 2017 18:44:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9400D2842A; Mon, 24 Apr 2017 18:44:37 +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 38E2B2841D for <patchwork-linux-mmc@patchwork.kernel.org>; Mon, 24 Apr 2017 18:44:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S973115AbdDXSof (ORCPT <rfc822;patchwork-linux-mmc@patchwork.kernel.org>); Mon, 24 Apr 2017 14:44:35 -0400 Received: from mail-by2nam03on0042.outbound.protection.outlook.com ([104.47.42.42]:48489 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S972560AbdDXSoU (ORCPT <rfc822;linux-mmc@vger.kernel.org>); Mon, 24 Apr 2017 14:44:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=TBnd5SuB818tJvLH52H/ufPUwOf5GQJ12VCFGT4VWlI=; b=R2WyXsaWm3LWAVIj0HSBTL7g9dNpFQ6skjuV8/m27QfqlokT20HaOz3TzLCDuv/T4bGzXCkTv9k6y2FrTh8VO556YdqmQUHkOmF9fsCynEGz4fb2a/BgQvUyhE+tqwfJaLw0R1vYUfr9iIb3sliZnvI29vX8+CQBcnkh2JHLQ/Y= Authentication-Results: linaro.org; dkim=none (message not signed) header.d=none; linaro.org; dmarc=none action=none header.from=cavium.com; Received: from black.inter.net (50.82.184.123) by CY4PR07MB3206.namprd07.prod.outlook.com (10.172.115.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1047.13; Mon, 24 Apr 2017 18:44:17 +0000 From: "Steven J. Hill" <steven.hill@cavium.com> To: Ulf Hansson <ulf.hansson@linaro.org> Cc: David Daney <david.daney@cavium.com>, Jan Glauber <jglauber@cavium.com>, linux-mmc@vger.kernel.org, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] mmc: cavium: Fix detection of block or byte addressing. Date: Mon, 24 Apr 2017 13:41:56 -0500 Message-Id: <1493059318-767-3-git-send-email-steven.hill@cavium.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1493059318-767-1-git-send-email-steven.hill@cavium.com> References: <1493059318-767-1-git-send-email-steven.hill@cavium.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [50.82.184.123] X-ClientProxiedBy: BY2PR07CA044.namprd07.prod.outlook.com (10.141.251.19) To CY4PR07MB3206.namprd07.prod.outlook.com (10.172.115.148) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 386bf3d8-3495-4353-2ff8-08d48b41e9d5 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:CY4PR07MB3206; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3206; 3:66PeOSNweyjYOinuSwTqZ7TFCZP+4DxxtSL77il8w55OjOR6K0NhrROxIOUoKii+iIMj85DmuovNli1Lb/uIDNMXu1NPY/j4xUkT0dCGyHJv7zbBSau0l5wXq7BOWmWfAqhyPOeWjCSnfdJRw95++wTMNX7TqX9s+if/qCP3GZrzUpH47ub9ty9Rt8ckFJfvsI08HehyW76ERPYGI4t6ln5F1FP/5w2kl2twrFXwhRrkDwW8jh4cBTJGMo3f4HZovZfeFYE+z7PTA4UO9yp2xi//AuHogcH9x8pn/W2W+1Bx/h+o50HQ+jCuBSoX79bJj/RmOyqwvgNH80xVSHLxuA==; 25:4yhuD5emTEsBGUBopukpLP5vSSpMuRODv17+2LgHgHx2vl2+IMv5BtvOeEFJtwVyux6CDHubsNZIFJ1OZvI741xFmBEBx+q4LJezAU3BAzwoPAYoxeKtR5NGsSIF8n1f11o53MKnbUedMIz+ufz5GMAYXn+ewpZpHjMuMjWMFNGBagTPcg3zUALi109m/OT750gYfggxdErLawWihe5EW5zdLqSH0ni/7D5Mpyf4j5bD2AI95JW538Xfx5/KuAXjgnlrzNzYMbpnZqjQFatjB8w1fEONHgBRyUnXEKTMcIa631vRchBIXQ+A7Zxn3DeuL/S3sRolXNiGcEMXxqphxZLEOlMJ7epNznC1g1mKH9+CEkcacLhGkqS+a3gJGFLpB/aiWyj4vN50cTGoKK+pB0bAGE0yz9djlFrZbp5S64W1llthcBJWQU2G5ecBMHzYiAcqTpC9rB+C1p+CBLXZOQ== X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3206; 31:yolL1bLR28/p2cuLx3PjsFZOOU/oOhCLgiAr30uo6zUVVMCXwIXa+LLJyUA8BDX3OFKIWlQhAJ0emABrU7n7GluYCF4X3u9uM9t1N1YQJl+m9ZbTQmchxFHU3wpCzuPaciS8YFfhLAKIJr+VAQF1O3AR3wg9PChAnOpukWmBbTq2ID6dUGCt6r0a5l+FzF9bmPR+6Pl1bix1iD5LYvAGaWVA9cx5pM5mTEsL1fqXrAw=; 20:QzZnHReT7TvuwnT/L0MGYqLOUfi8R88S6KVV8u/y4gemd4Pqr0qQ4wgSmyqLbbQT9AKxSY/ty1+56u2mptzCHDEbxVbiA/mYzBmvcz2y8QeGiXgfHoG9q/byRO4MkSMV7X1OuP/d3/Okb6QD64GP6QHw0EDy6WNN9BFJmVDPuDS2OCaRoOMIWrjkRiK7CRUiQQPH6pKGPKYme8rJ6SnYBdhZUhyWFLpztuZU3a9m4FlLGtpLIoRZgrfscnF2IOaROH4P0eH5e1k4VT1kW9i/mvP+1Yl58kS0rg1/rG71eCDe6Obrazvv+UmV6WBJkRU0iyV0tUovCCw3t6i7Lf0HY6vZ4/qQILa6yUFrksvxHB3xAnIoPMzmFeoLgeqDlIR/zWnuzjbSU6GSYWVK1LTfx85LSdQXYPCCsCIGfEmDiSrafOax0/NzoGBN5q810amv8ALMaJrNadnRpC0a4cD3xDktaMoooBd1TlIZIDWgyiGDGMX6e85J7BUieRYN+47X X-Microsoft-Antispam-PRVS: <CY4PR07MB3206EBFFB3994349E7BF0D9A801F0@CY4PR07MB3206.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3002001)(6041248)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(20161123560025)(20161123555025)(20161123564025)(6072148); SRVR:CY4PR07MB3206; BCL:0; PCL:0; RULEID:; SRVR:CY4PR07MB3206; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3206; 4:5ryrVC67WsQFez4trAntI7JDaCflEAxlr7mn6BinMPI6IdQ7z9TIdEvneB/9pUdMGBzbpO/N/qNNb+J4Yqr7MaekqsxWbhjhDCAANpBSDFEAuh/J2rmcyVYa3HnVR+ZQhF1+tUQahYyyusQoRYayuKhdtEZNrF2IazlQY06S3jl9zgnqWd1VD56YMhv+dXQmnnyelsZfPoh0/jv0+y10Y1tel74NsiNQXmKYRhazWey3QIIGUM69TLAOI/akfwZ9tpgsQKTC7V7XgSEorZ39LeLgFJfDFEeJ6GmCCnlJ6l5pUMpL3pUDG7CMaS2JJimS7Iw6h782fkBdzxBSPvtNf64wQYvNATOeBzje8+7KzfZ9qVHaF2jOIwX7nsw4DQ4lyqY5jLY37ehejHEbnmJ0R6R3NbUWBwf0JGoDUwE4cOV3HOUKBw4cANK/Fd+Db6ymCdk/5deD7ux/+LsdVG6jTO3gjjWpjA9YzG2Ok6lclUWrDRVwTCokN/cuWNywjHpxHkx2hzHBQk7v0XwELIhcz/DtBwEfNOwZ42wZpv6wbKhniNpbjfvRBpKUWb5z+EE33Q10TAkxYBaH0E5kYX+9uf52rbwuDINDdqPTdNF2bGUS7MEQu0qR9TOhsDq0tf6EcMnF4Gm2Mjkw7+E60eX+r2L4hPNWqRIcHI0RxhMgmMs0QQdOs25n9XJT7Xnag7d5iV+HBU4Z+Of7EdYHiek3EajAgLgdW91HR4JOdGYOnbw= X-Forefront-PRVS: 0287BBA78D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39850400002)(39410400002)(39450400003)(39840400002)(39400400002)(4326008)(110136004)(6116002)(54906002)(2906002)(50986999)(3846002)(6486002)(6506006)(76176999)(189998001)(53416004)(50466002)(66066001)(47776003)(38730400002)(48376002)(42186005)(25786009)(305945005)(5003940100001)(50226002)(7736002)(81166006)(8676002)(5660300001)(6916009)(86362001)(36756003)(53936002)(6512007)(6666003)(33646002)(2950100002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3206; H:black.inter.net; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3206; 23:dNFJwmv8ZMUb2lX6s5YoqTtI3Z2l3rYzbk6JIW5jx?= =?us-ascii?Q?f4/jP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ticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3206; 7:QUVfdEyztctdpvcfA2O9asOxH65g24ONa6gOlkBxd/kmTVfWtd2EChIPlbYNuTMTlm2qBY4VoQ2B3zQmp0Kta0eGiF6vFskDVJrlGK4rpxgxCq9n94aoCypmTjevaSCOK0k3Yu/AZZU15u7yr9G43JchKFvYUDf3c7m7HkATNPG/jqXkC04veKgcLdkNqNAL6aVP2o2xGuOjWyyeGT7TfnFqI1h8PwuzW5a1uB3TYD0l5oB/qJbY9JS5BQCla8alwTcR5p8iXhUUaoP2KQ0O4eqgFkKVWlGNICbURMrrwh85dP3e+oxXJ3OJ+kFGlLJ/5MFBsq+yDgF8OH++sMrTAw== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Apr 2017 18:44:17.0063 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3206 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: <linux-mmc.vger.kernel.org> X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/mmc/host/cavium.c b/drivers/mmc/host/cavium.c index d842b69..36b25e4 100644 --- a/drivers/mmc/host/cavium.c +++ b/drivers/mmc/host/cavium.c @@ -629,7 +629,7 @@ static u64 prepare_ext_dma(struct mmc_host *mmc, struct mmc_request *mrq) emm_dma = FIELD_PREP(MIO_EMM_DMA_VAL, 1) | FIELD_PREP(MIO_EMM_DMA_SECTOR, - (mrq->data->blksz == 512) ? 1 : 0) | + mmc_card_is_blockaddr(mmc->card) ? 1 : 0) | FIELD_PREP(MIO_EMM_DMA_RW, (mrq->data->flags & MMC_DATA_WRITE) ? 1 : 0) | FIELD_PREP(MIO_EMM_DMA_BLOCK_CNT, mrq->data->blocks) |