From patchwork Wed Sep 27 10:40:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emiliano Ingrassia X-Patchwork-Id: 9973681 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 58E7260365 for ; Wed, 27 Sep 2017 10:44:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 53719285E4 for ; Wed, 27 Sep 2017 10:44:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 484EE28680; Wed, 27 Sep 2017 10:44:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9D2BE285E4 for ; Wed, 27 Sep 2017 10:44:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=JQ01bdEKete/Uik2gudKJ+hnCLyqcTc2hM0HpxLzR5Q=; b=pW0ADOQOKW4TZV Qr0GCerkVUEG2TbMx9kNtyKNR56RU/7HGH3s/H6KehWyO15XQQ8pqob0oOXtB7lsoBKuAcXNe7grq vix9d4pNYQAkloga2yHOO7iE7e5iCAdVjVbQyeYhCfIonPxKlyXrwhApnamA3rBFLBs50l3Pano2g x0WH1ea7Nzk+J6WDHRa8UeyLYvodKfHsySH2tdqIp13R3XS+ewPlBqzWmFs+TeY/xNfIMKNH3o+oE gfuTmI5t1KEg5csMt/YKnncj1IiJvL5k+ON1U1494muIY0RgxV0wUz0xnrEmA2RhDxpG+Q/vCQqB9 B6PvBWMieOu/okfgBLrQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dx9ou-0007qb-JK; Wed, 27 Sep 2017 10:44:00 +0000 Received: from mail-wr0-f193.google.com ([209.85.128.193]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dx9oq-0007Nx-10 for linux-amlogic@lists.infradead.org; Wed, 27 Sep 2017 10:43:58 +0000 Received: by mail-wr0-f193.google.com with SMTP id b9so4255795wra.0 for ; Wed, 27 Sep 2017 03:43:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=qKJw5692BugeBnAfvVylzQ+CGyOWw0CSpYF4MKD7Df4=; b=o8HrU02h/UQqHDorsSPb3+ekJRWwfRWJCFQl8+mgv0fi5sd5W2+ntPbFzTr2mqpeGw nLdizmhn6RnGsO9lSYiHxMuQBWe8gmxTBu1nkCVzZZbl2ZBXuiSV0XZTcLhJp5Lq6Ous rhCoWP06Ze9OcqbLs3VH7dXVQdpJNl/I1aq7Uizl6cc9+S6Nf/u3S/FTX2UXAdGfTlJJ 5El8eqUJuH3hbEYXVkTnn6T8J5CHD9ebc96HnOhW7VO+9EuyKf326OwzDTcCZnhs0zR6 zz1x0ZXiZMETTIGuaUROuk9HsUv4nAeOgQh2ga7RlQdCWijdoTj6HBZuGjy9nKdqYCg7 paRw== X-Gm-Message-State: AHPjjUivQu/l7Z1+MpLZ64RPO7rtK+5+LtCmtNP0+PPTLmd6LjwPyAp6 c/9OwGvTlbTZwG0X8wHYbJ+2UfwA X-Google-Smtp-Source: AOwi7QC1IN+e9VL4OmzIO3kS7Nv5wvtpTy2PWiIx7nKpf6/36MIJQFeI5KLXNKnYsr+RKFeZR34CdA== X-Received: by 10.223.184.251 with SMTP id c56mr1111852wrg.145.1506509013835; Wed, 27 Sep 2017 03:43:33 -0700 (PDT) Received: from ingrassia.epigenesys.com (host194-85-static.3-79-b.business.telecomitalia.it. [79.3.85.194]) by smtp.gmail.com with ESMTPSA id t36sm18500831wrc.28.2017.09.27.03.43.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Sep 2017 03:43:33 -0700 (PDT) Date: Wed, 27 Sep 2017 12:40:08 +0200 From: Emiliano Ingrassia To: Carlo Caione , Kevin Hilman , linux-amlogic@lists.infradead.org Subject: [PATCH 1/4] clk: meson8b: keep mpll2 clock enabled Message-ID: <71634468832113ec4b7e88eaed11ab673ef2bb30.1506507688.git.ingrassia@epigenesys.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.3 (2017-05-23) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170927_034356_341701_DDCB2747 X-CRM114-Status: UNSURE ( 9.24 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The mpll2 clock, enabled by the bootloader, is disabled at boot. Enabling ethernet on Odroid-C1+ board leads to DMA initialization failure caused by a timeout on reset. Keeping the mpll2 clock enabled solve this issue. Signed-off-by: Emiliano Ingrassia --- drivers/clk/meson/meson8b.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/meson/meson8b.c b/drivers/clk/meson/meson8b.c index 20ab7190d328..5096539e4a63 100644 --- a/drivers/clk/meson/meson8b.c +++ b/drivers/clk/meson/meson8b.c @@ -347,6 +347,7 @@ static struct meson_clk_mpll meson8b_mpll2 = { .ops = &meson_clk_mpll_ops, .parent_names = (const char *[]){ "fixed_pll" }, .num_parents = 1, + .flags = (CLK_SET_RATE_NO_REPARENT | CLK_IGNORE_UNUSED), }, };