Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp666557ybe; Fri, 13 Sep 2019 04:24:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqwv2WDVNEgOkt30CWGzzUMOM8LbfzUAunOv9ChJQPnWXjuFLGJVOHJl6E6yJes6obxp2sYo X-Received: by 2002:aa7:cd6f:: with SMTP id ca15mr20692364edb.172.1568373847112; Fri, 13 Sep 2019 04:24:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568373847; cv=none; d=google.com; s=arc-20160816; b=B7wf/OzVDQgl715jQbwUQmxVrmA7O9pGAMtMk4NQOQzkwksKHbx3NwTibpKPxVt8gd QixyQsRfukN73sHYf5XYNLuZXBUrbv81sBf/GHoRcV3fgqd+oM/+5OPMVdNBBJIPIssZ s6Wf/drn5+i9ozDyOxylwbryOLaonQKruLSf5AbHHH5gmYLLvyG/a9997b/A46dbi5VY EWk+hVjdqNLo2Sb8Ih5Gli8SX7Os6QukYsHmWz7gdY8eSgYLFD9h/Syq4N6opo4wm9C9 KRgV5RxJqrOw3AFzRw4d21pefuDLFxFQRjL34+vJGkzZ/vcQfuMQHw9USmbd3MnjmMFu KNFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=yoMobX+cp8FzXhuE26Q5iqWmU4wBMrUuYv1hKskRd6A=; b=tohXs+J+yi8c70wBZLsdDb+R3c2Xl8XrqJBNHJ7wD5s4WuhKAxoyc/4uqaeYbut2A5 l6CDc/EX91TJ58A1ywtvbSxmsv7rtlYGM+geoRqRRUTZLt+xbyIj1UesMSCVMko5PDGI 9vi0eE4OwP+Y6gYTwyo48q9nwMO2h3j2Gb181QWlhuHYezJLxa6TGm1zqSMNvKgpGH6x whIHyg2yBE9n/TB3l4MVKyGGDwvanPSm0m+aE9+CMHwZGwcQrGrJf595rjcQN4/MswuG 9R9xiXQFKdAr6sZS1Hs+2m67QD0ABHfYsD8diAbn9Xf9fEhJj18fvanJrQ6gK/anbGdg 6fKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Qhf0AlR2; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g31si17005391eda.399.2019.09.13.04.23.44; Fri, 13 Sep 2019 04:24:07 -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; dkim=pass header.i=@linaro.org header.s=google header.b=Qhf0AlR2; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729452AbfIMKga (ORCPT + 99 others); Fri, 13 Sep 2019 06:36:30 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:35484 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729400AbfIMKg3 (ORCPT ); Fri, 13 Sep 2019 06:36:29 -0400 Received: by mail-ed1-f65.google.com with SMTP id f24so8999181edv.2 for ; Fri, 13 Sep 2019 03:36:28 -0700 (PDT) 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=yoMobX+cp8FzXhuE26Q5iqWmU4wBMrUuYv1hKskRd6A=; b=Qhf0AlR2j+FSqbhmp1Fj7EAQaLxKBhepyLfpUOIiUsmhXO9jqJKrzDITuLM1MUNeW0 o/Tr3cee7IuwSejgIE4VBlFMQZWKuD+IxbnM6d3J7XHVfEIXViexzt7DbrOhyqfgwGKo eacId+Cr4sT3sTtp1nTEB8pKIY9YsR9FW7lObVWVdb/+wLDlQf4qvXM6UL0Fb90voIO5 uEx3E42KI9odugb/0Zl5vuqW+F1Pr875+M5rRDUpqqhe6hnGOA90vIpkgAYDW83fE0WV QmI1rG7t8BDos/V12GrP2PfN4qIupRWA40DfkwMiB/9Q0hJ1UY3imPN32L80fhhtup2q X+aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yoMobX+cp8FzXhuE26Q5iqWmU4wBMrUuYv1hKskRd6A=; b=ONxGNp33L0K/4AD+xuN9sVlweJA5lbfi9eyDmpZ3NLpbVELFOt0q6jdUzotDNFBAqy 0N2z3LywiZlidW7d5XBBwb9xrk65HWv/OBiQNn1rluqBgCGJ6Unav+x97SqsenLLHfXv 3touXByHWQv5DLtVlysgfe/txeGpZmANc6TeT0hCR9Aod+HNdl3DbeUsBd3stBQyAWHi 3JuAFgifZg0eLph5LwBA3z/LCU5i+AlZlTxUSa0UVciikAXzOBHwJ+cgUDc8TJv3y9lC 9k2RNNkfBMyQhL0YhqMdSpu0HH+4+1YQ58KJ9vRBZzKy8E0/MNX/6dLecV52qcQCeQTD /9eA== X-Gm-Message-State: APjAAAUbqWlSu4Hn13NrZ2QQmoz80XDX7lg/J8b3x2adSNeFLDX61gtE clrNWH+db4YIOM4M/OlVtrzsC+uRpgb4DV9DKx1ebQ== X-Received: by 2002:a17:906:b34a:: with SMTP id cd10mr38860564ejb.300.1568370987905; Fri, 13 Sep 2019 03:36:27 -0700 (PDT) MIME-Version: 1.0 References: <20190906203054.26725-1-jorge.ramirez-ortiz@linaro.org> <4231aab1-c538-a14f-cea1-ceb28781c7bb@roeck-us.net> <20190911175453.GA31612@roeck-us.net> In-Reply-To: <20190911175453.GA31612@roeck-us.net> From: Loic Poulain Date: Fri, 13 Sep 2019 12:36:55 +0200 Message-ID: Subject: Re: [PATCH 1/2] watchdog: pm8916_wdt: fix pretimeout registration flow To: Guenter Roeck Cc: Jorge Ramirez-Ortiz , wim@linux-watchdog.org, linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 11 Sep 2019 at 19:54, Guenter Roeck wrote: > > On Wed, Sep 11, 2019 at 10:04:12AM +0200, Loic Poulain wrote: > > Hi Guenter, Jorge, > > > > On Mon, 9 Sep 2019 at 00:50, Guenter Roeck wrote: > > > > > On 9/6/19 1:30 PM, Jorge Ramirez-Ortiz wrote: > > > > When an IRQ is present in the dts, the probe function shall fail if > > > > the interrupt can not be registered. > > > > > > > > > > The author intended differently, and did not want registration to fail > > > in this situation, following the logic that it is better to have a > > > standard watchdog without pretimeout than no watchdog at all. > > > > > > > Indeed, but I tend to agree with this change since it aligns behavior with > > other > > watchdog drivers and I assume there is a serious issue if request_irq fails. > > I suggest adding a dev_err message in such case. > > > > Copying the author; I am not inclined to accept such a change without > > > input from the driver author. > > > > > > Similar, for the deferred probe, we'll need to know from the driver author > > > if this is a concern. In general it is, but there are cases where > > > -EPROBE_DEFFER is never returned in practice (eg for some SoC watchdog > > > drivers). > > > > > > > The IRQ controller is the SPMI bus parent node whose driver (MFD_SPMI_PMIC) > > is a direct dependency of pm8916_wdt. I'm not sure in which scenario this > > could > > happen. > > > Not sure what the action item is. Accept the patch as-is (Reviewed-by > appreciated), or resubmit without the -EPROBE_DEFER check ? Reviewed-by: Loic Poulain