From patchwork Wed Nov 7 22:00:57 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sylwester Nawrocki X-Patchwork-Id: 1712791 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 131AB3FC8F for ; Wed, 7 Nov 2012 22:03:43 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TWDh1-0003GF-Fu; Wed, 07 Nov 2012 22:01:51 +0000 Received: from mail-ee0-f49.google.com ([74.125.83.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TWDgy-0003Fq-Vg for linux-arm-kernel@lists.infradead.org; Wed, 07 Nov 2012 22:01:49 +0000 Received: by mail-ee0-f49.google.com with SMTP id c1so1209701eek.36 for ; Wed, 07 Nov 2012 14:01:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=CJmPSO7R2sAMg+jGgvcu6S15s5gUoh+8nVcvlSpjzOw=; b=XwhJkOvg+vWPHURV2EC1uFBbVNsiPy8D8Wl85S494HAu5pCuWcUZsxtvOvSvp3B4V4 GmY/lvpN+ALgEs1IXN/hDAjcYE16iXM08R1BsiqvpDCy8G+Wo/FeNVRvyV3Ozw+RdZPD hmR37yVcNy8ql5BZzzTEWk9+QqlMir8l3xo6D3CZVgaXvr1Avk0+82ooNOPSwIH0I/7O DaI8WIreMidkcs6/JMO371vgbVwhzi2zE7N6CaFj6JXfna7XyPmjR4/DeerxkasojbiM wkEADjyGN7fAfbOmqCIbpCIwIoNK9Ciwy3Da/lGS5ig5oD8GxK9ElBZiTs0UkDbWQM7y ee3Q== Received: by 10.14.193.134 with SMTP id k6mr20071420een.15.1352325707253; Wed, 07 Nov 2012 14:01:47 -0800 (PST) Received: from localhost.localdomain (88.Red-2-139-206.staticIP.rima-tde.net. [2.139.206.88]) by mx.google.com with ESMTPS id 42sm66420436eee.0.2012.11.07.14.01.37 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 07 Nov 2012 14:01:46 -0800 (PST) From: Sylwester Nawrocki To: kgene.kim@samsung.com Subject: [PATCH 2/2] ARM: S3C64XX: Statically define parent clock of the "camera" clock Date: Wed, 7 Nov 2012 23:00:57 +0100 Message-Id: <1352325657-28885-2-git-send-email-sylvester.nawrocki@gmail.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1352325657-28885-1-git-send-email-sylvester.nawrocki@gmail.com> References: <1352325657-28885-1-git-send-email-sylvester.nawrocki@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121107_170149_212191_BC0DF217 X-CRM114-Status: GOOD ( 13.84 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [74.125.83.49 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (sylvester.nawrocki[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Sylwester Nawrocki , linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The "camera" clock defined in arch/arm/mach-s3c64xx/clock.c has null clock source mux control register as it can have only one parent clock. In such cases there is a need to configure the parent clock statically, otherwise s3c_set_clksrc() bails out with an error message "no parent clock specified" leaving the parent clock not configured. Define statically the parent clock so it is possible to get or set rate of the "camera" clock. Reported-by: In-Bae Jeong Signed-off-by: Sylwester Nawrocki --- arch/arm/mach-s3c64xx/clock.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-s3c64xx/clock.c b/arch/arm/mach-s3c64xx/clock.c index 28041e8..85b9cf1 100644 --- a/arch/arm/mach-s3c64xx/clock.c +++ b/arch/arm/mach-s3c64xx/clock.c @@ -744,6 +744,7 @@ static struct clksrc_clk clksrcs[] = { .name = "camera", .ctrlbit = S3C_CLKCON_SCLK_CAM, .enable = s3c64xx_sclk_ctrl, + .parent = &clk_h2, }, .reg_div = { .reg = S3C_CLK_DIV0, .shift = 20, .size = 4 }, .reg_src = { .reg = NULL, .shift = 0, .size = 0 },