From patchwork Wed Aug 22 18:28:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 10573149 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 F0DD0920 for ; Wed, 22 Aug 2018 18:28:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E59BB2B7EB for ; Wed, 22 Aug 2018 18:28:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DA0442BAD3; Wed, 22 Aug 2018 18:28:06 +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,DKIM_SIGNED, DKIM_VALID,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 976782B7EB for ; Wed, 22 Aug 2018 18:28:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727786AbeHVVyD (ORCPT ); Wed, 22 Aug 2018 17:54:03 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:43802 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727016AbeHVVyD (ORCPT ); Wed, 22 Aug 2018 17:54:03 -0400 Received: by mail-lj1-f194.google.com with SMTP id m84-v6so2154154lje.10 for ; Wed, 22 Aug 2018 11:28:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:cc:organization:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=rLYsKkpvEZstq/4LPf7dn/PJt5LjLWJdaHa+CdXADC0=; b=rTCFesrM1HuVdOBYgOxggeK6eTUkQ8/dBhroJYPZ8rfha9EU5Tf6dJ6ENpajSgPan4 8si1hhXynzK/3EtZ08fh9fBuLpYvsh23v6IwD7yxoUxnnAThyexI92aPPd6u/K15muen koWfuteLBotFM6BoUTC74cQsJ4hQHupHh7OJitn7/62jszHqaiZcsoyiI2/Jw5/orI+a 8JmxCUeLIUErlG5CLm9DBr2gSfV6c+GbkADyqUVAX/txicHTIfhRPbqoDpWCUXfzGd0i /5ssaYcdURp0/vSLnYEViB8AkL7Sy2/QT//T4Gx2XfU3C+CZSYhpnsWFcnjyFCf/rm// 7MIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:organization:message-id:date :user-agent:mime-version:content-language:content-transfer-encoding; bh=rLYsKkpvEZstq/4LPf7dn/PJt5LjLWJdaHa+CdXADC0=; b=T8hYMWB81WiiiAdPLgVx1ANzxte55n/v41QrKQdhZXnY0oLoSjBZIVkuCvfzAGBSLg /j4FSQ9sM5RhlGMa1HOafCa1almmZnj74ZAyv5q6Xcgm2N9G1xBi7o5kjH4z7qASh2gF 3mBx9/0VKht0lsApCqJ2hkjCn5qLhckV9BzA/oChVOcLtNYrwflG22Dw9MPdJNc7ozDJ 8FeBzZYfx1HkxcrPbcmx9Azb+41qPcuHj2KenQPrlDjFb/qlOHGr9ghRd50I0nYCgFy5 I95FJnmkdf/URmPEVtu2Xa6RQYSo6C9f5/eDiTF3vfPFSCxt3j+WYKRFX2eL6G4GProB 2A8A== X-Gm-Message-State: AOUpUlHP78M5tKwfUFkOvsXFzSPRjvO83YtXnaazp4H1VZ/OaU3faZ8P 8qgXo8PgmepGlhbRXsutT3MFQA== X-Google-Smtp-Source: AA+uWPx90OZaWKoSLjDvaDSrP3vGABWanyVIPV54pgCwkA3GsgqNbxXRCCYKOCKhiQwNogYw7KQxUg== X-Received: by 2002:a2e:9599:: with SMTP id w25-v6mr14947642ljh.6.1534962483504; Wed, 22 Aug 2018 11:28:03 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.83.203]) by smtp.gmail.com with ESMTPSA id w200-v6sm427509lff.71.2018.08.22.11.28.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Aug 2018 11:28:02 -0700 (PDT) From: Sergei Shtylyov Subject: [PATCH] mmc: renesas_sdhi_internal_dmac: fix #define RST_RESERVED_BITS To: Wolfram Sang , Ulf Hansson , linux-mmc@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org Organization: Cogent Embedded Message-ID: Date: Wed, 22 Aug 2018 21:28:01 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Language: en-MW 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 DM_CM_RST register actually has bits 0-31 defaulting to 1s and bits 32-63 defaulting to 0s -- fix off-by-one in #define RST_RESERVED_BITS. Signed-off-by: Sergei Shtylyov Reviewed-by: Wolfram Sang --- The patch is against Ulf Hansson's 'mmc.git' repo's 'fixes' branch. drivers/mmc/host/renesas_sdhi_internal_dmac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: mmc/drivers/mmc/host/renesas_sdhi_internal_dmac.c =================================================================== --- mmc.orig/drivers/mmc/host/renesas_sdhi_internal_dmac.c +++ mmc/drivers/mmc/host/renesas_sdhi_internal_dmac.c @@ -45,7 +45,7 @@ /* DM_CM_RST */ #define RST_DTRANRST1 BIT(9) #define RST_DTRANRST0 BIT(8) -#define RST_RESERVED_BITS GENMASK_ULL(32, 0) +#define RST_RESERVED_BITS GENMASK_ULL(31, 0) /* DM_CM_INFO1 and DM_CM_INFO1_MASK */ #define INFO1_CLEAR 0