Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1436407

Re: [PATCH v3 0/2] mark spi clocks as critical and enable spi3 clocks

Path csiph.com!xmission!goblin3!goblin2!goblin.stu.neva.ru!aioe.org!news.servidellagleba.it!bofh.it!news.nic.it!robomod
From Tomasz Figa <tomasz.figa@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH v3 0/2] mark spi clocks as critical and enable spi3 clocks
Date Mon, 04 Jul 2016 06:10:02 +0200
Message-ID <rR3mO-RK-5@gated-at.bofh.it> (permalink)
References <rPEqu-6Dg-29@gated-at.bofh.it>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=pxZR6ysLTN8U523XGRWVW1BIBy+KYQsn5jy/Yus8o3E=; b=xyTF5U7+PHpSN3arTj3qvBlZJ9/hz2C6qleJ17fpjLwEhn4wK6eupSz98nExler8GT Py8ltUtxOQwc1Gs2IY+Zb0dltO0h0lt9wmKOKNCpUGx4RtpSYtxFPQXdc0V0lxPPiJ3s tO7oEsr3iRihmFP9GXPFcBeyrw/rb6tZ0IjLnHC18bK9cxWkYIMVrwsogabKrcYnlxXC kvOluXaVWQeBUurqyRbbXJ0IQSB4D4oYkLRIWsWwSfPohfjmV0+SLZxF1JrlRsRSCeYk AP/W39MLrRhPLm7LL/0m2k3TUp/CySk/0JBV/Zu3DAO3/O54uEMJWEpjnsqI04hzv8FM cNxg==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=pxZR6ysLTN8U523XGRWVW1BIBy+KYQsn5jy/Yus8o3E=; b=LY61QXJ5+a9qCYxcJzLGrNZVWIZ7EOqKwFTRG+MO+oXRKZ8QiwRQ0moLWlbLxgeOqz 1Wm4FvvjrWRTw3BkLpOCUWGVW88hHfAsJlvQ1yLPnE1ryXrn9eXlsZGI/Ny+DsMgGkJG fHAYQCwOsk7gmMKc2NnaFuAW1XqsX9SL3N9fON92lt0N+FQ+fb2p5V0B7kYVPPWB7JTI TPUz/2PaNisepKnj7lcjVnAO2+C/alLjqtewCluxy7V7PUtwlmfWAnue2d7/4Obqu5EM kfUc9OVk8mnKzKGxOweEdt32hAaEffXMj+FlwIwxi64AECyRHXQ0f0Rb5uA7u1Pz6uKB Q5rw==
X-Gm-Message-State ALyK8tKqGdXX3H/HyBkazo7XMjnLHVgQm+eihuip0U4Z2fWcBTxj5AFpxUWGLB8l0LQnM+Ff6l345yX4TMqXlg==
X-Received by 10.129.148.1 with SMTP id l1mr7006113ywg.31.1467604794876; Sun, 03 Jul 2016 20:59:54 -0700 (PDT)
MIME-Version 1.0
Content-Type text/plain; charset=UTF-8
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 33
Organization linux.* mail to news gateway
X-Original-Cc Chanwoo Choi <cw00.choi@samsung.com>, Jaehoon Chung <jh80.chung@samsung.com>, Sylwester Nawrocki <s.nawrocki@samsung.com>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@codeaurora.org>, Kukjin Kim <kgene@kernel.org>, Krzysztof Kozlowski <k.kozlowski@samsung.com>, "linux-samsung-soc@vger.kernel.org" <linux-samsung-soc@vger.kernel.org>, linux-clk@vger.kernel.org, linux-arm-kernel <linux-arm-kernel@lists.infradead.org>, linux-kernel <linux-kernel@vger.kernel.org>, Andi Shyti <andi@etezian.org>
X-Original-Date Mon, 4 Jul 2016 12:59:54 +0900
X-Original-Message-ID <CA+Ln22HuCdDr=g06ynK7mqjDfUVrQgG-NRkfTP_zE6h-wZk6Gw@mail.gmail.com>
X-Original-References <1467270911-10971-1-git-send-email-andi.shyti@samsung.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1436407

Show key headers only | View raw


Hi Andi,

2016-06-30 16:15 GMT+09:00 Andi Shyti <andi.shyti@samsung.com>:
> Hi,
>
> This patchset enables spi3 clocks by marking critical clocks as
> CLK_IS_CRITICAL and in the meantime replaces the use of
> CLK_IGNORE_UNUSED for spi1 clocks.
>
> The sclk needs to be considered critical as well.
>
> The SPI3 in the tm2/tm2e boards will control an irled for remote
> controlling.
>
> Changelog:
>
> V1 -> V2
>  - the "sclk_spi3" doesn't need to be enabled in boot time as it
>   is handled by the spi driver itself.
>
>  - use the CLK_IS_CRITICAL flag for the ioclk
>
> V2 -> V3
>  - some more tests has confirmed taht "sclk_spi1,3" need to be
>    enabled as critical!

This sounds like a DTS and/or SPI and/or clock driver bug then. I'm
pretty much convinced that it might also cause other problems and this
workaround will only mask them making things even more difficult to
debug in the future. Let's not introduce more technical debt.

Best regards,
Tomasz

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v3 0/2] mark spi clocks as critical and enable spi3 clocks Andi Shyti <andi.shyti@samsung.com> - 2016-06-30 09:30 +0200
  [PATCH v3 2/2] clk: exynos5433: enable sclk_ioclk for SPI3 Andi Shyti <andi.shyti@samsung.com> - 2016-06-30 09:30 +0200
  Re: [PATCH v3 0/2] mark spi clocks as critical and enable spi3 clocks Tomasz Figa <tomasz.figa@gmail.com> - 2016-07-04 06:10 +0200
    Re: [PATCH v3 0/2] mark spi clocks as critical and enable spi3 clocks Andi Shyti <andi.shyti@samsung.com> - 2016-07-04 06:30 +0200
      Re: [PATCH v3 0/2] mark spi clocks as critical and enable spi3 clocks Tomasz Figa <tomasz.figa@gmail.com> - 2016-07-04 07:00 +0200

csiph-web