Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2158513imm; Mon, 16 Jul 2018 03:20:11 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc21ckRyGmCWPyyRQOyhiIgF9Xt1b/ry4hfPfpM/SxB7KBxhrye+U3W2fppeEcZexqIFLBE X-Received: by 2002:a63:455c:: with SMTP id u28-v6mr15038856pgk.210.1531736411693; Mon, 16 Jul 2018 03:20:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531736411; cv=none; d=google.com; s=arc-20160816; b=wVjFiJ5XOqC1qVY6jFCk81h7Y0g6spxgzWrgtylXVQ/qgvzTwENRxAJF5sUOo1do14 GvqYKiUNdS8+b/ZEPRduEbxMjcnrhjGGJsDKfFVxJtQA+udK0ksfuovKI4csv8rSPxIo nHVTwnTtaiZqhZP7uRq7XimETCQmuGYmSWBi6TedNzHSmXVnTTt/q5Y0iwP/a7+hVYb2 ln6onfpRyunhhxACsPQSx3s16qg+6aI0ifk+zQ3QRgkY3nzLNJISTJpn4IVSqEFfD567 4xktccYSnDGNSN09BF1mCOY7gQm5SV0BMop4xqh7OlAemxW9q2gVRndKZS8dKYoUGugD O3yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=FjZJ4tMBYIFgf9L83E6rh3EIb+HlJfyXrqvzt/9VaMQ=; b=Bg6CUhsP6siWIlm0rl27j1W895dtesNv8Mbm62TykSjK53fnK+UrdOfzBNpwytDCIA v/V9uCqjR/b4ck7A8j8scDTsefeh9et0Q17BVP391W/0LgQU6UXpURd2dbxy4b2MbQPj sUNfEvBescGKf9izgFKJcaYtgbqTxlsbq8VyPWUudEdTJwl/Cgf/86m6N3ubIU9AlAa2 NvbyMKehMHaHuits/zhaLDRjzdNvrShuj0kwPxHtlKVcapunEi1Hvc6RlCx0KbOll0JE AoBJjibBWx35P1bpv+N5zbEBaLfWCycVXO3hG7YLKzMIvbzEvSuCfyV3FPP70HJKWrfk 7OdA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 t7-v6si2144170pfh.3.2018.07.16.03.19.56; Mon, 16 Jul 2018 03:20:11 -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; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728466AbeGPKqE (ORCPT + 99 others); Mon, 16 Jul 2018 06:46:04 -0400 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:50972 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727566AbeGPKqD (ORCPT ); Mon, 16 Jul 2018 06:46:03 -0400 X-Greylist: delayed 471 seconds by postgrey-1.27 at vger.kernel.org; Mon, 16 Jul 2018 06:46:03 EDT 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 w6G9eKgr003988; Mon, 16 Jul 2018 12:40:20 +0300 Received: by taln60.nuvoton.co.il (Postfix, from userid 20088) id 3FE00630C3; Mon, 16 Jul 2018 13:10:19 +0300 (IDT) From: Tali Perry To: sboyd@kernel.org, brendanhiggins@google.com, robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, weiyongjunl@huawei.com, avifishman70@gmail.com, tmaimon77@gmail.com, raltherr@google.com Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, openbmc@lists.ozlabs.org, Tali Perry , Wei Yongjun Subject: [PATCH v1 0/1] clk: npcm7xx: fix base address and of_clk_get_by_name Date: Mon, 16 Jul 2018 13:10:06 +0300 Message-Id: <20180716101007.11721-1-tali.perry1@gmail.com> X-Mailer: git-send-email 2.14.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 | 102 +++++++++++++++++++++++++++++++++++++++------- 1 file changed, 87 insertions(+), 15 deletions(-) -- 2.14.1