From patchwork Fri Jul 6 13:18:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthony Brandon X-Patchwork-Id: 10511721 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 BEA90600CA for ; Fri, 6 Jul 2018 13:21:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ACEA0286AC for ; Fri, 6 Jul 2018 13:21:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AB3B5286BA; Fri, 6 Jul 2018 13:21:22 +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.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI 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 DD8C6286AC for ; Fri, 6 Jul 2018 13:21:21 +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=ltVa693tVNjJdz3qtiAFpjm/J8Z7XmALYTLInosv9C4=; b=OAm RJKq7Y8I7Pf1ybRqbm6LxLcgXp1ttxKFhuUugjhFbL8k8WYSIs3ht1TxuacMEnz3s8NwVsdeuyp8i 1G2JJAqIcL+TMzsLP7z08barTKqH6Hbt3gXNLlkdUQYFUfdVmuHgJQUqXaaHDOmqE4K70vDW3bCDS 8lRDDQN/Iq0fki+nu25vI87kVBHYz9DYOVH60wXW8OtgF0GSp49tuB1PElzFoChOF3yypSDhqGDJ/ H5sVVbZu0TUz4tXAq8rI6ZxMplpMijUE/jUCHBEdFfdRayNHTtP7ZFnQUdavfac87gkfT5leY1Yve OayDmlLeeiZ9F+gqMNQyediLzAe7dXA==; 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 1fbQfl-0008Ay-Uy; Fri, 06 Jul 2018 13:21:17 +0000 Received: from mail-ed1-x541.google.com ([2a00:1450:4864:20::541]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fbQeq-0006Nn-Tu for linux-rockchip@lists.infradead.org; Fri, 06 Jul 2018 13:20:25 +0000 Received: by mail-ed1-x541.google.com with SMTP id w14-v6so8658700eds.6 for ; Fri, 06 Jul 2018 06:20:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id; bh=o8hTeidORJpzCT3KjhONtuv3jZND0UZrEnMsRhcRK5o=; b=HIYQ0zc/rJi6NwanmMpSG03aAjWldWJoFBHuf0HKHi0vlK1d7kOWM1TceOM2A6MbEI aFnlaHkW8gDutsPLkE93bOKb91C3sq+f105uTtOrKzH6Qzr8pK7y8SUU29fqenusGoiq 18MbckqfaoCMoiHB9OwSSOeW/qX1f3wDBmWts= 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=o8hTeidORJpzCT3KjhONtuv3jZND0UZrEnMsRhcRK5o=; b=bo1LHVeeoWIpikvWBaauHInEdDQ7UXY+/IY/AbLJlnAcV+WDv9GKdaQl1/j9swA8Xw DLoyVovYMGQ+4q7nPFFR1BoOxLfBhWfrFzt4K0dApQ7LyeACI7gQvKqjTgxrzbWBvVCG A01zw5z59CZmqTUXydTIZv6ljVGt0o/Zv0UIeeX+2dypej7GCCte7hCLt2tcGfRp6cQH sTj/wZzqkABocNceXSVVS/VE/4WZctUMWb5QxUICx3E4aDR2SuxAR98IZjHKWFjQ4ngb SmTxvhwEaFwzVRljIAvD1ZaHbECyXDStzscRM4mjWhEB8y9Zfko7VNdtse26NYD8iNf0 gk6Q== X-Gm-Message-State: APt69E3C7nCSEiGtzCWUFgMWLEAdSWBuZl9mcbNYO4LOJrm2KNMq/pQN 3sYL5ay5rLrKjhQGqQVhP3K+ug== X-Google-Smtp-Source: AAOMgpfr03+Ydswc3uT3yAxbX+9gnJr+7L01DKj4I/YkevQw0DZEzYknpvQdzwc+L+zPdaUbIIHyYQ== X-Received: by 2002:a50:ad55:: with SMTP id z21-v6mr10640609edc.142.1530883208489; Fri, 06 Jul 2018 06:20:08 -0700 (PDT) Received: from Fenrir.home ([2a02:a440:b553:1:5de6:9343:4395:cd7c]) by smtp.gmail.com with ESMTPSA id y89-v6sm4223516edy.80.2018.07.06.06.20.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 Jul 2018 06:20:07 -0700 (PDT) From: Anthony Brandon To: heiko@sntech.de, linux-rockchip@lists.infradead.org Subject: [PATCH 1/2] clk: rockchip: rk3399: fix clk_i2sout parent selection bits Date: Fri, 6 Jul 2018 15:18:51 +0200 Message-Id: <1530883132-17678-1-git-send-email-anthony@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180706_062021_761320_C9DA10E9 X-CRM114-Status: UNSURE ( 9.63 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alberto Panizzo , Anthony Brandon MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Alberto Panizzo Register, shift and mask were wrong according to datasheet. Signed-off-by: Alberto Panizzo Signed-off-by: Anthony Brandon --- drivers/clk/rockchip/clk-rk3399.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/rockchip/clk-rk3399.c b/drivers/clk/rockchip/clk-rk3399.c index bca10d6..2a8634a 100644 --- a/drivers/clk/rockchip/clk-rk3399.c +++ b/drivers/clk/rockchip/clk-rk3399.c @@ -631,7 +631,7 @@ static struct rockchip_clk_branch rk3399_clk_branches[] __initdata = { MUX(0, "clk_i2sout_src", mux_i2sch_p, CLK_SET_RATE_PARENT, RK3399_CLKSEL_CON(31), 0, 2, MFLAGS), COMPOSITE_NODIV(SCLK_I2S_8CH_OUT, "clk_i2sout", mux_i2sout_p, CLK_SET_RATE_PARENT, - RK3399_CLKSEL_CON(30), 8, 2, MFLAGS, + RK3399_CLKSEL_CON(31), 2, 1, MFLAGS, RK3399_CLKGATE_CON(8), 12, GFLAGS), /* uart */