Received: by 10.223.176.46 with SMTP id f43csp546389wra; Fri, 19 Jan 2018 23:42:23 -0800 (PST) X-Google-Smtp-Source: AH8x2241jszfe8rqqu+3XU/Ug8OfbXQEt987CI0KYToA5T5wQC3TUqwqVsc/NMomXfapKsSgzR1h X-Received: by 10.99.113.15 with SMTP id m15mr1262993pgc.236.1516434143468; Fri, 19 Jan 2018 23:42:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516434143; cv=none; d=google.com; s=arc-20160816; b=PkyWZfNZR5FGqxKzBbjBPfU9R7JNjTMQXTHQ7lLngLIyhv8GF3j9rZ5Khzxrtn9+bX T/C5NlBl1fPvhS9tA6TABspblMV/JO6ywiDH3FMRfuAxdr/k3cwPlRnT6lRGR0iJlkd+ Dzn1fJoiNgaZDlNnmeAo+yXJQY25R+NGnyoqRsPjYoO7LQFHNQrbUilapEQDBcjhF7eG XnfHItolg5UhGtJ7QGBbD0WJHZUexM5WHApc5Ezr1C4RFndyPJSrZ6aDBB+5tLsByJiU snMNAzlKHUFkSBzvJwOe6mIDVV+F2jEVeBUXDTOmHtoG3rZy6HjKzdCOx0wpfVlkCg7O bKjQ== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=A7t7ztCnqmiGVSpWgDm/jAyrFO6I53ltGIZes6Mrtdw=; b=Q7LlorilqsM/lFxbs+okwys2opw8L7RKZgXI54qoM0jlK7Eco0ds0sieI4jsGBVmwJ tDz8HrpXFDLef60gsNXBy7wQtZwArg/R8mM5SVbODxfwrD3BcMuc/V41q0Y1E/q5aT/U CTQhBVXNDO4Qu+8NgbiINnHRcR+ufTMPfjSRb516b6YOtiChaX9y10r8PZuURHK/WIDU j2tscU1wjyPOnpj6CrFs9e6IwaNMInGaPr61vIZmhXHxHSPc2LGZ5Sqpi/pn6KQGaaOA b5+rS7WER4Pfv5x5LfSL52xJMEqX5Sc1WZ7I+JcCo75u9/4996y3WBfTxVSI0nosqxNE ocoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LbvKrsgp; 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=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h91-v6si1508798pld.202.2018.01.19.23.42.09; Fri, 19 Jan 2018 23:42:23 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=LbvKrsgp; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754051AbeATHlg (ORCPT + 99 others); Sat, 20 Jan 2018 02:41:36 -0500 Received: from mail-it0-f66.google.com ([209.85.214.66]:45645 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750984AbeATHla (ORCPT ); Sat, 20 Jan 2018 02:41:30 -0500 Received: by mail-it0-f66.google.com with SMTP id x42so4637034ita.4; Fri, 19 Jan 2018 23:41:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=A7t7ztCnqmiGVSpWgDm/jAyrFO6I53ltGIZes6Mrtdw=; b=LbvKrsgp/P5tU3db0m7KDfRoJ6r2oVlZbqDP1vl+Odtir6Vxc25ucyB1Y/mU/9kMr5 5Vm+r6yELqDyWcAriJi1CNE471zmH4fULy7jlTuf1ZNp9cgC7lsi7f4XmiBCKDQoGAhK VtU7TR8SlH7GTbwhGhGPcdpOLiE7TM4s5J8b1TbzlohrQMScZoIegvIPLr9Kd+xM9MiN +PiX7YuyAJFNmUHk4S5IDKctoKPUuAyAguKzRa83j5W2FoZwQUodbeRqiVEiDNjb401U JucNLm95qZpS2Lona68yJtM/OaHzHLFCIyRxBich2SghCyLRqKwHb5kFmVftNzuEXlp1 5qMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=A7t7ztCnqmiGVSpWgDm/jAyrFO6I53ltGIZes6Mrtdw=; b=kCXUwLR+y80R295bOz6KZVUsmxGio88rB9k1dv6KSrh4O97fB/T+JTfFzrgkYW6rEw FUwkJwmVHy8sSCN6SraoEY5k85rlQopJhWxy1xV61xUIo70h/Z+C1sqcEryiEkouwn/6 P5RDXmRgKIQrRJ7V4R3dwz6ppZYrQll+UWahlmbP0rvmg7tLVCnvIC9n7xvPRwRoIi7Y sMEydr7vdiOofjSPpGDRne4DQIyTFhI3g2ZPhSxMx+BADAk+N4UpxqtLVxlj8u1rZiDo HdaZYdy+mrpyt30U6Hv+BEkdCg13GgtNHdQ6CwqwFDEwLqsFU5P8x36nQzlXAKa0TyBe 9IEA== X-Gm-Message-State: AKwxytemoqoGJelEqlmzVF6M5u93kd78Df46nEcEO7I4Kp1jgE2oBsMI hZA4OXIzBwyz4S+MHaTxbL9r45tlWvQfNkl80wY= X-Received: by 10.36.135.138 with SMTP id f132mr833920ite.144.1516434089371; Fri, 19 Jan 2018 23:41:29 -0800 (PST) MIME-Version: 1.0 Received: by 10.2.165.9 with HTTP; Fri, 19 Jan 2018 23:41:28 -0800 (PST) In-Reply-To: <20171230135108.6834-4-paul@crapouillou.net> References: <20171228162939.3928-2-paul@crapouillou.net> <20171230135108.6834-1-paul@crapouillou.net> <20171230135108.6834-4-paul@crapouillou.net> From: PrasannaKumar Muralidharan Date: Sat, 20 Jan 2018 13:11:28 +0530 Message-ID: Subject: Re: [PATCH v2 4/8] watchdog: JZ4740: Drop module remove function To: Paul Cercueil Cc: Ralf Baechle , Rob Herring , Mark Rutland , Wim Van Sebroeck , Guenter Roeck , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux-MIPS , open list , linux-watchdog@vger.kernel.org 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 Hi Paul, On 30 December 2017 at 19:21, Paul Cercueil wrote: > When the watchdog was configured for nowayout, and after the > userspace watchdog daemon closed the dev node without sending the > magic character, unloading this module stopped the watchdog > hardware, which was clearly a problem. > > Besides, unloading the module is not possible when the userspace > watchdog daemon is running, so it's safe to assume that we don't > need to stop the watchdog hardware in the jz4740_wdt_remove() > function. > > For this reason, the jz4740_wdt_remove() function can then be > dropped alltogether. > > Signed-off-by: Paul Cercueil > --- > drivers/watchdog/jz4740_wdt.c | 8 -------- > 1 file changed, 8 deletions(-) > > v2: New patch in this series > > diff --git a/drivers/watchdog/jz4740_wdt.c b/drivers/watchdog/jz4740_wdt.c > index fa7f49a3212c..02b9b8e946a2 100644 > --- a/drivers/watchdog/jz4740_wdt.c > +++ b/drivers/watchdog/jz4740_wdt.c > @@ -205,16 +205,8 @@ static int jz4740_wdt_probe(struct platform_device *pdev) > return 0; > } > > -static int jz4740_wdt_remove(struct platform_device *pdev) > -{ > - struct jz4740_wdt_drvdata *drvdata = platform_get_drvdata(pdev); > - > - return jz4740_wdt_stop(&drvdata->wdt); > -} > - > static struct platform_driver jz4740_wdt_driver = { > .probe = jz4740_wdt_probe, > - .remove = jz4740_wdt_remove, > .driver = { > .name = "jz4740-wdt", > .of_match_table = of_match_ptr(jz4740_wdt_of_matches), > -- > 2.11.0 > > As ".remove" is removed and wdt is required for restarting the system I am thinking that stop callback is also not required. If so does it makes sense to remove the stop callback? I can submit a patch for the same once this patch series goes in. Regards, PrasannaKumar