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 7CE39C4332F for ; Tue, 21 Dec 2021 11:52:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237289AbhLULwq (ORCPT ); Tue, 21 Dec 2021 06:52:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233650AbhLULwp (ORCPT ); Tue, 21 Dec 2021 06:52:45 -0500 Received: from mail-vk1-xa32.google.com (mail-vk1-xa32.google.com [IPv6:2607:f8b0:4864:20::a32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4436CC06173F for ; Tue, 21 Dec 2021 03:52:45 -0800 (PST) Received: by mail-vk1-xa32.google.com with SMTP id u1so4959637vkn.10 for ; Tue, 21 Dec 2021 03:52:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9RoT72BkBIwDwAqtN8oe2VpaBLgcQ2O6BxOPWBuqRYM=; b=Yaff6L0eowfZslFghL3L0+DSTeNFoBmFMyApwJyzayzgA7+4NG91znPZ8pvPKMPZY8 mu0DpDMVdeV6j1djFlTZqXp4Rt+AR6H1i1t7KrUvwBOLNiPhNgv5OlrfNznOyJHmCz7q e7/g2RjmmNtbQeSqujQkpiuRxM2k4nnnEkDT3ViwMWseLPa9E/KbJo55C8nV88B1x7Ib ZHGAfPJg9GUyXqz+nH65c8Q6UklGkuIpw5v+xz4TxfH3wwIBx1lXLAPD9bdJROAPu4Zz RokA57qtUAmwzErikWxiAKT4OMZApacbiufUJ2n9uLSc43raXjhS7vXZZxAGYK4WlgLu kMbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9RoT72BkBIwDwAqtN8oe2VpaBLgcQ2O6BxOPWBuqRYM=; b=bmtwJQnMzdI+U5z7d4pVhpP/zNbCOSRFalBh/21PTWgAVQSqoAkkTZQI4mbgv0tluH qKWrlFFu8amK8Q+/B/tqY3YiM8bFq6kzC4S3lD3qzkqk2McU8LAuex5NMk1K5qWxH6hf fJSWMQcAQVkfGx3OFJUDQQ/Oag+6n6asjqN411I1KyESTfgG3mnFpexatUokkPO84Rp/ hUR5KqpC24VWOyqI3G42A2bKnFCc1mz0cdaxKzZ8L3adNGJhOK96BpkZbBDlZa/nb1Zw vj3aQDbXXfoELxWMFXN644zlGjMvx9dCZNA+ZDxOlmkm7TdVK5UPihQfSXpQyHDAvbWm 11zw== X-Gm-Message-State: AOAM531TNMdxlianNXGAf9DUKFB4cjXsbcWAhyDqQGbPt3dSH0qD8Vzi K1YGbf1jiKKHkLQDqpd6wNBtM2/gvcoJ+COMBLVcGA== X-Google-Smtp-Source: ABdhPJzfJLWi8OE0M+qbh0Zh3HwMupQUSZ4SkQChlcipU8aJyfmojpU7ziGddb3G0oouhjO/Wu14CkPZXBjT4JAEjXY= X-Received: by 2002:a1f:a08c:: with SMTP id j134mr917542vke.35.1640087564344; Tue, 21 Dec 2021 03:52:44 -0800 (PST) MIME-Version: 1.0 References: <20211212170247.30646-1-semen.protsenko@linaro.org> <4ad8719c-1476-3226-e426-a171b46ca568@roeck-us.net> In-Reply-To: <4ad8719c-1476-3226-e426-a171b46ca568@roeck-us.net> From: Sam Protsenko Date: Tue, 21 Dec 2021 13:52:32 +0200 Message-ID: Subject: Re: [PATCH] watchdog: s3c2410: Fix getting the optional clock To: Guenter Roeck Cc: Dan Carpenter , Wim Van Sebroeck , linux-watchdog@vger.kernel.org, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 20 Dec 2021 at 23:08, Guenter Roeck wrote: > > On 12/20/21 7:15 AM, Sam Protsenko wrote: > > On Sun, 12 Dec 2021 at 19:50, Krzysztof Kozlowski > > wrote: > >> > >> On 12/12/2021 18:02, Sam Protsenko wrote: > >>> "watchdog_src" 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 WDT probe function is executed). > >>> > >>> Fixes: a4f3dc8d5fbc ("watchdog: s3c2410: Support separate source clock") > >>> Reported-by: kernel test robot > >>> Reported-by: Dan Carpenter > >>> Suggested-by: Guenter Roeck > >>> Signed-off-by: Sam Protsenko > >>> --- > >>> drivers/watchdog/s3c2410_wdt.c | 22 ++++++++++++---------- > >>> 1 file changed, 12 insertions(+), 10 deletions(-) > >>> > >> > >> > >> Reviewed-by: Krzysztof Kozlowski > >> > > > > Hi Guenter, > > > > If there are no outstanding concerns, can you please apply this one? > > Would be nice to see it in v5.17 if that's possible. > > > > I added the patch to my watchdog-next tree, but Wim handles all pull > requests. > Thanks, Guenter! Do I need to take any other actions, or Wim is going to take patches from your tree? I just checked [1] (master branch), and I can't see my patches there yet. [1] git://www.linux-watchdog.org/linux-watchdog-next.git > Thanks, > Guenter > >