Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1247359rdb; Wed, 6 Dec 2023 12:51:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IGd+ANfj+CXelcuc9GVueA5a/8vxCEWAUufbbj3vg/8ITV5tUHEcrzSMYbEJHFmgBPpizvV X-Received: by 2002:a05:6a20:734e:b0:18f:cc3a:7a7 with SMTP id v14-20020a056a20734e00b0018fcc3a07a7mr1449566pzc.12.1701895918422; Wed, 06 Dec 2023 12:51:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701895918; cv=none; d=google.com; s=arc-20160816; b=vy8J+Vdty3ZwWV71XOEnCo1kUt11hAI3f6+i/SsVyBpDASVH2iy9MCDH4ojFkFuMgF u67m5kX9rJNa+tRfDAof3KytcePKjE/uJkFrPviX/dz2kY/LFwsce8Ujo+DLdCXWCeTh ZH6ZL+b8xJZASgPvmy9vV++a4agefd5V2CEIjMiJJBzjU2xp7ZF5TCqqzpoLuAfDpmsA rPC6Ce7nqGag6zH7Pf1oURgoSVMcweQR8CGDewZp7WNwzRuWDyToe0OtiNPeP5mVP3k9 G541M505JqKKOi8gxokqn7sLx5MgaV8JWmVpqB2J63+UoUxbuwqx2Bw5pT/1OTVMN7t/ 0SxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=TfQ7Fzx6KpnOTZ+0XSjMie+E2aYkENKIs80k/Irzu5c=; fh=R21zpjKbl9YWrtu/YTsLnY0FeiDryfrWDIu5g6GjEVY=; b=jzmPvWJmKdzgcIic0A1hPBNvDrH/BHn76zH6c8BrKKjK4o1I3UUr56HosZAhZ/aGo8 1bFHeJv5RCFL9giT+jJET3hfmdlPr5rZwwcld7OdrmLqeEdxki5nUQevxRxgXmP9JXIW BbT0ZqWQv1ZJh55SiGzf9H9eAkjSamZdGNVwGn2bV0c/2Xr9Mbt/WwSMFO60wdud+YIt ceF08GSMM3OCYfmwPqjo6BqWwasyBnsSACZtLUyYjfGaheFV4ks4MJKxt7UH/QoNw0TX Nj1Mchq6Mn/OMmbUjjG4ydaq1zDUtAgDqdIDP5cIO7Qq/6pVdzRCOfeX1qE9DZeHnNSr UI+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=pt8MhQ3u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id q18-20020a056a00085200b006c4d54dd60fsi484093pfk.298.2023.12.06.12.51.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 12:51:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=pt8MhQ3u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 369D580A9E02; Wed, 6 Dec 2023 12:51:42 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442897AbjLFUv2 (ORCPT + 99 others); Wed, 6 Dec 2023 15:51:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379478AbjLFUv0 (ORCPT ); Wed, 6 Dec 2023 15:51:26 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A413135; Wed, 6 Dec 2023 12:51:32 -0800 (PST) Received: from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi [213.243.189.158]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id B7702720; Wed, 6 Dec 2023 21:50:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1701895848; bh=l0ZcHpyWY6UMwv/hikDR8riOCq1MNunta8UDL42xOPs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pt8MhQ3u2yXCm1EjjVxWv5Zv/bL8rSKARO3l7kpOwKjkmNtj9aOQmXDHNL8OJNuAC ifKaRvsnm4BZC5RjcQr8zgm6YG8WPbEDJy7NpSPazH1u686mAPUNYdxIbyMdJftgFx nhNkYYUVJnEvzrkcaMGYkmNQrmUkvzsPzG+54/ss= Date: Wed, 6 Dec 2023 22:51:35 +0200 From: Laurent Pinchart To: Tomi Valkeinen Cc: Dafna Hirschfeld , Mauro Carvalho Chehab , Heiko Stuebner , Paul Elder , Alexander Stein , kieran.bingham@ideasonboard.com, umang.jain@ideasonboard.com, aford173@gmail.com, linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/4] media: rkisp1: Drop IRQF_SHARED Message-ID: <20231206205135.GB29417@pendragon.ideasonboard.com> References: <20231206-rkisp-irq-fix-v2-0-6ba4185eeb1f@ideasonboard.com> <20231206-rkisp-irq-fix-v2-1-6ba4185eeb1f@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231206-rkisp-irq-fix-v2-1-6ba4185eeb1f@ideasonboard.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 06 Dec 2023 12:51:42 -0800 (PST) Hi Tomi, Thank you for the patch. On Wed, Dec 06, 2023 at 12:12:28PM +0200, Tomi Valkeinen wrote: > In all known platforms the ISP has dedicated IRQ lines, but for some > reason the driver uses IRQF_SHARED. > > Supporting IRQF_SHARED properly requires handling interrupts even when > our device is disabled, and the driver does not handle this. To avoid > adding such code, and to be sure the driver won't accidentally be used > in a platform with shared interrupts, let's drop the IRQF_SHARED flag. > > Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart > --- > drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c b/drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c > index 2b9886fd0800..d4950294b7b9 100644 > --- a/drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c > +++ b/drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c > @@ -573,7 +573,7 @@ static int rkisp1_probe(struct platform_device *pdev) > if (irq < 0) > return irq; > > - ret = devm_request_irq(dev, irq, info->isrs[i].isr, IRQF_SHARED, > + ret = devm_request_irq(dev, irq, info->isrs[i].isr, 0, > dev_driver_string(dev), dev); > if (ret) { > dev_err(dev, "request irq failed: %d\n", ret); > -- Regards, Laurent Pinchart