Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D4F2DC433FE for ; Mon, 13 Dec 2021 00:01:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230241AbhLMABO (ORCPT ); Sun, 12 Dec 2021 19:01:14 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:26806 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230206AbhLMABM (ORCPT ); Sun, 12 Dec 2021 19:01:12 -0500 Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20211213000109epoutp04d00ed942fa42afa10a5b66a85cd40996~AJ3oQCUTi2891328913epoutp04Y for ; Mon, 13 Dec 2021 00:01:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20211213000109epoutp04d00ed942fa42afa10a5b66a85cd40996~AJ3oQCUTi2891328913epoutp04Y DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1639353669; bh=03z7ia0SGezw5IA9IA1j01YS3syE2MIzcKfFIeXfvaU=; h=From:To:Cc:In-Reply-To:Subject:Date:References:From; b=KPUOcMAS/1kKaxhgreJy1Ql1bQmwK9QpYQ1sYpa27rPGQS9Rru8kJNP47Fl1jRSC+ 13D/O5eG97Iaximl4Yj2mKS6h2ulh66h/am1rym8gOZPPM+sAE4YM1W3zvCj/mbD+1 YY0Mw9Neh3Al+H5QKqzg7HOqYa6hxPyeQFJN70G8= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20211213000108epcas2p413abffa6c75087cbecb27885e40778e8~AJ3nrura01657716577epcas2p4H; Mon, 13 Dec 2021 00:01:08 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.36.88]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4JC1qw2g50z4x9Pq; Mon, 13 Dec 2021 00:01:00 +0000 (GMT) Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id FB.2F.10018.03D86B16; Mon, 13 Dec 2021 09:00:48 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p3.samsung.com (KnoxPortal) with ESMTPA id 20211213000048epcas2p3b9090bd3c33df59dd12c41710d8d5204~AJ3UaAqNi0436304363epcas2p3K; Mon, 13 Dec 2021 00:00:48 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20211213000048epsmtrp1b4c4553e67c664329e77f25d13ec6103~AJ3UZBHYQ1064210642epsmtrp1K; Mon, 13 Dec 2021 00:00:48 +0000 (GMT) X-AuditID: b6c32a46-a25ff70000002722-2f-61b68d30641e Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 1E.06.29871.03D86B16; Mon, 13 Dec 2021 09:00:48 +0900 (KST) Received: from KORCO082417 (unknown [10.229.8.121]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20211213000048epsmtip21d327fecccbf5caf40b8266a32d0f3f5~AJ3ULd7E90839708397epsmtip2X; Mon, 13 Dec 2021 00:00:48 +0000 (GMT) From: "Chanho Park" To: "'Sam Protsenko'" , "'Wolfram Sang'" , "'Krzysztof Kozlowski'" Cc: "'Jaewon Kim'" , , , , In-Reply-To: <20211212181057.20210-1-semen.protsenko@linaro.org> Subject: RE: [PATCH] i2c: exynos5: Fix getting the optional clock Date: Mon, 13 Dec 2021 09:00:48 +0900 Message-ID: <000001d7efb4$7c608110$75218330$@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7b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SqZUef3zOeEy+WTmi6d+30mSIsdOsVfrbjurJd1bISbcoPfStm3 dsUHPv9S0fi65VVjUZJAzqEDzYHCNyqWFbTrz+kouBB5eYHBTFn/b/r5gme2vTmwauIj7uVX E/ZdDal9duZe/qxUn4ftNgqb+Xi90yfYldk2tHJu62HjnffI+HiTvdkuw/ezLM8/v3f3wHxX Dr3PCQ5ZKuYX+Gqr10RxmExNEi2cmqHEUpyRaKjFXFScCAAYghTVHwMAAA== X-CMS-MailID: 20211213000048epcas2p3b9090bd3c33df59dd12c41710d8d5204 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20211212181103epcas2p2f366435198200c3f4bac0fdf8ad1d0a3 References: <20211212181057.20210-1-semen.protsenko@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > "hsi2c_pclk" clock is optional and may not be present for some SoCs > supported by this driver. Nevertheless, in case the clock is provided but > some error happens during its getting, that error should be handled > properly. Use devm_clk_get_optional() API for that. Also report possible > errors using dev_err_probe() to handle properly -EPROBE_DEFER error (if > clock provider is not ready by the time I2C probe function is executed). > > Fixes: c93ac09df2a8 ("i2c: exynos5: Add bus clock support") > Signed-off-by: Sam Protsenko Reviewed-by: Chanho Park