Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3325570yba; Tue, 16 Apr 2019 09:06:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqzjOReC24zaZA3nbrVKd441UiIcu0FKJqHf3AxWkNNyk3hOhj/FXBifAtIHwPDQtSNIpyAT X-Received: by 2002:a17:902:f209:: with SMTP id gn9mr35249603plb.109.1555430767525; Tue, 16 Apr 2019 09:06:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555430767; cv=none; d=google.com; s=arc-20160816; b=Yxx6Nhwb+WTAfSQcpSDaVU52mVhuwUFDlOovr2lKx7ChNfy4V0yqK588w+auX0Y84C V1s3NSt1k0hnWTYu9frgnSCVG46fZkG6n7deJS6KQFZTeXt46f+yFYMqU4kQm7qq05/z HErqdQDv7/7UhtTmnnY6OkBt505hjU1lbGR2dwcuDUS1nt6/vntxZO+aKdQ+R/XI0neE oTj9BLVoztsGiNAahqaZA31X1Ps2ZdMtkdUgLxIc31WXEakWs43mj7LuemC+jGc4S4pJ qJbMw6tnSvchfPHF+/cE8SIQhsCt+VwdAFQzvpWKqfXCSgWHBS3D6acDP+zXxxsiSH7U EjEQ== 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=BdUY84uVeA9Wr8MpIGA5SXkjUpmFmpR2B7tFJ9QuwP8=; b=pjW6CHBkprfrdu+SsAvwbB2/cBNP9pCgO7CHzQm/BXWDrrbKu4xzCG+pk7X3Z1rKJ7 afgh0g66ea2l3qn1iX1+hHcTfHmixZoJatgiEGF1yw1Wj3hDNuKkyMdPxO27zllV+1mk HvzsklX/A58k2ldqesYGokM8+8xgZ5J7hjHbjomz+K8DNklvE0lWFH/p2qiGY2IsCmjC u+Z2U0KI00tTm8P5KN6TW8jQxZ3Qc3QdPBF+DhNplp+TdkDW3E7j4U5kvSx278cGRATZ 5O0LnKSbnfFxHpb9PBdGD8Ryd7vMbvoplSp5U0NKjmsMdGcpCSkdQqagPNToeCCwHMqI ai5A== 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 f96si26647875plb.267.2019.04.16.09.05.49; Tue, 16 Apr 2019 09:06: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; 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 S1730002AbfDPQE5 (ORCPT + 99 others); Tue, 16 Apr 2019 12:04:57 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:52939 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729982AbfDPQE5 (ORCPT ); Tue, 16 Apr 2019 12:04:57 -0400 X-Originating-IP: 109.212.207.226 Received: from localhost (alyon-652-1-176-226.w109-212.abo.wanadoo.fr [109.212.207.226]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 9C2D940004; Tue, 16 Apr 2019 16:04:54 +0000 (UTC) Date: Tue, 16 Apr 2019 18:04:53 +0200 From: Alexandre Belloni To: Thomas Bogendoerfer Cc: Joshua Kinard , Alessandro Zummo , linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] rtc: ds1685: use threaded interrupt Message-ID: <20190416160453.GN3578@piout.net> References: <20190416093404.6785-1-tbogendoerfer@suse.de> <20190416093404.6785-2-tbogendoerfer@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190416093404.6785-2-tbogendoerfer@suse.de> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16/04/2019 11:34:04+0200, Thomas Bogendoerfer wrote: > Handling of extended interrupts (kickstart, wake-up, ram-clear) was > moved off to a work queue, but the interrupts aren't acknowledged > in the interrupt handler. This leads to a deadlock, if driver > is used with interrupts. To fix this we use a threaded interrupt, get rid > of the work queue and do locking with just the rtc mutex lock. > > Fixes: aaaf5fbf56f1 ("rtc: add driver for DS1685 family of real time clocks") > Signed-off-by: Thomas Bogendoerfer > --- > drivers/rtc/rtc-ds1685.c | 220 +++++++++++++++++++++------------------------ > include/linux/rtc/ds1685.h | 2 - > 2 files changed, 104 insertions(+), 118 deletions(-) > Applied, thanks. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com