Received: by 10.213.65.68 with SMTP id h4csp881279imn; Tue, 27 Mar 2018 10:30:00 -0700 (PDT) X-Google-Smtp-Source: AIpwx495bXs6LzMhxVyQ08H4uoBOgowQOolH7QknnsVnEGAwUkZga7VYKEFZZ0OZt52911G4huVO X-Received: by 10.99.117.73 with SMTP id f9mr153902pgn.242.1522171800295; Tue, 27 Mar 2018 10:30:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522171800; cv=none; d=google.com; s=arc-20160816; b=NLmQmpptGgrKOAPeXbz/s9mexEn2HpdIk+uVJBwvMETs775ZHvXfQVDWDlfw00vc71 l58n3etyIvE178e8HXFJewr2tK4j5F3WPGtxUNWTohYP39e3ptWGNGIknQgCqdEO91zl EhtcpOUvN3ooqFxX8qPuQWKmIb+FHupnrQ7yqMH2RGXt55WYqD3t5xR8cSu799rRhNZO dNRg7v7CW/hxwes39p1Pl1XgpmU0xf7Cgo5QUnprKjz2inK1UyaT993p7+w7gIozIMjN hB6uszL48GHLH6Gi2xUKyTwwCjJvcV+18FJM2QbyayLMpa7rF6W4DUfnhmo/yzX4WquN PzFQ== 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=dVp5EIHLioBRt+rKg0gvhDaK+I8nhfe1h6RGTGHOSrM=; b=RIgn7GOpjTBcLec2VaOsXnrFraviezcM0cs7j7z2qlf75WyOTYjeqsKLYofBb1/jlk G+DQwdcyQWJJm67uA02tlpri1rmHKUkR01amk6ovcCfRP0thPVCzb0RHLOrRmJZn4FyG ekoJXB8vg+5y9f51DgYIoMENyBwoOCdtu05NusOw2G4I0g2gjcDtgUKZSJcZvkoniMul 5tlebQk80ykJpr2DmW0rOPHOzV1PRzQDjm13wlt83Rkum52i0zhJEuDiJFnuc7Ji0f6P Gn1O6/QGwX7ILxmgxQdZrQV7wuk9mfWgrhRB2x052Oj9Jkddar73NH/0MyhjKEHYP2a9 y2fA== 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 r25si1105908pge.759.2018.03.27.10.29.45; Tue, 27 Mar 2018 10:30:00 -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 S1754701AbeC0QgZ (ORCPT + 99 others); Tue, 27 Mar 2018 12:36:25 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:45764 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751486AbeC0QgW (ORCPT ); Tue, 27 Mar 2018 12:36:22 -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 36F81ED4; Tue, 27 Mar 2018 16:36:22 +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.14 025/101] clk: bcm2835: Fix ana->maskX definitions Date: Tue, 27 Mar 2018 18:26:57 +0200 Message-Id: <20180327162751.530321867@linuxfoundation.org> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180327162749.993880276@linuxfoundation.org> References: <20180327162749.993880276@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.14-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 @@ -479,17 +479,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,