Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2216724lqo; Sun, 19 May 2024 20:29:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXZd+jeYbfBx/Nvsa0WDcyPp+vnUukOtX7+lu6Nm2q0s8O9w+/FSku6ytpOifDWNKtuCJHRdlF7U52A22/IyNkNn8eg0Fc0CwzpN/iK8g== X-Google-Smtp-Source: AGHT+IHM2m2ipVbehOe+lMRMi2tfCnJR2yCy2uzbOktouu2AfrfeNf10J4gb+hx/R90zlb9PZkjn X-Received: by 2002:a05:6a21:6da1:b0:1a3:8e1d:16b8 with SMTP id adf61e73a8af0-1afde10de8emr30983296637.28.1716175778391; Sun, 19 May 2024 20:29:38 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b628a6a3b9si1397498a91.82.2024.05.19.20.29.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 May 2024 20:29:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183382-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=LAA4dx2O; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-183382-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183382-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0868D28213E for ; Mon, 20 May 2024 03:29:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 474D5F505; Mon, 20 May 2024 03:29:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="LAA4dx2O" Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on2078.outbound.protection.outlook.com [40.107.13.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DAD7ADDA3 for ; Mon, 20 May 2024 03:29:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.13.78 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716175771; cv=fail; b=hOiY1rq5ctrK6xXTeHHDI6fZAXqhXWr5Wds57cxmXFT/9MxhpukqoECjqjs7feoDwoh5lzV7eLIx8bDJCQ+0NCjkjaYScS0Uduo22pQwpzITh6UblNdgUmfruNB8E45tUXGYNsrSSxc1RyS7J3H8jWWJ78MZq5jhDj7lXQa91LM= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716175771; c=relaxed/simple; bh=uA2w3H2eS4Yw2JTzHil8/z609sa4uONvL8UJP3zouQk=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=utNbfBLZcfz4jtAWZ+p+bMqU5AM7XLeVbismCn0/3gZHU56MyIwQ1anmrSCfw4XNU6TBPYr0e5aKTyJ8WAIq75vniOncK6i0wu73mRNCQrdV5cuVZZRclHfIHoiTW5H+J2mc+XqGCyiUnT6fJpYcwKyXEIetk4iCVe39xtiB5aw= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=LAA4dx2O; arc=fail smtp.client-ip=40.107.13.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a0bvo+ri2BYk48LC2JkIrODjXeY/zGd+ilL/yTITYBcsHeZIy3Sw7W4eBKhacBXdaJ+cp7LoQcJ1Gc8a/hFv7GaP9Bb7XsAAXnjlFwKJEACAQ8Voi2DyYllKW6bYmizgj9MpevheecvC2y84x0Nd0djP6rsueRuGE1vZ5VMTw7IKQ+3Jl4y1eBsU9uF84tRlYXC7Xsr42j7ixRnrJRJ1IXFlY0WDNKR7jEW7xmurc2tkypCJMN2PZpWeKmshVK86rcrSGg+f6Phbb7wtgU/3LA4alqVcP7X2nPibTjxZx0vIphXzmCWTIj9Uwa0CeRLWFzt3vu8xS5EHek9TMwrJsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=DNjgC4d9auDv7660uuSxcI3hhwe+7wjNRReUrLharvQ=; b=FEjuw8L+qwt+arIo29p1IQxGOeTEHIbcxsnJ324s532fwTUNMRrx3DFdAlDHN0QbqlybuoXr5zswjuLaDE0iH2VgKqJaRTzVUDY831ipE8ze9gdFsJB68XluyXYpYGViLNWqjUZDUwmORnUx2ovceI9EkmUKFA4f70kh3ZVtVMYAzfu6y5X20AhNZm10QlGY7Y6P1aOXu96oZvJoaolMJQ8k7CesAPkzsjpWWD6SDdLhVAg4f+22OjgOn0+eWoU90sIEoKzftgiwC9bkMgbJYFPU3B4uvKT6BdfV/WtLbL09+n1ttqfXRg8K7D7BgLRM1R9Ao4MUbR+OfrQ+wXg4Jg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DNjgC4d9auDv7660uuSxcI3hhwe+7wjNRReUrLharvQ=; b=LAA4dx2OjO0Ckhpi8/eewdJbgrOQdhwPo1QJb9sYyO0Q+id4uJPg5B2epacBLPYr4r6MZSUxTdaLHcAu8egRNdC5c2RlZwtahJqBbalMH2g6H72YkDLVf8SjQNUKZfv7bT59glDi+Z6NvUeoZoc/6kzUZRl2P0MCI2OkkaDBI60= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) by AS8PR04MB8151.eurprd04.prod.outlook.com (2603:10a6:20b:3f3::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.35; Mon, 20 May 2024 03:29:25 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90%3]) with mapi id 15.20.7587.030; Mon, 20 May 2024 03:29:25 +0000 Message-ID: <5efe29a7-441f-4d70-b17c-5327c0a9f600@nxp.com> Date: Mon, 20 May 2024 11:29:42 +0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] drm/bridge: adv7511: Exit interrupt handling when necessary To: Dmitry Baryshkov Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, andrzej.hajda@intel.com, neil.armstrong@linaro.org, rfoss@kernel.org, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, biju.das.jz@bp.renesas.com, u.kleine-koenig@pengutronix.de, aford173@gmail.com, jani.nikula@intel.com, bli@bang-olufsen.dk, sui.jingfeng@linux.dev References: <20240516101006.2388767-1-victor.liu@nxp.com> Content-Language: en-US From: Liu Ying In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SI2PR02CA0048.apcprd02.prod.outlook.com (2603:1096:4:196::23) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|AS8PR04MB8151:EE_ X-MS-Office365-Filtering-Correlation-Id: ba43ba4c-fd41-40dc-2c87-08dc787d0c3f X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|366007|376005|7416005|1800799015; X-Microsoft-Antispam-Message-Info: =?utf-8?B?M2wrdkVWTFA0TUxQeTg1SGR3eGFoN1hVS2J1WTE1cjdiVHliaEdFV3BUUzdo?= =?utf-8?B?NTF2N1BhVG1WNm1oQ2VMYmNiWGpnay9sTEl0KzI4eTNGRjgyRldzMHJRK0Vn?= =?utf-8?B?MEkrT0x0YUZLQ01HQ0JPMDkrMmRoZGJwK255azVPM3M5R083M1lZMUlwd1Rk?= =?utf-8?B?d3VBRnBsOUdwcmdSKytMQ2ZXTCtpYVFtbUwwaEpuVEd2dmEzdHU2Vk1xdC8z?= =?utf-8?B?VUZWMnhIUjVJSk5wS3FJbUNsaTdtMnhrZTB3T0V6eDRkakhPN2ZtOUZjNU9K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E1jc1VZY2l3?= =?utf-8?B?UVBpSjBDV1NwdUNVbkFKcW9DZ0YwR1ZhNHJ4bjkyZzdXc0NkUlhrZkErTTIr?= =?utf-8?B?b29sWXMweDNuVDR1QkVKenEya0VFTzMxQWkxZnd3Rm9lYU5Kd3VKdHZVSmN4?= =?utf-8?B?eTZDOTZEa3Q0ekpibGMrbGJTbUFoMWg5SHRwM1NtK3lURzduSGM1V1V2Vy9y?= =?utf-8?B?VUs0RDg4QU04NlArT0drZTBienVWWlJQRWJKcmVOV1hKMmtpUG5kV3lkTnB4?= =?utf-8?B?amx4UWR2djg1MXdHZjAxVHRVdVNIVnRIM0FpK2QrdzU0d1loUTg4NUliVzhT?= =?utf-8?B?TGxwWGRNbDlVRmVVZjBoVXM3RkxKNlF2ZFFlcUg0dW5FTG1XMHBoQzAyUmYy?= =?utf-8?B?K2pMRlF1eElKaXhEQzkzWGJHL1FYM1NIT0gzQmc4dkcxTGwrbXJkc2FCUU9D?= =?utf-8?B?dElKWWFiWUhuRkkyMXM3ZHloLy9ubVAzdUFvZnpQNU5WRkp4U1A3YUl0Y2hC?= =?utf-8?B?VjJjLzBaYjUrQTVsUnlLaXFRUGNKT3BobjNPbmVvNzJWSnJPR3pqeGJRPT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM7PR04MB7046.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(376005)(7416005)(1800799015);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?VEZPaDBwMnAyNWIzV3FYQzdJeGVPWVRJeEVTd3h1NFpsMkxUd3FYdk9jeEFm?= =?utf-8?B?MWxhcDlZZmFRZU5QWWNXOStYa2xZN1lLaHptY2czNnFiQldvdm5DeVRYcHRT?= =?utf-8?B?N0ZkQnZEcEpMcDFzR1MrTE1yeHNF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UjV3TEJGdHJqb2RJZ2h3azBaY1A4cXE3SzJHUExZN2g4bnhyRFNV?= =?utf-8?B?cEpLb1FEek5kbnBHVGg2OFBCV21HL1pzYUZkSGtGQWY0L0xvUEVXWExXd3M1?= =?utf-8?B?OEZkaTRpUlZ1ZDgrOFBKSDNnTkE4ek04bWJYZnpoN20zajlpZVQrUmk5bll4?= =?utf-8?Q?DyaEQVhKTeo58zjZ59EPqLxcu?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ba43ba4c-fd41-40dc-2c87-08dc787d0c3f X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 May 2024 03:29:25.2561 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: DC2I6FCBFt4UMof/WzbnPkcO/A4KaZ8MrBTpzlLPijiab8lKtDQ0qK+TviO2YZ1XVs1itZNR7e0roBvY72+UKg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8151 On 5/20/24 06:11, Dmitry Baryshkov wrote: > On Thu, May 16, 2024 at 06:10:06PM +0800, Liu Ying wrote: >> Commit f3d9683346d6 ("drm/bridge: adv7511: Allow IRQ to share GPIO pins") >> fails to consider the case where adv7511->i2c_main->irq is zero, i.e., >> no interrupt requested at all. >> >> Without interrupt, adv7511_wait_for_edid() could return -EIO sometimes, >> because it polls adv7511->edid_read flag by calling adv7511_irq_process() >> a few times, but adv7511_irq_process() happens to refuse to handle >> interrupt by returning -ENODATA. Hence, EDID retrieval fails randomly. >> >> Fix the issue by checking adv7511->i2c_main->irq before exiting interrupt >> handling from adv7511_irq_process(). >> >> Fixes: f3d9683346d6 ("drm/bridge: adv7511: Allow IRQ to share GPIO pins") >> Signed-off-by: Liu Ying >> --- >> drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | 3 ++- >> 1 file changed, 2 insertions(+), 1 deletion(-) >> >> diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c b/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c >> index 6089b0bb9321..2074fa3c1b7b 100644 >> --- a/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c >> +++ b/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c >> @@ -479,7 +479,8 @@ static int adv7511_irq_process(struct adv7511 *adv7511, bool process_hpd) >> return ret; >> >> /* If there is no IRQ to handle, exit indicating no IRQ data */ >> - if (!(irq0 & (ADV7511_INT0_HPD | ADV7511_INT0_EDID_READY)) && >> + if (adv7511->i2c_main->irq && >> + !(irq0 & (ADV7511_INT0_HPD | ADV7511_INT0_EDID_READY)) && >> !(irq1 & ADV7511_INT1_DDC_ERROR)) >> return -ENODATA; > > I think it might be better to handle -ENODATA in adv7511_wait_for_edid() > instead. WDYT? Then, adv7511_cec_irq_process() will have less chance to be called from adv7511_irq_process() (assuming CONFIG_DRM_I2C_ADV7511_CEC is defined) if adv7511->i2c_main->irq is zero. But, anyway, it seems that commit f3d9683346d6 ("drm/bridge: adv7511: Allow IRQ to share GPIO pins") is even more broken to handle the CEC case, as adv7511_cec_adap_enable() may enable some interrupts for CEC. This is a bit complicated. Thoughts? Regards, Liu Ying