Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1379957ybi; Fri, 14 Jun 2019 13:46:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqx6Hf+Vabq0q5M2i2KNT70+yWjIOdX5mT9+BLaZnGQnEce8+WstFN90wtHYWjN0pcAlyh/w X-Received: by 2002:a65:6089:: with SMTP id t9mr36949893pgu.170.1560545171054; Fri, 14 Jun 2019 13:46:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560545171; cv=none; d=google.com; s=arc-20160816; b=FYworMo3ZFhZ1TCXX7CmMhwE7DyFPIy16M0cCE2swbN4inbI0TPzdTeE38xBBz/nds qy5aFQnydwB45R2jfmxP7vmOY/dAjXG68ZRUZvm8w/BH5LjMHn+RPcdaXmtH8iMv2eoI h+EB6s34goOaHOQsDzRnr0QZes9ekCvXRjrIH73hGZiOkoddykSkDdR01NZu1bLLi59W rNtRzceQRHFU4SaPrKYY845TpDLc4cEw8ERNuw6mPgSx/tocHB3N8BIZrc5BHj1WjrR4 BC+2AythGAoJHeVFt1SefYKON8YvCQvsxAtRVp4lQQqHmxsbu00UHuulxRbaLLx/f71R RiLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=8LJs3kHOWi3j4TbBy3wsNFShGNm1OeEJNgVtrMZGuOg=; b=bEcrqqI7xuOfLFUWhYsKxUfxAyRtTa5Z3rQO2p+dQHd6W8QEvb+X7WLrh15MPQOfnU qIewENsEoBsYvTf7tMbonIXHWk+Bs7/h740aPVFfjRZ0fDtZnhInYQq6+2/vwlrXaCY1 fN2D/yVGX2XfAQfcJ1fOGRpdQ5pTUGSbGCbKdwxhUhNFDnlFx3ewZ5dVTPiTM+Bqd9cb 6Vl5DRJPDx7dQJlKFXtVs/0U844w0k3epwR/USi9jQtNsNf6ZDn9Emu+fRj1l27AR1Rt 5T8LBxNxgU1SXJ0ECfFtEEYoMaVpoKBCPIcvFGscDGYftQ/FGL9CZr41FgVS750YwHuI KkLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aampusa.onmicrosoft.com header.s=selector2-aampusa-onmicrosoft-com header.b=tl9Tkb1O; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g3si3625866pgh.189.2019.06.14.13.45.55; Fri, 14 Jun 2019 13:46:11 -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=@aampusa.onmicrosoft.com header.s=selector2-aampusa-onmicrosoft-com header.b=tl9Tkb1O; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726806AbfFNUpd (ORCPT + 99 others); Fri, 14 Jun 2019 16:45:33 -0400 Received: from mail-eopbgr680128.outbound.protection.outlook.com ([40.107.68.128]:20294 "EHLO NAM04-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726126AbfFNUpc (ORCPT ); Fri, 14 Jun 2019 16:45:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aampusa.onmicrosoft.com; s=selector2-aampusa-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8LJs3kHOWi3j4TbBy3wsNFShGNm1OeEJNgVtrMZGuOg=; b=tl9Tkb1OcbCVBQNcdpmRSMTqcifPl8P57kZOTOxcpNmQbetbrJOB6W2VbtuqEKXgP90axSP2dxYC/lG7zml9jBRPYTGDTi8qAQlLSJj6qmfaBPp5I3kHkJ+FYUnlrRAaGmdexentvv9mY0WsIDYzB+kIyAoutkCGEI0njVROrq8= Received: from BL0PR07MB4115.namprd07.prod.outlook.com (52.132.10.149) by BL0PR07MB5521.namprd07.prod.outlook.com (20.177.242.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1965.17; Fri, 14 Jun 2019 20:45:28 +0000 Received: from BL0PR07MB4115.namprd07.prod.outlook.com ([fe80::f064:5129:63c6:d3e]) by BL0PR07MB4115.namprd07.prod.outlook.com ([fe80::f064:5129:63c6:d3e%6]) with mapi id 15.20.1965.019; Fri, 14 Jun 2019 20:45:28 +0000 From: Ken Sloat To: Alexandre Belloni CC: Guenter Roeck , "nicolas.ferre@microchip.com" , "ludovic.desroches@microchip.com" , "wim@linux-watchdog.org" , "linux-arm-kernel@lists.infradead.org" , "linux-watchdog@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v2 1/1] watchdog: atmel: atmel-sama5d4-wdt: Disable watchdog on system suspend Thread-Topic: [PATCH v2 1/1] watchdog: atmel: atmel-sama5d4-wdt: Disable watchdog on system suspend Thread-Index: AQHVIrAmpSe7ef5LPkq+gtVGV8yaCKabW/WAgAAQIfCAAAbcAIAAAenAgAAmm4CAAADR8A== Date: Fri, 14 Jun 2019 20:45:28 +0000 Message-ID: References: <20190614125310.29458-1-ksloat@aampglobal.com> <20190614164609.GA29814@roeck-us.net> <20190614180826.GD3369@piout.net> <20190614203327.GE3369@piout.net> In-Reply-To: <20190614203327.GE3369@piout.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=KSloat@aampglobal.com; x-originating-ip: [100.3.71.115] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ef799d38-ce9a-450a-4553-08d6f1093bfb x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:BL0PR07MB5521; x-ms-traffictypediagnostic: BL0PR07MB5521: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-forefront-prvs: 0068C7E410 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(396003)(136003)(376002)(346002)(39850400004)(189003)(51914003)(13464003)(199004)(8676002)(71200400001)(7736002)(68736007)(81166006)(15650500001)(74316002)(8936002)(81156014)(71190400001)(99286004)(80792005)(14444005)(52536014)(256004)(229853002)(316002)(5660300002)(66066001)(25786009)(4326008)(478600001)(2906002)(11346002)(6246003)(7696005)(476003)(186003)(102836004)(53936002)(6916009)(14454004)(6116002)(486006)(76176011)(446003)(66446008)(66556008)(6306002)(66476007)(6506007)(55016002)(86362001)(9686003)(53546011)(3846002)(966005)(54906003)(66946007)(76116006)(73956011)(305945005)(6436002)(26005)(33656002)(64756008)(72206003);DIR:OUT;SFP:1102;SCL:1;SRVR:BL0PR07MB5521;H:BL0PR07MB4115.namprd07.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: aampglobal.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 1n57G2uVzOQuQ4YESdudQgJYMrha4miz0Ca+ReHjOhlsazLzZFGPUUedvp78P+cF0zEZ0CPOJ1ziufUHKJCkwxq0Im26HSm1EWrUOZcidkfn1WJ7SWdqm9HYReNLSUqhxYmmOpm3iy1axTk14ZpHt9dZCP/t5uHx/zrCb+SlqP+VOKOJOARuYnNzGmcBbd5UeN48u5zFAg9xu9rwSArLBbNQKF2aP077oGG9mNqo18IIYqYnKbiaDQxSWxfwvx11iWqmmdX0hg+Gw0jKJ1sJHr34q/daU+RxsuaAvgUhwRTJ3xUQhRPvLK11H7mScULAfS8ce+dSYUAKqcGLwWSXFF2qXykCn5fLPuYuPzsPNw2XaoIjdj2kaZ+fXnwwnctj6JO6Wr6SWwDACXL8i2u40zPktcC0v+wTH15g2T5vn78= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: aampglobal.com X-MS-Exchange-CrossTenant-Network-Message-Id: ef799d38-ce9a-450a-4553-08d6f1093bfb X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Jun 2019 20:45:28.0817 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: e20e3a66-8b9e-46e9-b859-cb654c1ec6ea X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ken.sloat@aampglobal.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR07MB5521 X-MS-Exchange-CrossPremises-AuthAs: Internal X-MS-Exchange-CrossPremises-AuthMechanism: 04 X-MS-Exchange-CrossPremises-AuthSource: BL0PR07MB4115.namprd07.prod.outlook.com X-MS-Exchange-CrossPremises-TransportTrafficType: Email X-MS-Exchange-CrossPremises-TransportTrafficSubType: X-MS-Exchange-CrossPremises-SCL: 1 X-MS-Exchange-CrossPremises-messagesource: StoreDriver X-MS-Exchange-CrossPremises-BCC: X-MS-Exchange-CrossPremises-originalclientipaddress: 100.3.71.115 X-MS-Exchange-CrossPremises-transporttraffictype: Email X-MS-Exchange-CrossPremises-transporttrafficsubtype: X-MS-Exchange-CrossPremises-antispam-scancontext: DIR:Originating;SFV:NSPM;SKIP:0; X-MS-Exchange-CrossPremises-processed-by-journaling: Journal Agent X-OrganizationHeadersPreserved: BL0PR07MB5521.namprd07.prod.outlook.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Alexandre Belloni > Sent: Friday, June 14, 2019 4:33 PM > To: Ken Sloat > Cc: Guenter Roeck ; nicolas.ferre@microchip.com; > ludovic.desroches@microchip.com; wim@linux-watchdog.org; linux-arm- > kernel@lists.infradead.org; linux-watchdog@vger.kernel.org; linux- > kernel@vger.kernel.org > Subject: Re: [PATCH v2 1/1] watchdog: atmel: atmel-sama5d4-wdt: Disable > watchdog on system suspend >=20 > [This is an EXTERNAL EMAIL] > ________________________________ >=20 > On 14/06/2019 18:43:22+0000, Ken Sloat wrote: > > Well I'm a little confused still because there are two separate > > comments in these statements. The first within resume implies that the > > init should be called because we might have lost register values for > > some reason unexplained. >=20 > The sama5d2 has a suspend mode where power to the core is completely > cut. Only a few IPs remain powered (in the backup power domain). > Unfortunately, the watchdog is not in that domain and may lose its regist= ers. >=20 > > Then within the init it says that the bootloader might have modified > > the registers so we should check them and then update it or otherwise > > disable it. I'm not trying to pick apart the logic or anything, I'm > > just readily assuming it is good as it was already reviewed before. > > >=20 > The bootloaders may have started the watchdog (this makes sense if you > really care about reliability) and so we need to be careful to keep the p= roper > parameters. Thanks for the explanation Alexandre I appreciate it. > > So without digging into that too much, if we don't know if any of the > > runtime situations above might have occurred, then isn't it best to > > leave my patch as is? Yes this has the side effect of resetting the > > timer count, but if the init call is needed and we don't have any way > > to know if any of the situations occurred, then we have no choice right= ? > > >=20 > Until we can differentiate between suspend modes, we have no other > choice. Ok I will leave my patch as is for now then > -- > Alexandre Belloni, Bootlin > Embedded Linux and Kernel engineering > https://bootlin.com Thanks, Ken Sloat