From patchwork Mon Aug 21 16:02:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 9913141 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 82389602A0 for ; Mon, 21 Aug 2017 16:04:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 79747287B3 for ; Mon, 21 Aug 2017 16:04:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6E510287B7; Mon, 21 Aug 2017 16:04:01 +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=-2.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 029C8287B3 for ; Mon, 21 Aug 2017 16:04:01 +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:References: In-Reply-To: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:List-Owner; bh=+7Xn1wV9eD8SKFMeXkp9hs3TZ+Ko7ZnVlLA46823VK0=; b=IEOMcPrr47trPWo1Vzi1OxdOSt tV8K3WAFjyzXZI7nHnhrOp6+M3+JUs9sDtVwXR0PHVkZ1/ecSIIxUxj7ZsIrZkS8JHqautdFHpGKE k1cJ4bZ47/VeseymzqK00dYpQn89vvkBihsUNqYh7fywgG/geIDMip2qES7yZtHnJoKMHJngTcB+j i5kWV956/N/tU+1d87zX49+bp01XNN1+zJjdvkbaJPC83NgDn1E6HuIYkDmqGYtsZ/9LdFn9nIhEv LDpfoaGFpecPNcb0kkO7Tqmu63q2F6YFQ5lD5Oj36HcXgmthJ5dTz00k+LHMv1mmkDZt1EE1L3meh QcwxCVGw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1djpBF-0001ho-QL; Mon, 21 Aug 2017 16:03:57 +0000 Received: from mail-wr0-x230.google.com ([2a00:1450:400c:c0c::230]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1djpAl-0001Eh-Ri for linux-arm-kernel@lists.infradead.org; Mon, 21 Aug 2017 16:03:32 +0000 Received: by mail-wr0-x230.google.com with SMTP id 30so30550125wrk.0 for ; Mon, 21 Aug 2017 09:03:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vtGvtuKp+hmDN0nuu5DpYl6I7MCf8fDGQVP8RGVLE5Y=; b=W2T1V4mNSJ4WFz8klulrXLxdLiPh9+KOXgA8cVLElDVZnv7nQLEV5O7j6lnXF8LMl5 weRulofTmtQ3QU5ZnLwsnYLooo2J6ZPjj7urvsmm0CxnPM5RfMMVVb8UhlQIEeM9hsyd DU/6LqoYbpapbnoqPhe61p07HreKFKRSi+VdIm0DHJm1JEUpAHUCD/pnscbHgOYWY/9a IpPo2yNZAoLqnGeAZRBxFkPHDq0UITcBw/jRQ99mW5h3Cuyzj/irpjFHQLkerlGO0bCF 2++DiH/xWuYjbWnkefVE5vkDMeJeMwPpKajFEK3ic1VNbUf+6wHwe5vH82QAGNNMoVNS Z4+w== 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:in-reply-to :references; bh=vtGvtuKp+hmDN0nuu5DpYl6I7MCf8fDGQVP8RGVLE5Y=; b=WjJwNdkX38qFHZ24lsUS5Wy0qJSguaQyne6Yqmyr6a8ZDDmySrMOOOgoFXXvM9wUu/ gcqsFlQX0YpAx+x7xc91wpykY3Hb+4mS7WEpgjXaK0Miu11kloBNc055fnHAhDQoT4Ki bCtuJsGppkmdgIXyCUEVREEI4qYRLS5OFKyYLD3feaiITwgy/QylOnP04ernE4hBitVU 3rosDibsBmvJaU2IXvo1kvZ4b7Oe1nFf9ODeEiqhHUpayDu06frLD/4iKZ2wIhO0lM+T +Ne43fLP/8+4DebgKAVna3VuOTmFCpH0semvfKlpiFDn/N3C9aTm8zrC+6p2idkPookq clUw== X-Gm-Message-State: AHYfb5i+lY9OL1Gyr3kZ8ede+FW3M36c/5Eq50wwriL1513KWAmu6W8r X2VxXcK2O5zRgfFI X-Received: by 10.223.196.10 with SMTP id v10mr461807wrf.5.1503331386121; Mon, 21 Aug 2017 09:03:06 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id 63sm8120063wra.30.2017.08.21.09.03.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Aug 2017 09:03:05 -0700 (PDT) From: Jerome Brunet To: Ulf Hansson , Kevin Hilman , Carlo Caione Subject: [PATCH v2 01/16] mmc: meson-gx: fix mux mask definition Date: Mon, 21 Aug 2017 18:02:46 +0200 Message-Id: <20170821160301.21899-2-jbrunet@baylibre.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20170821160301.21899-1-jbrunet@baylibre.com> References: <20170821160301.21899-1-jbrunet@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170821_090328_050437_B3AD8884 X-CRM114-Status: GOOD ( 10.02 ) 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: linux-amlogic@lists.infradead.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet 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 CCF generic mux will shift the mask using the value defined in shift Define the mask accordingly Reviewed-by: Kevin Hilman Signed-off-by: Jerome Brunet --- drivers/mmc/host/meson-gx-mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/meson-gx-mmc.c b/drivers/mmc/host/meson-gx-mmc.c index de962c2d5e00..4217287923d4 100644 --- a/drivers/mmc/host/meson-gx-mmc.c +++ b/drivers/mmc/host/meson-gx-mmc.c @@ -366,7 +366,7 @@ static int meson_mmc_clk_init(struct meson_host *host) init.num_parents = MUX_CLK_NUM_PARENTS; host->mux.reg = host->regs + SD_EMMC_CLOCK; host->mux.shift = __bf_shf(CLK_SRC_MASK); - host->mux.mask = CLK_SRC_MASK; + host->mux.mask = CLK_SRC_MASK >> host->mux.shift; host->mux.flags = 0; host->mux.table = NULL; host->mux.hw.init = &init;