From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f175.google.com (mail-dy1-f175.google.com [74.125.82.175]) (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 BE7C22BDC16 for ; Sat, 25 Apr 2026 05:14:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777094055; cv=none; b=mwiljWMgdkjA3KhF1lcZpeDmid4/3tgrk9n+yNEoqPil4UVcnZE7KKDiBUq4sJqS/YyhVk36tnuMyqIGqZAXvztVcrLmaFUflhnrrBaCwcza7R+7CYCyF4N3YbSW0ENRcJfbs7qFQget0qB1jEH8dxDAhHwmrNLGQWKuGMjYvPg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777094055; c=relaxed/simple; bh=jGEqquZ2fD8KfC6B3eKEDe79Xup6NmyDIFmkXgCEm9k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VIlqyGEeE9of20QPL4FvblfhbSd77r4tTzYP95yzeP5pP7gFESePrDJa5vAhhAuR08LzYZ1zff4TCFzAQOlptyyTl9pLpBWWZOP795gzXCH5cWGvUVvbULBXN9ry6AzOLvwGMhiYQagIZiugVCxtmunc2P6MzOfSuKTrix/w1eU= 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=axqdTBAu; arc=none smtp.client-ip=74.125.82.175 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="axqdTBAu" Received: by mail-dy1-f175.google.com with SMTP id 5a478bee46e88-2d868d014a5so8389075eec.1 for ; Fri, 24 Apr 2026 22:14:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777094053; x=1777698853; 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; bh=Njwz4GpR6Lsmc9++a5m2bWV+NAXHXBWZE5m0XlH/aas=; b=axqdTBAu6myUraMjj6T0eoSQSPSODn/wTMwlqAVVZ+nazlnSAFxt3vXilbhLcxoRS2 6Ow9gO2rAQoSvcsjRuzzC+j5k+tsW5W/uBy+X9mMp4GntUIYWZrVzCUI01QXFTMFH6Ev DcR/VmFRNE6rBfk8sBduPiuehPF3xNETZVa/vMRgeg9op0w7r29x0Lp3uH3T0DZd90+7 GbB+6YA7IkaThtbPTjWyONFskhYO4EDjObliQX0BTQ+z+/3wzD7Sy0ycipsDfVvZIpmI pLzaUo+ZhUQZ7nNAAQBvkTOpzZFz4H7HGducXwHW2yYByoEunTDv++GJy/awie4kUiab cg+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777094053; x=1777698853; 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; bh=Njwz4GpR6Lsmc9++a5m2bWV+NAXHXBWZE5m0XlH/aas=; b=GxQKoOT7p/y2oa8wpOAb1T8u9+SpEK/6KBysI8IZM0eJxyYvApNPDGk5yFcWsRxgSL NL+ZcZjdmvVKUKdO9ttBYAhrlgeDiTvaVvwPRMvhPGbRDBkWlDE+tUuN2LnmeIs2vr4j rhg6oxyOu7m37O65sCJfLWj3BP9EjpvJ0CkdB2TFumujpGHaUZ/3Bbnoy+4x7XY5u4kx ji0afhUC8HP95GZHAsc+3w+AJeKMySLhiXDvisULSWuG7erXIbXvu53mnT2YhHD7BkkM pZtH7u488CoDkS64yZ3cAu4GEWjrUZcBb0kKaHcp0WXGeSUCjDIteadFF+OwJWJF/ubf LKcg== X-Gm-Message-State: AOJu0YzioJm2+1iV2LbClm3C8KCDpuF2nDlPH9ZpcirRsQ0/5xLSGfok 9ortXr3/Sny8JGcrCHNJsJGmh6A2zjVbtljk+BCZqq0AJ2gcbRDJKEfGkUyq+nEy X-Gm-Gg: AeBDievMnItRgdMTe18a3q80V7lWi4xxkbcU6NTWPjDoNBN1fmN1HO6C/AynW9+PJ++ s8J8wEF5Bj5WdKYyZeXLB58ItUkZfMx/iuqHrJzled0GZQegeiGN87l/nAvfxvYuWzTJ7xySEMa hxgpIUG0vjTKJ/xahzkRK2zo1UcdrvStfQAMSxWNqtdP8rGZd8qI+GGS/hPxVDlHbYqd1ex7IVs DSdJdy4LNrFo75NK7VWSJHldsVJ8nY2NQjxNKGxGKHeeCKC9f4HmOayFEstXeWO4hBuBUf+bjM6 g9p3w8kngv2APv9iGEUY/IlYhDjzPHo90lAkOz0HEVAFOucaG1GEryRDNU9ow1E+xY/ajcCxsPS +dwhFCSnQ3528KTPIAPflrZvV9tRxEPPY+QqJe1VkMjms9M7i0N1FJjbaKCx/lFrAPE+eibP5Il o24VZO1Wm7/q060O45MTRm0DUyqV3c56/EIQ== X-Received: by 2002:a05:7301:6793:b0:2ca:7eb4:3e0f with SMTP id 5a478bee46e88-2e464dafc32mr18035970eec.5.1777094052651; Fri, 24 Apr 2026 22:14:12 -0700 (PDT) Received: from TC-LAPTOP.lan ([66.142.131.45]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2e53ac84c38sm35973806eec.13.2026.04.24.22.14.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Apr 2026 22:14:12 -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, Thierry Chatard Subject: [PATCH v5 1/5] platform/x86: intel_lpss: add resource conflict quirk for Dell Latitude 5285 Date: Fri, 24 Apr 2026 22:13:38 -0700 Message-ID: <20260425051342.8960-2-tchatard@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260425051342.8960-1-tchatard@gmail.com> References: <20260425051342.8960-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