From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 F03D43AEF2A for ; Wed, 19 Aug 2026 14:01:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787148083; cv=none; b=DEF9YkTZFbaLN+UpTQ6BA2sgHYl1Tg32S/Qst1wEtVXuHFkNsW95jR7f+b61+bbzkG4VSAeGZY3KAJfzBlGOWI8SN750gCm0FwIirYOLCLPjQFpp1iateX4bQdiet3q3BPZ/HfiDhBvhb+BzHN7V4RZ1CC+eMfkf8Rvy9mZLRiE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787148083; c=relaxed/simple; bh=jGEqquZ2fD8KfC6B3eKEDe79Xup6NmyDIFmkXgCEm9k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cV+B4ffpNXoceLDPxlm9+Faz4BWTH09r8HjBP28woN58sCWPn4T9coRFq0kG6mora8EPbNJPWzTOh+dk0d+Ly3qZ+sQ+OPu7sofqMhpx1yh7K2TAfKvLUVTImMMNSL5PrOfpOpUxXuyY2zwplz+j6JoJzQupdOTcK+wFk1ZpQu8= 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=gAWXJJRT; arc=none smtp.client-ip=209.85.128.46 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="gAWXJJRT" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-499ae1c6471so4039385e9.3 for ; Wed, 19 Aug 2026 07:01:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787148078; x=1787752878; 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=Njwz4GpR6Lsmc9++a5m2bWV+NAXHXBWZE5m0XlH/aas=; b=gAWXJJRTR2+10sOkexBeSWd5j9MwLQmFi75lqYj4IZU25t+RSQUXFgx4kgo8tSHhO6 S8PE6io5ZjSb6ZIAw2kj4A9Krnv81f4mDc2K29zDAcHvF186n5+3DGs9e9xHGMX44bQm r9BhedyICLMeX6LemI7/oProm6RgJxJvSlp8USwCnrJhZWPX7/tqnlh5U/hn62LdLuO0 KXLuwQkZIR72izGiRpZmFGxvsErVwl32la0zq1TMylLCDuOAapBzmpp9gMr2tpluw1U5 U3Ewq5pC3rwIrFiyNtByJzH/gWAh6tCQXWR9rq+g6sBcjSTGWWYArckcANyEVb1KjVIh DPPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787148078; x=1787752878; 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=Njwz4GpR6Lsmc9++a5m2bWV+NAXHXBWZE5m0XlH/aas=; b=bTi+1nqTapmlFxorrzh8PDhv2Fo3sdVQuc9CKFx3iFjBgBwpREnhrz9ekGhStLzQla wEOGm2pq0T1AWS5bMTdwIvOsv3UR+OS19mvZWDStzc/2aZB3dVXAhGQUyX8V3s/LvAG5 VJ6NgpQ36IVZSwDfmWhpn4/CuYzOy6plzFtR3cuHxNGOEcaWhG/4Zkiig31xYcBx3NuY zdK9VdfVrzyiym+gJpCwlkLQOZmaiG3tZU8rgxMGXcGYCQCjATw/pdQ7EudyVmi4w3Tk DPpHdkx2z0ZZMtwI/jtukyPdQicvDeik5M7F4wtkuEXFcz80LixK4rwIO3SGluToi7bd qq1w== X-Gm-Message-State: AOJu0YytqE7vPUWPIfQXPDLB8r8WzBl7dW7Iz8tkKIxGIT6PV3HPXBOX qLmAKxIY40hzCx44JOhe+Ku0NecIPMK8sShKtjnx+/5i9cJeLO/SzRWlTanQ3+aTx24rpw== X-Gm-Gg: AR+sD13gQwe+aMb4U8ak9ec0ityWW4xVx9Q0LYksK9XfWF8BfdHsTIHpbyXwqQ9oVEl D+DUXtFxY/0D3TsxkSlkI5FdkErVWhJ7ekZibO/2blX+oR2vw/xkE86kFtueBnOX5CcnYLqcffD K8tMiD1nD5DA6okBChjY22cF4/1QlSQ7lIbeH6dl67iFUvLSyr0efdPWWoaldjluAr3F4PJ0RsR h0IIUVV61vjlSb2a2hkhyUuTTWnIPi7PU9a6RKXxlaULdY/xmNSZHgJrEHX2SP44LJzMri61uW2 VP5U6sn7Vp/7l/LLbFbb/MRGqmtI6YmUQGiwZ5u0BCixJsNM1E/X44j61ZFwCDbDth1SAO5TPvY 2YB86Mh/GrW1LegL0FbnHTnWM/nDUJeymfv6X1ziQT81ltbalH2gF74jlNKCrN+Rz6P3bETEfAe P2zFlD2ad9xi9e7SY19mTZsVBPSSjPcWXKjZmNFHs7vWjqRpjetDEcnS0= X-Received: by 2002:a05:600c:4e55:b0:499:a07d:a482 with SMTP id 5b1f17b1804b1-499aa1a28efmr108125755e9.10.1787148077976; Wed, 19 Aug 2026 07:01:17 -0700 (PDT) Received: from TC-LAPTOP ([2a01:e0a:b8a:2610:d3:816e:dd0c:fe6a]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-499aa0fd728sm92751985e9.3.2026.08.19.07.01.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Aug 2026 07:01:17 -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 v7 1/5] platform/x86: intel_lpss: add resource conflict quirk for Dell Latitude 5285 Date: Wed, 19 Aug 2026 16:01:03 +0200 Message-ID: <20260819140107.1329091-2-tchatard@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260819140107.1329091-1-tchatard@gmail.com> References: <20260819140107.1329091-1-tchatard@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@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. Add a DMI quirk that selects IGNORE_RESOURCE_CONFLICTS for INT3446 on this machine, matching the existing pattern used by other LPSS quirks. Signed-off-by: Thierry Chatard --- drivers/mfd/intel-lpss-acpi.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/drivers/mfd/intel-lpss-acpi.c b/drivers/mfd/intel-lpss-acpi.c index 63406026d..f08b41970 100644 --- a/drivers/mfd/intel-lpss-acpi.c +++ b/drivers/mfd/intel-lpss-acpi.c @@ -13,6 +13,8 @@ #include #include #include +#include +#include #include #include #include @@ -52,6 +54,16 @@ static const struct intel_lpss_platform_info spt_i2c_info = { .swnode = &spt_i2c_node, }; +/* + * Same as spt_i2c_info but with QUIRK_IGNORE_RESOURCE_CONFLICTS for Dell 5285 + * where ACPI GEXP device conflicts with I2C4 (INT3446) MMIO resources. + */ +static const struct intel_lpss_platform_info spt_i2c_info_ignore_conflicts = { + .clk_rate = 120000000, + .swnode = &spt_i2c_node, + .quirks = QUIRK_IGNORE_RESOURCE_CONFLICTS, +}; + static const struct property_entry uart_properties[] = { PROPERTY_ENTRY_U32("reg-io-width", 4), PROPERTY_ENTRY_U32("reg-shift", 2), @@ -172,6 +184,16 @@ static const struct acpi_device_id intel_lpss_acpi_ids[] = { }; MODULE_DEVICE_TABLE(acpi, intel_lpss_acpi_ids); +static const struct dmi_system_id dell5285_lpss_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; @@ -182,6 +204,18 @@ static int intel_lpss_acpi_probe(struct platform_device *pdev) if (!data) return -ENODEV; + /* + * Apply IGNORE_RESOURCE_CONFLICTS for I2C4 on Dell Latitude 5285. + * The ACPI GEXP device conflicts with I2C4 (INT3446) MMIO resources + * due to a BIOS bug where both use the same SB04 variable. + */ + if (acpi_dev_hid_uid_match(ACPI_COMPANION(&pdev->dev), + "INT3446", NULL) && + dmi_check_system(dell5285_lpss_dmi)) { + dev_info(&pdev->dev, "Dell 5285: applying IGNORE_RESOURCE_CONFLICTS for I2C4\n"); + data = &spt_i2c_info_ignore_conflicts; + } + info = devm_kmemdup(&pdev->dev, data, sizeof(*info), GFP_KERNEL); if (!info) return -ENOMEM; -- 2.51.0