Received: by 10.213.65.68 with SMTP id h4csp867409imn; Tue, 27 Mar 2018 10:13:33 -0700 (PDT) X-Google-Smtp-Source: AIpwx49zbLX3+O4bwntsx6+6DtmdCoSSYBdPTszMokwC9F34qVt13vhrYYg3sHET29xrSKV6mJMw X-Received: by 2002:a17:902:d81:: with SMTP id 1-v6mr162173plv.324.1522170813780; Tue, 27 Mar 2018 10:13:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522170813; cv=none; d=google.com; s=arc-20160816; b=nF8bafr/BUvqRylVYmklBlpdk6KW8VxA0rZNsqmpx11cZOzFysISxJY6pmfTJQyNxr uO1r/DXzC9TIhlPG0bvvGwKBSr3KRX7ybgWd/ZvPoUYOvDGqz8wrlNi3PA7XNALv0p1F Is4C1xcYEyHdz7H/Rhu6LKHjqC0ApeVQ8JyrJhoTeHsB+ewMw8ELK/zvBnu2asXOYilm NxDq7RIGoLWJQOK2xjjXooEQ3HeseNJ9Z0CM024WYQ/nl67w0SEKzA3E64oXFNurZtFQ ji0sDlEtDeSRsPVCwiPX6wESqaI9+qYhtl9zEwmYzM7zgBRGbNQ7TkpEDaRwvAEHiMlv Qngw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=kw9ubnZdmgoAH8N2J5VSq4A5m2UhFMQ3Dy6ZuZg7JkE=; b=FgWsYMQ1Z5L5bKPK4PLYYTxtQ2JL7EfQfnuIjt5x1qodyEpY4ueew2J6klVLp6RJXx MC4jSCFgmvb3NIqfDVa69CVqrK7c+lhJzg+X83FCErf1UDej4SE662veUVsQzkdWzeSh MaVyK35uEMMMqyfYVbApDnE8XGZ1/BhnpZbO0K3yM7J5KARd3tE1SgXObkziLQEinVqL Q26I9W12JFKl3d5rkzcmY/6cv8stNicdfuidelQRA0A9kwLHbJAaxqS3fsbimsiC9dx7 3pTZlPQALUy1P6vzetgadteY853Y9vw8BSvLnrKN/9e0vEUBsuDohnyiBwz4qDSSViJ2 Kmeg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 85si1099232pfo.234.2018.03.27.10.13.19; Tue, 27 Mar 2018 10:13:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755353AbeC0RKr (ORCPT + 99 others); Tue, 27 Mar 2018 13:10:47 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:47250 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932262AbeC0Qja (ORCPT ); Tue, 27 Mar 2018 12:39:30 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 4A6031076; Tue, 27 Mar 2018 16:39:29 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Boris Brezillon , Eric Anholt , Stephen Boyd Subject: [PATCH 4.15 025/105] clk: bcm2835: Fix ana->maskX definitions Date: Tue, 27 Mar 2018 18:27:05 +0200 Message-Id: <20180327162758.942471054@linuxfoundation.org> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180327162757.813009222@linuxfoundation.org> References: <20180327162757.813009222@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Boris Brezillon commit 49012d1bf5f78782d398adb984a080a88ba42965 upstream. ana->maskX values are already '~'-ed in bcm2835_pll_set_rate(). Remove the '~' in the definition to fix ANA setup. Note that this commit fixes a long standing bug preventing one from using an HDMI display if it's plugged after the FW has booted Linux. This is because PLLH is used by the HDMI encoder to generate the pixel clock. Fixes: 41691b8862e2 ("clk: bcm2835: Add support for programming the audio domain clocks") Cc: Signed-off-by: Boris Brezillon Reviewed-by: Eric Anholt Signed-off-by: Stephen Boyd Signed-off-by: Greg Kroah-Hartman --- drivers/clk/bcm/clk-bcm2835.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- a/drivers/clk/bcm/clk-bcm2835.c +++ b/drivers/clk/bcm/clk-bcm2835.c @@ -449,17 +449,17 @@ struct bcm2835_pll_ana_bits { static const struct bcm2835_pll_ana_bits bcm2835_ana_default = { .mask0 = 0, .set0 = 0, - .mask1 = (u32)~(A2W_PLL_KI_MASK | A2W_PLL_KP_MASK), + .mask1 = A2W_PLL_KI_MASK | A2W_PLL_KP_MASK, .set1 = (2 << A2W_PLL_KI_SHIFT) | (8 << A2W_PLL_KP_SHIFT), - .mask3 = (u32)~A2W_PLL_KA_MASK, + .mask3 = A2W_PLL_KA_MASK, .set3 = (2 << A2W_PLL_KA_SHIFT), .fb_prediv_mask = BIT(14), }; static const struct bcm2835_pll_ana_bits bcm2835_ana_pllh = { - .mask0 = (u32)~(A2W_PLLH_KA_MASK | A2W_PLLH_KI_LOW_MASK), + .mask0 = A2W_PLLH_KA_MASK | A2W_PLLH_KI_LOW_MASK, .set0 = (2 << A2W_PLLH_KA_SHIFT) | (2 << A2W_PLLH_KI_LOW_SHIFT), - .mask1 = (u32)~(A2W_PLLH_KI_HIGH_MASK | A2W_PLLH_KP_MASK), + .mask1 = A2W_PLLH_KI_HIGH_MASK | A2W_PLLH_KP_MASK, .set1 = (6 << A2W_PLLH_KP_SHIFT), .mask3 = 0, .set3 = 0,