Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 978CD43B6CB for ; Mon, 31 Aug 2026 16:08:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788192485; cv=none; b=Ryx2JxfGhviUwwaS5logtdiTNHy/GOtRmvw71eAehbkCX7c0ckEM/BfkaWB3grq09cQe7A3q6t1AbCxfn4YGgb1MFNTqbAv9p4IzxxYgUoXFeNIz/hcoVo4R8ChhYrS3VSXkLBmQRwACHYXND1t1LC3PSOU0DODa4lvVl5QFlzo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788192485; c=relaxed/simple; bh=7wUoamM4+c7jF5tl6thS/Yftiw42UmhP7P4CTu0M+ms=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GI/rFQ7mjx7yQKOmVvUpAVUttv30QD0qJmXTfb38jb1t8monTxDitJWcVCit1gGGM8kgX/lu1NnkV4D4HGLl9RrLxT7gxarAAW0Yd/ZLpfFDy9bdrybLS6Ix672rS5ncTZh50wN+evWzuJVNC+kcpkl8wl0kKj4EeESu3tLyr4U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=p9YxMGmA; arc=none smtp.client-ip=209.85.221.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="p9YxMGmA" Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-4843750de83so357927f8f.1 for ; Mon, 31 Aug 2026 09:08:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788192482; x=1788797282; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=9PppgYVQCH9iw7pmx72bD2vKBs7GSn3BtKiFc/nksis=; b=p9YxMGmAtaXJ88ra9MRSZ9p/6j8JSlqD91saeBETDt/6QAIieFhYAPunrvoB728wZk H7emJ6HZPNf4FTLfLafTYNO0Oy/AC5KPJ+c2vM5QPJyDfGRw5HMc7B2m8MZbL6I1yCqL bPbiPMLaFgsh3Z02T5VSYNI7SRmqcbqH1WEVAy7j0HfK0F7ZOBzG6uMgvmsyvnk9VlZH L5hR86XBBOFA4+hUlOp+Hf9PU8KBRw1VXNVL7d0Rp0dE3aQTotrLzpnNlBVLOMdqt8Ac 8pI+v5Fz2lL4twibvJElwdf1peeegdzj14vwRiEmPQIps82H8mj5tHd86VlNBSScBg4O DRwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788192482; x=1788797282; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=9PppgYVQCH9iw7pmx72bD2vKBs7GSn3BtKiFc/nksis=; b=dJX8qSsaNi7f/r3Z22FRlmNOPYU6v9Tfo0yWkzHmo4zhyJYGyXWYis0MfMjpXQSh4G ddd9sxub8rZt72yvmKpL0QFtse31oS2HhSiK/cXDRnKOF7wLx6dqpY3P3jtZ+FQcOEdT yWyKXa3mu8ULp53feeJT+AxZL2/rssWALIbLYMjNVXSByUrNm2qP+/zX/6KNr6JG7Cmv +Agliso72v047N3h4+8y1mNc9K4n4E43l1Ww/C1gfctvmynxCn0NFE05xV1MmeP9jVvN 0KhQaqr+bbnbRYwARYcs+B6OmQu+TGa0xVDx/Bw01IyHZ0vQqFtpdUjbOSVYcUyNzGv3 079Q== X-Forwarded-Encrypted: i=1; AKwUvBydQGxs1AE/Axmyjhmkc1HywR4ndyKocVgk8nj/ZKiOgMrL5zafBD04Ze01gMfHreWsYVz8WuweKCFvLQ==@vger.kernel.org X-Gm-Message-State: AFuF++lVU4i+zuDzALc/U4RVGh0y4edig2wsK21CohdnsyAKiGcUMNwZ 27nPY4yctEl0tHFYO4oX7Qi/T/4btr1VmZNXBPiD7ad7DByIx/VnjmYg X-Gm-Gg: AYBFou1mq5PM+QlPY28etDEhL75FjFYxc6SlZK2V17F/i4I1Tv7phhSy1ImOzAIiu/p 9Lar8l4I1vg1e54uCCiGNLDr4MBqh6ocEqN5GcUNB4j9UA8x0tkuFVgr/oLGQX8EYqI29KIpfnD D9vzROH+fdfBa19sleP/cZIXk6p7Oxb8RIFaz6qk4S7rw1Oz6iLjak4pm0FTJNpKA6F6v/ygbC5 sOF3sqKUmuI6CskU1oFEFJ8p2hXqzNd7z42K3BYYeU1QKR3iBPtURHDGPb4tjQs5jsjKISN0k4b 1gvxkYL/Ogr1vdqZ3k2Opyyf1B+OW5GAmkDextP+am7JqHRLerofPlPpsZ4JbsReM9qXIIsWQ6v ZWytT0AEWo7lpR4H0Oaa10jAlzagOFWvY9NYImitlbOHywFXDQwxMiIlWtbU/RM4w2LUt/omj4q X/fwKDCv+vwVY8UJHYCoj9rYOi/9LjsRAzqKfNHVPyO1p/dWG80VqWEDCUPQ== X-Received: by 2002:adf:f882:0:b0:484:3cbf:f254 with SMTP id ffacd0b85a97d-48441022253mr2861178f8f.21.1788192481405; Mon, 31 Aug 2026 09:08:01 -0700 (PDT) Received: from TC-LAPTOP ([2a01:e0a:b8a:2610:ccbd:b529:37d3:c1b8]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-482fbab3f3asm23849760f8f.3.2026.08.31.09.08.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Aug 2026 09:08:01 -0700 (PDT) From: Thierry Chatard To: linux-kernel@vger.kernel.org Cc: hansg@kernel.org, lee@kernel.org, platform-driver-x86@vger.kernel.org, ilpo.jarvinen@linux.intel.com, djrscally@gmail.com, linux-media@vger.kernel.org, mchehab@kernel.org, sakari.ailus@linux.intel.com, jacopo.mondi@ideasonboard.com, nicholas@rothemail.net, andriy.shevchenko@intel.com, v.vitovt@gmail.com, Thierry Chatard Subject: [PATCH v10 1/8] mfd: intel-lpss: add resource conflict quirk for Dell Latitude 5285 Date: Mon, 31 Aug 2026 18:07:47 +0200 Message-ID: <20260831160754.9857-2-tchatard@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260831160754.9857-1-tchatard@gmail.com> References: <20260831160754.9857-1-tchatard@gmail.com> Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The Dell Latitude 5285 2-in-1 has a BIOS bug where the ACPI GEXP device and the I2C4 controller (INT3446) both claim the same MMIO region via the shared SB04 variable. This causes intel_lpss_acpi to fail binding to I2C4 with -EBUSY, preventing the front camera (OV5670) sensor from being registered. Match the affected machine by DMI and the affected device by ACPI ID, carrying QUIRK_IGNORE_RESOURCE_CONFLICTS in the ACPI match data and applying it to the per-device info in probe. This follows the quirk organisation used by the PCI counterpart. Assisted-by: Claude Code:claude-opus-4-8 Reviewed-by: Andy Shevchenko Signed-off-by: Thierry Chatard --- drivers/mfd/intel-lpss-acpi.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/drivers/mfd/intel-lpss-acpi.c b/drivers/mfd/intel-lpss-acpi.c index d4b24a717..9d7d0ad62 100644 --- a/drivers/mfd/intel-lpss-acpi.c +++ b/drivers/mfd/intel-lpss-acpi.c @@ -8,7 +8,9 @@ * Mika Westerberg */ +#include #include +#include #include #include #include @@ -171,6 +173,27 @@ static const struct acpi_device_id intel_lpss_acpi_ids[] = { }; MODULE_DEVICE_TABLE(acpi, intel_lpss_acpi_ids); +/* + * Devices that need a quirk applied only on the machines matched by + * intel_lpss_quirk_dmi[] below. The quirk to apply is carried in the + * matching entry's driver_data. + */ +static const struct acpi_device_id intel_lpss_acpi_quirk_ids[] = { + /* Dell Latitude 5285: ACPI GEXP device conflicts with I2C4 (INT3446) */ + { "INT3446", QUIRK_IGNORE_RESOURCE_CONFLICTS }, + { } +}; + +static const struct dmi_system_id intel_lpss_quirk_dmi[] = { + { + .matches = { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Dell Inc."), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Latitude 5285"), + }, + }, + { } +}; + static int intel_lpss_acpi_probe(struct platform_device *pdev) { const struct intel_lpss_platform_info *data; @@ -185,6 +208,15 @@ static int intel_lpss_acpi_probe(struct platform_device *pdev) if (!info) return -ENOMEM; + /* Apply per-device quirks that are only needed on certain machines */ + if (dmi_check_system(intel_lpss_quirk_dmi)) { + const struct acpi_device_id *id; + + id = acpi_match_device(intel_lpss_acpi_quirk_ids, &pdev->dev); + if (id) + info->quirks |= id->driver_data; + } + /* No need to check mem and irq here as intel_lpss_probe() does it for us */ info->mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); info->irq = platform_get_irq(pdev, 0); -- 2.53.0