Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3255922imm; Mon, 6 Aug 2018 01:11:30 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf+pyYcYuAxX7cm7bs/7Kfk37Q7t0UsLd8AccAGrloyvtGs3ItNvjuxb7ZZWS6Cg8ghjwVe X-Received: by 2002:a63:1126:: with SMTP id g38-v6mr13327511pgl.122.1533543090660; Mon, 06 Aug 2018 01:11:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533543090; cv=none; d=google.com; s=arc-20160816; b=gIPhC1I+2cLcvbpzU5o05T99Dy3hcjhSM1fWrdIT6gKQO2eIA4PdxUcSQrVPdNVVGp qZYrydC8UrI+ngGJm32NwB+z+2uzo24HsgGEVjRhgjFPpRD3wD9gEiJZDIhsQLUmgOFq 1AtmdOI04rimZ8ZKi7EroYcLOmNBNNy8tlmiGQeBN2FoJXfJgnQfz4atVx0riVVsIEl4 aI4kdsP8IEPU5EzgdYNMgqSgt8pD146EfaiGDAb3LO2j6QZu3fQgaLMtcQTmthPXhBCZ QtjsS/rSyyfbdD63DRfRv8G1yz7khyY93aguNnUkMZJfswYNQCaQu0hkL0kIDi6UwITA RO7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=eimaGExxmy22hgpJlpla0nnQdsAvUKlvg39aQQUlQPc=; b=DsUZv8ZjhVVVLhJn8y1K6CtRbLMTD5mnhC7E0rRRlFgiKaddzpiC0EbmLKYgLgLvDc 5IXr/MLq7tt2oW2BlnsNmPSodhQcadnCI7mnR8uzroPz2CztifOOOxzqh8lBlXZJB2aJ DVPxM9FYDzJEPiY8mC03IRM+sc2wHJYd4DFKCvK6oOmN2bTXIwcDqEuk8hJib8GssEqq bTXl7yQAS3Q2Xhta0r20wU4nxR6fB/ikdxgwerhgD6xkwMP2yKtdpKjv35GjjcKHwKJy 8BqQAigc2upeIKOHyJb7xXuM/4GMVTdkDYXYODcgh3wOGfiHdEHsRXla0Q03aYcBKAks Uphw== 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 193-v6si12926533pgh.407.2018.08.06.01.11.16; Mon, 06 Aug 2018 01:11:30 -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 S1727390AbeHFKSV (ORCPT + 99 others); Mon, 6 Aug 2018 06:18:21 -0400 Received: from gloria.sntech.de ([185.11.138.130]:40110 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727102AbeHFKSU (ORCPT ); Mon, 6 Aug 2018 06:18:20 -0400 Received: from wd0970.dip.tu-dresden.de ([141.76.111.202] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fmaam-0001QW-Qn; Mon, 06 Aug 2018 10:10:16 +0200 From: Heiko Stuebner To: djw@t-chip.com.cn Cc: linux-rockchip@lists.infradead.org, Wayne Chou , Michael Turquette , Stephen Boyd , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v0] clk: rockchip: Add pclk_rkpwm_pmu to PMU critical clocks in rk3399 Date: Mon, 06 Aug 2018 10:10:15 +0200 Message-ID: <2499930.7n9Q7JauMx@phil> In-Reply-To: <1533367862-7212-1-git-send-email-djw@t-chip.com.cn> References: <1533367862-7212-1-git-send-email-djw@t-chip.com.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Levin, Am Samstag, 4. August 2018, 09:31:02 CEST schrieb djw@t-chip.com.cn: > From: Levin Du > > PWM2 is commonly used to control voltage of PWM regulator of VDD_LOG in > RK3399. On the Firefly-RK3399 board, PWM2 outputs 40 KHz square wave > from power on and the VDD_LOG is about 0.9V. When the kernel boots > normally into the system, the PWM2 keeps outputing PWM signal. > > But the kernel hangs randomly after "Starting kernel ..." line on that > board. When it happens, PWM2 outputs high level which causes VDD_LOG > drops to 0.4V below the normal operating voltage. > > By adding "pclk_rkpwm_pmu" to the rk3399_pmucru_critical_clocks array, > PWM clock is ensured to be prepared at startup and the PWM2 output is > normal. After repeated tests, the early boot hang is gone. > > This patch works on both Firefly-RK3399 and ROC-RK3399-PC boards. > > Signed-off-by: Levin Du applied to my clk-branch Thanks for tracking that down Heiko