Linux-Next discussions
 help / color / mirror / Atom feed
* linux-next: manual merge of the driver-core tree with the drm-xe tree
@ 2026-07-26 21:56 Mark Brown
  2026-07-26 22:33 ` Danilo Krummrich
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Brown @ 2026-07-26 21:56 UTC (permalink / raw)
  To: Greg KH, Danilo Krummrich, Rafael J. Wysocki
  Cc: Bartosz Golaszewski, Greg Kroah-Hartman,
	Linux Kernel Mailing List, Linux Next Mailing List, Matt Roper,
	Michal Wajdeczko, Raag Jadav, Thomas Hellström

[-- Attachment #1: Type: text/plain, Size: 2079 bytes --]

Hi all,

Today's linux-next merge of the driver-core tree got a conflict in:

  drivers/gpu/drm/xe/xe_i2c.c

between commits:

  5d8ed6b64220a ("drm/xe/i2c: Allow per domain unique id")
  9420abf8dbc2e ("drm/xe/i2c: Drop manual VF check")

from the drm-xe tree and commits:

  e766abbc5191b ("drm/xe/i2c: use platform_device_set_fwnode()")
  0f485f88656af ("drm/xe/i2c: use device_create_managed_software_node()")

from the driver-core tree.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

diff --cc drivers/gpu/drm/xe/xe_i2c.c
index a26c38bb17a15,5b0026bdb1c60..0000000000000
--- a/drivers/gpu/drm/xe/xe_i2c.c
+++ b/drivers/gpu/drm/xe/xe_i2c.c
@@@ -93,15 -93,7 +93,10 @@@ static int xe_i2c_register_adapter(stru
  {
  	struct pci_dev *pci = to_pci_dev(i2c->drm_dev);
  	struct platform_device *pdev;
- 	struct fwnode_handle *fwnode;
  	int ret;
 +	u32 id;
 +
- 	fwnode = fwnode_create_software_node(xe_i2c_adapter_properties, NULL);
- 	if (IS_ERR(fwnode))
- 		return PTR_ERR(fwnode);
- 
 +	id = (pci_domain_nr(pci->bus) << 16) | pci_dev_id(pci);
  
  	/*
  	 * Not using platform_device_register_full() here because we don't have
@@@ -109,11 -101,15 +104,15 @@@
  	 * uses that handle, but it may be called before
  	 * platform_device_register_full() is done.
  	 */
 -	pdev = platform_device_alloc(adapter_name, pci_dev_id(pci));
 +	pdev = platform_device_alloc(adapter_name, id);
- 	if (!pdev) {
- 		ret = -ENOMEM;
- 		goto err_fwnode_remove;
- 	}
+ 	if (!pdev)
+ 		return -ENOMEM;
+ 
+ 	ret = device_create_managed_software_node(&pdev->dev,
+ 						  xe_i2c_adapter_properties,
+ 						  NULL);
+ 	if (ret)
+ 		goto err_pdev_put;
  
  	if (i2c->adapter_irq) {
  		struct resource res;

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-07-26 22:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-26 21:56 linux-next: manual merge of the driver-core tree with the drm-xe tree Mark Brown
2026-07-26 22:33 ` Danilo Krummrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox