Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp174457rbb; Fri, 23 Feb 2024 16:44:04 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXzTFldGCQZ6QjY9eE0TlfMbyjxjaK5CVkNW9Xiv2S60H7YO0cl6OVvHGs+DnNJ0Kq9Tv7bAxwbSGLRWiX59djHMjlvJMUH9cUeXUXPvQ== X-Google-Smtp-Source: AGHT+IEg2OTwLz2xKexSoquHZhrei1DnhntTOONV7/lO2k86/EGU7sLRtSRD0ZOc9S/JhqW+Z15u X-Received: by 2002:a05:6a00:1949:b0:6e3:1fde:cb72 with SMTP id s9-20020a056a00194900b006e31fdecb72mr1823253pfk.23.1708735443813; Fri, 23 Feb 2024 16:44:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708735443; cv=pass; d=google.com; s=arc-20160816; b=x9hf7HU4D6NRrGsp/LvGuqpUTLdgMfBRVQqK2Iiv2Ct9aMqoSBa7s8rZnUq1vpl0KR Cfj3XthriBBY0wskX6GFRt4h+ZSngovh4uZG4p3MaFU88wOD+E5aSHRc9CG0+O0oQocF Cs+Fx19fxzxIGuWo8rgLkqKjuymdDOcyIXoKhDJT16KLavZbmjHLVcFYK5+0t+4qX+8J SKzQvX1JfHviEjrL3mDUDIiDnYBfpNV1f8GyBcSi5XrXuo5tyzKchgon6JmVMs+eHUGW E0GGW25/VtKzreC/xKl+1MOhkBbiTsRdpEL6xfuUlkgtFAP4A429TwBtzAmnBElQq1e3 HPhg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:feedback-id:dkim-signature:dkim-signature; bh=HuXJ6x1LTnc+2ceV2FyaIIS3r2dfwL/DtfsGQmv8C0M=; fh=s6vQZ/b8cktifHOo7Jb3F8ORtfqYzOQd2UKKSjiR26U=; b=ybM8fh0mknjkOSP+YA9BNNvGwimI77Vv6UhCbmW0plnTArRDENTL/9yE0wdRkfwDKD V38YS7FyoucOXq9FZovMez9ZvBq1w9TpbxI4P7H/LlUT1tCoI5Ecj8ddp80oaL7+WzwY L9DZ882zRAPNSKZCUq4u5PJ6NM4g0eezhW0bxgpbJqw5RYEoa6vul27xF98e8pGcR+cp vANhPB1kM1mVRi+eKw2JuYX+UdQMwXXyGzDowTgBsnN8GOxsC9zFEv15wEgxARbR1TkA vDS6OAQ5xggXDYTRpM4519fBblUNsMtdAH2Y+kRB334a0XtI6MyVNEBCpTsrWN6AONBZ o70Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@squebb.ca header.s=fm2 header.b=iSoXZxje; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="Hf/nqDL6"; arc=pass (i=1 spf=pass spfdomain=squebb.ca dkim=pass dkdomain=squebb.ca dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-79372-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79372-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id z19-20020aa785d3000000b006e4c85a8129si111163pfn.130.2024.02.23.16.44.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 16:44:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79372-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@squebb.ca header.s=fm2 header.b=iSoXZxje; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="Hf/nqDL6"; arc=pass (i=1 spf=pass spfdomain=squebb.ca dkim=pass dkdomain=squebb.ca dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-79372-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79372-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id A9E73B249E3 for ; Sat, 24 Feb 2024 00:44:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D365E17CE; Sat, 24 Feb 2024 00:43:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=squebb.ca header.i=@squebb.ca header.b="iSoXZxje"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="Hf/nqDL6" Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F0FAF139D; Sat, 24 Feb 2024 00:43:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708735432; cv=none; b=ELGqf+pZVpKEF4axPW0wrgUQDPJSM/76+DzkKPklziI4mvZFVTZPOJy75vKcWiy0EOAQNmZvo2cBgG/OHWZidK8pvdkGmZfLCJibZN/4rL4eNcG4D1CtJDznJDAeZpuyG5exbo04t0mPTHSdoBzAVtBSi3uYFTn+0J2E+Z4dPJI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708735432; c=relaxed/simple; bh=aHe/z2RQP8KthhPa74vKrrkE3v1GYWNO/gq7pW9BWAE=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=HeNU5OgDHMAiqYmf0y1s40r3XZ/CW6b/R7giw+ZpfF3+6hTWyEdkNnQI3YTZHbLo+OCJHBuFjNIxSclV8kKRNxrRYVdR6caELoIwS7fLRUeY2qkwA0gSlu6qaSTrhQ0c3U9Dgc2TrMGMnCdYFtGlHA6kITv6Fqy2NBS4pU2Mcjg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=squebb.ca; spf=pass smtp.mailfrom=squebb.ca; dkim=pass (2048-bit key) header.d=squebb.ca header.i=@squebb.ca header.b=iSoXZxje; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=Hf/nqDL6; arc=none smtp.client-ip=64.147.123.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=squebb.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=squebb.ca Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 683093200A00; Fri, 23 Feb 2024 19:43:48 -0500 (EST) Received: from imap52 ([10.202.2.102]) by compute3.internal (MEProxy); Fri, 23 Feb 2024 19:43:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=squebb.ca; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1708735427; x=1708821827; bh=HuXJ6x1LTn c+2ceV2FyaIIS3r2dfwL/DtfsGQmv8C0M=; b=iSoXZxjeYvh42TZwU58FQOhpas G0A3uBL0ydUdbY2GOLKxLX0sNT4Uo78nbDKoYj7IQnXUq0kl0SC7ZyJU1+laFFaO /Z19GnkhO3AvetJsUvcpKozQTQGgwydBna7sYARhPG8Mcoj5Ayb2MWTgs4tHCqEM +JNdR4auvR8ZUcZfumPsjrlQbk62pW9KEg1e8sllE4pPYWgw6Krf1BwwGhx0NFkk fWROG7lx3+50gKfKnJMhrgW/ccunhxKrbArh6+hFY44N/+Aw21Awn+SadOVbXTvt 4gnyhzjMWFbpoSremRAsgzkWLj3u1E6r47kvX2KRgnmN8vwyZRRjNZRKjfRA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1708735427; x=1708821827; bh=HuXJ6x1LTnc+2ceV2FyaIIS3r2df wL/DtfsGQmv8C0M=; b=Hf/nqDL6xfO3XFk/nby17+UyncTCv5tChLdt9OYX6sw7 bXoSe3aRzbemwpCq4MhPf6RSdQ9MmoMR9cm49pMLP/ZpsVxFkR/xXUy/Vd6diaxS 3u5TkR6tJrokz90GG4Q5JrlJbU+tYNnkDwomz8+b2f068vUNUn0pQQ32WEyvABUA Bt6VvI7qjaGpISbMxBPveA9xi3Sj7OCL3WduRxmm3oX0270xTS+30HN5KC6dro8/ +d0SAp0iO/tl941v8TSH37M0U9OS0N9VwjVM25LKmHw4T8F+MbMtt4QA5qg67z72 evoHnetBJtssofx1ZV/DTqcnGusGB2OsPD9y//VGOA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeejgddvhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdforghr khcurfgvrghrshhonhdfuceomhhpvggrrhhsohhnsehsqhhuvggssgdrtggrqeenucggtf frrghtthgvrhhnpeeuvefftdefjeevveejheehhfevfeelffehfefgheffjeetvddvhfdu ffegheefieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehmphgvrghrshhonhesshhquhgvsggsrdgtrg X-ME-Proxy: Feedback-ID: ic2b14614:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 67A1DC60097; Fri, 23 Feb 2024 19:43:47 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-153-g7e3bb84806-fm-20240215.007-g7e3bb848 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <4209014c-1730-4c31-87d8-4192d68bcbc6@app.fastmail.com> In-Reply-To: <6b0373a2-7750-4d57-8839-95c6fa30c6b8@roeck-us.net> References: <20230721122931.505957-1-dober6023@gmail.com> <6b0373a2-7750-4d57-8839-95c6fa30c6b8@roeck-us.net> Date: Fri, 23 Feb 2024 19:43:17 -0500 From: "Mark Pearson" To: "Guenter Roeck" , "David Ober" , wim@linux-watchdog.org Cc: linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, "David Ober" Subject: Re: [PATCH v3] Watchdog: New module for ITE 5632 watchdog Content-Type: text/plain Thanks Guenter On Fri, Feb 23, 2024, at 3:21 PM, Guenter Roeck wrote: > On 2/23/24 11:58, Mark Pearson wrote: >> On Fri, Jul 21, 2023, at 8:29 AM, David Ober wrote: >>> This modules is to allow for the new ITE 5632 EC chip >>> to support the watchdog for initial use in the Lenovo SE10 >>> >>> Signed-off-by: David Ober >>> >>> V2 Fix stop to deactivate wdog on unload of module >>> V2 Remove extra logging that is not needed >>> V2 change udelays to usleep_range >>> V2 Changed to now request region on start and release on stop instead >>> of for every ping and read/write >>> V3 add counter to while loops so it will not hang >>> V3 rework code to use platform_device_register_simple >>> V3 rework getting the Chip ID to remove duplicate code and close IO >>> V3 change some extra logging to be debug only >>> --- > [ ... ] >>> +config ITE5632_WDT >>> + tristate "ITE 5632" >>> + select WATCHDOG_CORE >>> + help >>> + If you say yes here you get support for the watchdog >>> + functionality of the ITE 5632 eSIO chip. >>> + >>> + This driver can also be built as a module. If so, the module >>> + will be called ite5632_wdt. >>> + > > [ ... ] > >> >> >> Please let us know if there is anything else needed to get this accepted. Happy to address any feedback. >> > > I am sure I commented on this before. The fact that the Lenovo SE10 uses an > ITE 5632 controller is completely irrelevant. Lenovo could decide tomorrow to > replace the ITE chip with a Nuvoton chip, use the same API to talk with it, > and the watchdog would work perfectly fine. > > This is a driver for the watchdog implemented in the embedded controller > on Lenovo SE10. It is not a watchdog driver for ITE5632. Again, the EC chip > used in that Lenovo system is completely irrelevant, even more so since > this seems to be one of those undocumented ITE chips which officially > don't even exist. Claiming that this would be a watchdog driver for ITE5632 > would be not only misleading but simply wrong. > > It seems that we can not agree on this. That means that, from my perspective, > there is no real path to move forward. Wim will have to decide if and how > to proceed. > My apologies - I hadn't realised that was the issue (my fault for missing it). Appreciate the clarification. Is this as simple as renaming this driver as (for example) a lenovo_se_wdt device, and adding in the appropriate checking during the init that it is only used on Lenovo SE10 platforms? I don't understand the concern if a different chip was used - wouldn't that need a different driver at that point? If it's more subtle than that, is there something you propose instead? Thanks Mark