Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5639846ybl; Tue, 14 Jan 2020 12:22:19 -0800 (PST) X-Google-Smtp-Source: APXvYqxkm/R7/NTHiyMPGUB74KlLIApta8NiD+ZOMGiojQJqHROGG7Nk2E9eIvfXY9Lo+ybwoRgi X-Received: by 2002:aca:72d0:: with SMTP id p199mr19186110oic.40.1579033338947; Tue, 14 Jan 2020 12:22:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579033338; cv=none; d=google.com; s=arc-20160816; b=Qgw4OEeOByFMjB54RrecHtQaSbQPg0fDm1mct2rPZ0OsDkq0YrXYF1YRYKPlClFopc 1v4u3onZf0NTXVo23n63a9cH/hy7ON9PgJSDw1Qgmws4F8xFfNcp2t3/9vHio7NWaO3a 0s4OJBFT+R3WiqsOz7K7EKzmQYbs/4cGH4iW8o6a8dJCvNCubxNtTAd5NeRhxaiKDXij Kdvwz+HTtli61fj/jKT/laNWu8G2Oylp5ZNIoCdCTakxnnH40G4v6uK5Uz/c/Y02Z+xz VrGYokOcq0LdXswT0UlsS/o+HC1CUVXatJE/CCFHhhjclXPdHWHBeJLDpF5zpu29O5jI 50Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=1AY+FE68PPxAt+jxtCGJVoMX+CFiuQrJvFegXaxgy/Y=; b=iI9mV1Y+5BVtm66IG1sx3r0w5r6yUX9bORXaegwcLLY0yW9UaVD0RWGmeI87cD4mvE 6/+6X2bL73XXcc/Kdm+4LuBTQF/8SNj81YwJZ+thl7wNP4981h2jva6TAJfLMfkWmQU4 DDSwzKV3qIu3Zr+b8E6ZLvLZzoZyN2HwYDXi7U6Yoxm4JB3UhSTa0TSBmO4FRdiFv7Jd cJoqQxjV4dXWA/PHLADOCPposSGMlBCJgNxP5MpfIm4kysrEYTnIR8K5vM4doNhBqb2K lv1i9LS2dK1numwVQ3O8zm/V0SgLjBxkujQdCaucji5ekLtt3kxedPA40zJfy/U+/aGR aJeA== ARC-Authentication-Results: i=1; mx.google.com; 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 k15si7868863oij.134.2020.01.14.12.22.07; Tue, 14 Jan 2020 12:22:18 -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; 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 S1728801AbgANUUK (ORCPT + 99 others); Tue, 14 Jan 2020 15:20:10 -0500 Received: from stcim.de ([78.46.90.227]:46760 "EHLO stcim.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726839AbgANUUJ (ORCPT ); Tue, 14 Jan 2020 15:20:09 -0500 X-Greylist: delayed 1172 seconds by postgrey-1.27 at vger.kernel.org; Tue, 14 Jan 2020 15:20:08 EST Received: from [2001:4dd7:c2a1:0:a288:b4ff:fee5:f5cc] (helo=porty) by stcim with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1irSMc-0001mT-EC; Tue, 14 Jan 2020 21:00:34 +0100 Date: Tue, 14 Jan 2020 21:00:34 +0100 From: Stefan Lengfeld To: Marco Felsch Cc: support.opensource@diasemi.com, linux@roeck-us.net, Adam.Thomson.Opensource@diasemi.com, linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de Subject: Re: [PATCH] watchdog: da9062: make restart handler atomic safe Message-ID: <20200114200034.nbk6vf77ucngfs6o@porty> References: <20200113091521.5754-1-m.felsch@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200113091521.5754-1-m.felsch@pengutronix.de> X-PGP-Key: https://stefanchrist.eu/personal/Stefan_Lengfeld_0xE44A23B289092311.asc User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marco, On Mon, Jan 13, 2020 at 10:15:21AM +0100, Marco Felsch wrote: > The restart handler is executed during the shutdown phase which is > atomic/irq-less. The i2c framework supports atomic transfers since > commit 63b96983a5dd ("i2c: core: introduce callbacks for atomic > transfers") but unfortunately the regmap framework doesn't support it > yet. Hard coding the i2c stuff can be done without worries since the > DA9062 is an i2c-only device. > > Signed-off-by: Marco Felsch Reviewed-by: Stefan Lengfeld Thanks for picking up the patch and submitting it. Kind regards, Stefan