Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp176945yba; Fri, 5 Apr 2019 04:35:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwNxmkYgC5PR6kh5Er6CnIvAvWM0pBNEnvXNNT6JY68yFRaKPJozz0kkptg3yEZX5mRSSKP X-Received: by 2002:a63:2983:: with SMTP id p125mr11727924pgp.262.1554464148525; Fri, 05 Apr 2019 04:35:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554464148; cv=none; d=google.com; s=arc-20160816; b=VZFMwQGBmGw5IkLcc0WZ6938Hf0xqCHZW6AXSfIeMuCmOouybmjJ1MaxKzfA9+W3DV EKT+1iIDDIz3xR6JdR1COf9uuE34Tix+ymPH+5jYjouUTXYBge8gHck6ZFxFLXC+9Au5 oLC0urhLNo8y+vP4nDcxsXdQ8jiJAC8RrKVwZ8iAC/HXLwgnCqrcOuRsETu2R62ABXcd KjXZKk2T0UYVQxVKG9klObXNViyxA2wQhGFkXVBGHl8Fr3RbcnGpkzvkH6M7PA0NNBdz zZaAFgqfaoM7LStPauWv6vJQ0O+IIP+lzx7YvGDyoiStVgtpH/Wd4BQCVCt7eaj6+mvg P/vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=wTZexRipCHrJ2Wu6TZgoKx7hDRyv5ywWn4YG4MCJmu8=; b=kxYH52cp9IeQDAuImRpdppiwcD/NLJATTq+8gyc2Z6hxi4sSLojtZeZQY+VpkrKFiu FyicyTwVJjIf3mh1lVOmJuRdrxEGatzrmEoedSQUSkdmant6auGLPf0chR5gDINjjxzX JKw04+dCKt31vhnmLjCYh48u9rEpLpW/zoep1Bf/6frOls5nlvWnMdkXnTwCDobNIT+H braqXTvSelrOBdPYnw1pVzmXQzCdaWOfcNR2NeX1rqddg+muBzm3YXjaTIDohIgypxOY /3rKMHVQY1rm+lA5pnxVmEMtt+yK1GAwlMLVaEidLtCUv3ahD5590QLuc8bqCkN5zUjr rfvQ== 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 h70si2493988pge.520.2019.04.05.04.35.33; Fri, 05 Apr 2019 04:35:48 -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 S1731161AbfDELen (ORCPT + 99 others); Fri, 5 Apr 2019 07:34:43 -0400 Received: from mx2.suse.de ([195.135.220.15]:43978 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731127AbfDELen (ORCPT ); Fri, 5 Apr 2019 07:34:43 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id F0877AD7B; Fri, 5 Apr 2019 11:34:41 +0000 (UTC) From: Nicolas Saenz Julienne To: linux-kernel@vger.kernel.org Cc: phil@raspberrypi.org, eric@anholt.net, stefan.wahren@i2se.com, Nicolas Saenz Julienne , Greg Kroah-Hartman , linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devel@driverdev.osuosl.org Subject: [PATCH 3/3] staging: vchiq: make wait events interruptible Date: Fri, 5 Apr 2019 13:34:22 +0200 Message-Id: <20190405113423.14495-4-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190405113423.14495-1-nsaenzjulienne@suse.de> References: <20190405113423.14495-1-nsaenzjulienne@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The killable version of wait_event() is meant to be used on situations where it's not meant to fail at all costs, but still have the convenience of being able to kill it if really necessary. For instance it's used while waiting on an page write on some file systems. Wait events in VCHIQ don't fit this criteria, as it's mainly used as an interface to V4L2 and ALSA devices. Signed-off-by: Nicolas Saenz Julienne --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c index 50189223f05b..41257a1df49d 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c @@ -431,7 +431,7 @@ remote_event_wait(wait_queue_head_t *wq, struct remote_event *event) if (!event->fired) { event->armed = 1; dsb(sy); - if (wait_event_killable(*wq, event->fired)) { + if (wait_event_interruptible(*wq, event->fired)) { event->armed = 0; return 0; } -- 2.21.0