Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1492247rdb; Wed, 6 Dec 2023 23:58:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IEHpDsYdsTCvb/890r5/9M+4HJ5ekOOVT2YrZAXgyl2etAt/hGjUbuTYTni8ebs7XKO3F2W X-Received: by 2002:a17:90b:3b88:b0:286:cc63:46 with SMTP id pc8-20020a17090b3b8800b00286cc630046mr1689103pjb.34.1701935909006; Wed, 06 Dec 2023 23:58:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701935908; cv=none; d=google.com; s=arc-20160816; b=tNH40txThmAXD3uCaYEvdqqs4r7zNdbXSIuTfEiErYVEZFo+z83qb5y9Vl9QTRjO9z ZbTMc3OnMemIa07IA6iLSQw+yo5wmM0QoL8+Dxou9dA6nk6fsJ4RREYc6MyQfSJPZGEA sJP79GJfD9T6PkLkU4tqdLNhsBq6mcraBuD+XJIQEpuGSaYdKwnBiC9Me0C4eY/acK2M xbQa7CvlVYpbpmgLhLFl7YzSRnPdlYqLUdfZhIr7HN/bMggnrLndFFHScsprN0pFzyy8 afU3N9O2f52nXXDX6F4GrJqegujMkJdFMUzbVTZsARdSvzCn8rDOPHSgdDonsYjwhZGM bLuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=XGBBufSy0sS344X9Rdq66I/gydpVSbMjjSc4zalJCb8=; fh=6fL1NhFCGI+wAVvsHH1pL+P1muGn2uwGLcwd3RTuFww=; b=hfVBXrcnoG4SQmJd8z8OXUWJfE3o1LjYVl4CKXvpw8bEeC4CPMm9UG76jpVd+HL++j tYhXYEuhp8HKGnxnr7fE9TufCY7PYh12Xi2QzKW89xjhiG06skFQN4QGKlXs7oWi2mM6 rZ2Lw5Hp3zbZE20I7OauAuo58tYTQH2g3h/tSlUbinjY7o3n59vlOq5Em7A2nxm1RVpX vx+uN8iQvje5WNVy80/BjD+F7XPorSWpfP7s6Nh5cb3wg6nBdHXnct62RzCdGK4pEcp4 S3hMB6jYLK1r/Ckon/AU3NS1YHwtwXVBhpV7lC+xzwncHXE5AdvyjZdi5CbZufsXs4a2 /H7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=vfStgC4e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id s23-20020a17090aad9700b002869248f289si663773pjq.0.2023.12.06.23.58.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 23:58:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=vfStgC4e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id B3B34814C69E; Wed, 6 Dec 2023 23:58:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229783AbjLGH6G (ORCPT + 99 others); Thu, 7 Dec 2023 02:58:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229620AbjLGH6F (ORCPT ); Thu, 7 Dec 2023 02:58:05 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0168AD44; Wed, 6 Dec 2023 23:58:10 -0800 (PST) Received: from [127.0.1.1] (91-158-149-209.elisa-laajakaista.fi [91.158.149.209]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 834742E7; Thu, 7 Dec 2023 08:57:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1701935847; bh=Gz+d4XTPa6WxDzttGkhP1M41s02i069EomKAGKmGwe4=; h=From:Subject:Date:To:Cc:From; b=vfStgC4eK8Gm/J2obad28XiBPPFRClHPuJEeCUj9MNVNI/XUUXHj+8LYvq3SnOHSx xcaOfP3PXeAF55t0RIMm6EJwxf0azFXFwTWrFBsTTIUv8yH/9GGDWtUM8Kigjs74Oy ps9SYkwCS6Ov74wE8xU2Y9+9Np+IsuxDTN2u8mgI= From: Tomi Valkeinen Subject: [PATCH v3 0/4] media: rkisp1: Fix IRQ related issues Date: Thu, 07 Dec 2023 09:57:44 +0200 Message-Id: <20231207-rkisp-irq-fix-v3-0-358a2c871a3c@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAPl6cWUC/3XMSwrCMBSF4a2UjI3k2RZH7kMcpOmNvYhNTSQop Xv3tiMRHf4HzjezDAkhs0M1swQFM8aRQu8q5gc3XoBjT82UUFoqYXm6Yp44pjsP+OQglXatqxu tAqPPlIDmzTudqQfMj5heG1/kuv6TiuSCByOM9Y3pnLFH7MHlOHbRpX7v442tYFGfSP2NKEJqe svWAnQy/ECWZXkDch7T1PYAAAA= To: Dafna Hirschfeld , Laurent Pinchart , Mauro Carvalho Chehab , Heiko Stuebner , Paul Elder Cc: 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, Tomi Valkeinen X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1787; i=tomi.valkeinen@ideasonboard.com; h=from:subject:message-id; bh=Gz+d4XTPa6WxDzttGkhP1M41s02i069EomKAGKmGwe4=; b=owEBbQKS/ZANAwAIAfo9qoy8lh71AcsmYgBlcXsKsVt/tvMkaFuFsuncMAQpquAtRHte5O1mO ixMa4XM2E6JAjMEAAEIAB0WIQTEOAw+ll79gQef86f6PaqMvJYe9QUCZXF7CgAKCRD6PaqMvJYe 9XF9D/9Tt8+wsi8FEADuVy85DDxhuIvFp9tbfxE3PN1Dl8NpmiR1YVCeWaKuG3t1V3/Aao2ZQi8 1MSDRL0240/kxelyG5BFG7Jyldqa3pg0CBFH85SCehE2rbabL/mY9g9lxHn4LRTOKR7jEpGkW76 iT9DokvMU7Hoc7Zm5KglAIbE9kIocoYhAMkYFX7NQHS9CRIME/tkpwFyKMqqHAAl1oGX4lXYDlA IHlgQYEfrjSvAaBAoI49839uezGFfbt9eA9TH7bOAthTFTTGExaSauTab+FIylry07IMVmpT+9p TRTzwgqnUbWep202LMnwvZbWPciR7/GV4kCHDC2djFXvkVSDrv9SPqQ4VYZGFa8dR2LqR2W88iU iat68gsB0+NXVPThRIhcGC2dPBwdDg3ORdVVMgwo3m2Jtzt4GV2i/IWq4AkyKbYR6LdsO+KctGq qKhNUCgZ6aXxmDZUPdCULb05jax418q13ml415tx4sn48J2KQZJ09BbVUh8ul/8GFwFgi3WqXRd sYruHPrun81djESAtTwgM6/5pYrCwm8Kd/M+yArW3e5yjzKf+uE2WSwfg3EcWUJrvsvWGsZso13 DyclUhGPJgUxivOfduNaslKrH9ovSPZ89UGuJLwOWzvYYoP9+Y3qomYNkUco+iuhB69KWw79Kg5 e6Uqque49BymQkA== X-Developer-Key: i=tomi.valkeinen@ideasonboard.com; a=openpgp; fpr=C4380C3E965EFD81079FF3A7FA3DAA8CBC961EF5 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 06 Dec 2023 23:58:24 -0800 (PST) These fix a few IRQ related issues I noticed when testing i.MX8MP. This series, as of v3, is based on linux-media-stage, and does not include i.MX8MP support, as that is not in upstream yet. Signed-off-by: Tomi Valkeinen --- Changes in v3: - Rebase on linux-media-stage - Drop i.MX8MP support (which is a one line change) so that this can be based on upstream. I have still kept Adam's tested-by for imx8mp-beacon, as dropping the i.MX8MP support doesn't really affect the changes. - Use ARRAY_SIZE() in patch 3 - Link to v2: https://lore.kernel.org/r/20231206-rkisp-irq-fix-v2-0-6ba4185eeb1f@ideasonboard.com Changes in v2: - New patch: "media: rkisp1: Drop IRQF_SHARED" - Update "media: rkisp1: Fix IRQ handler return values" according to Laurent's comment. - Drop "media: rkisp1: Fix IRQ handling due to shared interrupts" - Update description for "media: rkisp1: Fix IRQ disable race issue" - Link to v1: https://lore.kernel.org/r/20231205-rkisp-irq-fix-v1-0-f4045c74ba45@ideasonboard.com --- Tomi Valkeinen (4): media: rkisp1: Drop IRQF_SHARED media: rkisp1: Fix IRQ handler return values media: rkisp1: Store IRQ lines media: rkisp1: Fix IRQ disable race issue .../media/platform/rockchip/rkisp1/rkisp1-common.h | 11 ++++++- .../media/platform/rockchip/rkisp1/rkisp1-csi.c | 14 ++++++++- .../media/platform/rockchip/rkisp1/rkisp1-dev.c | 35 ++++++++++++++++------ .../media/platform/rockchip/rkisp1/rkisp1-isp.c | 20 +++++++++++-- 4 files changed, 66 insertions(+), 14 deletions(-) --- base-commit: 8016943b5947cd485078e23899945c51e818aa63 change-id: 20231205-rkisp-irq-fix-e123a8a6732f Best regards, -- Tomi Valkeinen