Received: by 10.213.65.68 with SMTP id h4csp907878imn; Tue, 27 Mar 2018 10:59:47 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/0rFfCGsBkqhTsDTiM/r5Vg1FRbpHmJK+FQxx+s4DwKGo2QPshitX9H1QXuUeZyboev05d X-Received: by 2002:a17:902:44c:: with SMTP id 70-v6mr307156ple.354.1522173587016; Tue, 27 Mar 2018 10:59:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522173586; cv=none; d=google.com; s=arc-20160816; b=TvjQbfkQ5qWSecLdy/06SSN0wOydcdMBdsix1HB78dEJAfSpvtuLaRMRYxqr3pDsuZ LypnggG2aVWG8UXp3IBO6vA4yF76T6CEVTF6ZNwWpxTcwFUrYY2qJO711n7wCmb1ZnC7 zlc2CY8a16GS8Nq9+2IPbphXZKTmYol3Efk9ezFbH1qwHPpPdGr1hlGAOPAhKa6pJv10 Wou00J0zzb5ITB6ftsZtUPLgTTLt+xM+gyIMCcS0SzBvf0COBF/TA/bO7YcwviwsVtWM /Xmd4IUsyOygtMHiQ9Bg+vlwrDBANez3A2MMoEkqsFubiaSG7EvjH0dbSnnACcN2IJbK 0A+A== 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=cX6KD/9Jpj3M1vZKYc7lFdyz6zSzQSa728ABF6JM6eE=; b=sBPYghCsKsTOfy/JYJKusSvRndxPPghyGqs2HQRdn3j2tPrCnEDRT9xzVKxY93HQtJ Qzvvs5ujeQxmm41DrpO6ia0j90E6kI4aFydzFq6eFiNAPn/I2ActZk7aBLDHe/ViwwBn rjQGV4k9vKlzT7VF3PXY1C5/rA+NlRavdLAeuFqeg/e+xcOMIvDpXuceLokFwlnesgkO T5Ch8BTE8V0cKEvvSlKWLM9BMmi/O7/pEyA/3UuOhnGtXWqM0Aid/r8BiPIfvCBeuba+ JghOiFsZ+du2oj1ck/UwyLrK/3ha7wa6dZTekeNZw0m6DSEZKjeJRL7g4H894XeNJUZs f9bw== 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 n1-v6si1670054pld.692.2018.03.27.10.59.32; Tue, 27 Mar 2018 10:59:46 -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 S1753165AbeC0Qaq (ORCPT + 99 others); Tue, 27 Mar 2018 12:30:46 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:42128 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753068AbeC0Qan (ORCPT ); Tue, 27 Mar 2018 12:30:43 -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 3AC7F11B6; Tue, 27 Mar 2018 16:30:43 +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.9 10/67] clk: bcm2835: Fix ana->maskX definitions Date: Tue, 27 Mar 2018 18:27:02 +0200 Message-Id: <20180327162727.253246272@linuxfoundation.org> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180327162726.702411083@linuxfoundation.org> References: <20180327162726.702411083@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.9-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 @@ -401,17 +401,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,