Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5212157ybe; Mon, 9 Sep 2019 23:39:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqyNXAkUlILsZjsgkNwK6Y+RJui/RdBIgLif0+R7rkvhxZsQoBRwtfcnE9Cfzjt0bWf3QQj5 X-Received: by 2002:a17:906:53c1:: with SMTP id p1mr22775955ejo.227.1568097546800; Mon, 09 Sep 2019 23:39:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568097546; cv=none; d=google.com; s=arc-20160816; b=QoEa7y93YkVMChoXdJa7sGESmqlTbo3KclErrE/1uFgntNKRwIITe88fId/A+iA4K2 2dcnyWNVPiIndYg38oF815WrRQP63fEvy5OK3pd8D1LBz/YHEXyI2Wft8mSLmpbPj4kq Bp7U8KSvr3+1oeOyJp1K0lYoaIrk4Ry2aqmuBdg+YFpKMYtjYbmpgkKbkDJRos91oAqF Fdh65b8LfEmzU4o1TSFS//CFDc9ftdXNh5MBRMYPp3keKHSxj6lnnb2fWBeH/JsqubcU 4yfS0i9ECxPIQK98jdXS3cxMK0kCkIgbvdwD5nTBq3eOXSXwRlkWzDfRU8n03F3n9ws9 MOsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Q+FVrqN+TPgVuaJbEMEH4wOrjm4xLEXbmHAWOrXAKL4=; b=diuxbeIYqZ0V7q4LLBCD8EouryAfhEyot/tDX9s2VE9VRL98u6bgbcZMcwIM+U/DK9 V9nw0AO4JY4EzYHTmZiF7XrRUcPoJKS5GTOcJCBPNNHqXWeyp4ODbt5b/YQQ5fPwPgyL SHTQBIV7+04N2LU/YgGOCsvLd1h/0X+6sQb0qd4n2j7m0JNBrbtIH4eO+3kMXO8GDMQ1 eoeSAr2nRVuBje1/9ggk0trTb9RwaSSkGTzxFOk2csUizNSOUnDmewc67WmxtCMrUmbE Rn9bdWyB1dOYQm+3GGJ2dKEfg267O/EQJsPEOBlZv5Vt3X8wevKGi5p6DcftcEj02vzV r5oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VDd8X9zc; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v22si8635770ejx.54.2019.09.09.23.38.42; Mon, 09 Sep 2019 23:39:06 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VDd8X9zc; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404491AbfIILyH (ORCPT + 99 others); Mon, 9 Sep 2019 07:54:07 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:39300 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404309AbfIILyG (ORCPT ); Mon, 9 Sep 2019 07:54:06 -0400 Received: by mail-io1-f66.google.com with SMTP id d25so27927702iob.6; Mon, 09 Sep 2019 04:54:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Q+FVrqN+TPgVuaJbEMEH4wOrjm4xLEXbmHAWOrXAKL4=; b=VDd8X9zcdNLDRoJOUphP05A0tGYAcRtCichkpvkySC3B2yJlXLh6eB6Q5Yc4gCuqej +kA5Rr4Ch0sn1C20GDNoq/Ek7yQTbRsdY6oJyCEoh7acVqLTGppu+Z6BYAKDDP7ECJFe JjpTzBVM8Vo922kxFrZ8NZoCvZ7Cia0mz8utakq7eHe7hsh8gdWoDJuQHNLXfcBHt6Mc 1tQ8Ma8U+aBt9hpTILWqwmRgr9IBZsQiI3SXuh6SgTaUtQ9OrqdseupTzVS3T1FXkSiF FXBj55oCIcLNhCZHBPI8Q1qqYcpYmfmDpbM5GuvDoYEF4NeCXSQ43bJMtc08O9FlXe10 MRKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Q+FVrqN+TPgVuaJbEMEH4wOrjm4xLEXbmHAWOrXAKL4=; b=k2GQwVSpQTkvJiZ1gsg4PkNlH4LgpUvxu6Grl6x4S7W929fGi3BN1H6ZPCTno9z1vi mWzOU3PoxF+0h79fytvJfRtAhvHDCivOmzFdERf4C0VgQ8UrzQwfpmbTDo6ogkw55E4Z LVg1GtPfpOlP9nPtDySnh2JMNZzNzkO35++arKvywpRUF6cpQF+HVgipH6d8u59e4371 biNzSnML6tv3y7zJhEftj50sMjcs04a1RjoA4qzU6YziI0Z4TToVHcJ2Vh3bLEd/Bwwv x3pYdEMBAtyo1pVRUslFS/NQT/F9w+cwwucZptTQ/PGepoUSAEvwwVw4N7lcSOTOB0w1 6tcQ== X-Gm-Message-State: APjAAAUOABqrjBVW55Ap+8buaWT1aOlxEmEj09e6lJE0ivMptzTBwN6O GSEsMCHXypD29wkwKCi6W1+ZecDqwmivejObGUQ= X-Received: by 2002:a02:3b6f:: with SMTP id i47mr546015jaf.24.1568030046006; Mon, 09 Sep 2019 04:54:06 -0700 (PDT) MIME-Version: 1.0 References: <1566936978-28519-1-git-send-email-peng.fan@nxp.com> In-Reply-To: <1566936978-28519-1-git-send-email-peng.fan@nxp.com> From: Dong Aisheng Date: Mon, 9 Sep 2019 19:44:04 +0800 Message-ID: Subject: Re: [PATCH] clk: imx: lpcg: write twice when writing lpcg regs To: Peng Fan Cc: "mturquette@baylibre.com" , "sboyd@kernel.org" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "festevam@gmail.com" , Aisheng Dong , "kernel@pengutronix.de" , dl-linux-imx , Anson Huang , Jacky Bai , Abel Vesa , "linux-clk@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" 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 On Tue, Aug 27, 2019 at 4:19 PM Peng Fan wrote: > > From: Peng Fan > > There is hardware issue that: > The output clock the LPCG cell will not turn back on as expected, > even though a read of the IPG registers in the LPCG indicates that > the clock should be enabled. > > The software workaround is to write twice to enable the LPCG clock > output. > > Signed-off-by: Peng Fan Reviewed-by: Dong Aisheng Regards Aisheng