From patchwork Sun Nov 11 13:47:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tali Perry X-Patchwork-Id: 10677677 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7BF73109C for ; Sun, 11 Nov 2018 14:19:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5F4592A664 for ; Sun, 11 Nov 2018 14:19:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 528112A695; Sun, 11 Nov 2018 14:19:47 +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.6 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 0347A2A664 for ; Sun, 11 Nov 2018 14:19:46 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=kTSUvbOVcsmZ5BycC6fn1R7nH0OEDXeJhQwjRxUpMXA=; b=X2u mRAJMPARZb2u65pJb2/zzzI7cv2oe+Uh5RNX5iQEWpW/UCnTcWnk6FZJCQIiqvdiH/OUFA9CcrWhU Oib9huE5FESAXRhh1FA7Ggh/vR1bHC5azy0rwDjG1quc26Ao6hPuKSvHIRJ8gpgX9iWm7YxAgu2lN zAhaiiJ8gW9HEtefbWrDJ0nvHgeIP8nHv93i2LWCx3xJxPK0cQAupR59YkwNHiFqk/Y1WVCqPjmsU yTNGSpe76Ak7eddNz5elkIbT2agXUxVGRORoOWoeXR1/E2mIJvh5uh2zwbx6j0vjzklDGFno9fbjX 7qBOZoO/C12HaxpZO3I9YPjfF4k6kXA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gLqaW-0006NM-9s; Sun, 11 Nov 2018 14:19:44 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gLqaT-0006NG-WA for linux-arm-kernel@bombadil.infradead.org; Sun, 11 Nov 2018 14:19:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Jwb75/zt3inuHcieWBLhWHcPNOiK+2/v9KuJJZgS+mI=; b=2owlFHXqRVfky73WW4FclDRlE 4z1jvJ/VG8yL1mRqbCry72Bl/Ihhm9CPRsVmMjDeD/xu9uzDDY2RIifPZj08bx13WEQLXjfcW64Ub Ywe4fzdVJK4YALp85syltIPdDnQGkga7gnfYGSZ/Z5GJUu55866ObA/X4ZSIK5TW2tebU9xmmI5df g8l6z1UV1mmTRUztPH5jw7joxe+1UxwnFHbxjO4xQgr/IhTZNzg7AA3EPSH2uOhJP2nAwOpQaV2qZ F+i7f00c0hhnaR0Kc2dE0gy2nOoS23cRSkZPNqTmoAqOgHQ3RiTv6HSriXW56U8AcI5SOhPZEGlQ8 iG0vvu4SA==; Received: from 212.199.177.27.static.012.net.il ([212.199.177.27] helo=herzl.nuvoton.co.il) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gLqaM-00088N-VH for linux-arm-kernel@lists.infradead.org; Sun, 11 Nov 2018 14:19:38 +0000 Received: from taln60.nuvoton.co.il (ntil-fw [212.199.177.25]) by herzl.nuvoton.co.il (8.13.8/8.13.8) with ESMTP id wABDHN9p031814; Sun, 11 Nov 2018 15:17:24 +0200 Received: by taln60.nuvoton.co.il (Postfix, from userid 20088) id 2C4C462EDE; Sun, 11 Nov 2018 15:47:22 +0200 (IST) From: tali.perry1@gmail.com To: brendanhiggins@google.com, robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, avifishman70@gmail.com, tmaimon77@gmail.com, raltherr@google.com, mturquette@baylibre.com, sboyd@codeaurora.org Subject: [PATCH v1 0/1] clk: npcm7xx: fix base address and of_clk_get_by_name Date: Sun, 11 Nov 2018 15:47:11 +0200 Message-Id: <20181111134712.318321-1-tali.perry1@gmail.com> X-Mailer: git-send-email 2.14.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181111_091937_411485_AD7F3CDB X-CRM114-Status: GOOD ( 16.15 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, openbmc@lists.ozlabs.org, linux-kernel@vger.kernel.org, Tali Perry , Wei Yongjun , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Tali Perry Nuvoton NPCM7XX Clock Controller fix base address and of_clk_get_by_name error handling. Also update error messages to be more informative. In case clk_base allocation is erronoeous the return value is null. Also fix handling of of_clk_get_by_name returns an error. Print a better error message pointing to the dt-binding documention. This patch is re-submitted since it was already pushed to main (just the diff, without the full driver which is already in master branch.) Signed-off-by: Tali Perry Reviewed-by: Rob Herring Signed-off-by: Wei Yongjun --- Tali Perry (1): clk: npcm7xx: get fixed clocks from DT drivers/clk/clk-npcm7xx.c | 99 +++++++++++++++++++++++++++++++++++------------ 1 file changed, 75 insertions(+), 24 deletions(-)