lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140922150124.4f24bb6f@canb.auug.org.au>
Date:	Mon, 22 Sep 2014 15:01:24 +1000
From:	Stephen Rothwell <sfr@...b.auug.org.au>
To:	Greg KH <greg@...ah.com>
Cc:	linux-next@...r.kernel.org, linux-kernel@...r.kernel.org,
	Srinivas Pandruvada <srinivas.pandruvada@...ux.intel.com>,
	Jonathan Cameron <jic23@...nel.org>,
	Peter Meerwald <pmeerw@...erw.net>
Subject: linux-next: manual merge of the staging tree with Linus' tree

Hi Greg,

Today's linux-next merge of the staging tree got a conflict in
drivers/iio/accel/bma180.c between commit 0668a4e4d297 ("iio: accel:
bma180: Fix indio_dev->trig assignment") from Linus' tree and commit
16ed8692fa48 ("iio:bma180: Enable use of device without IRQ") from the
staging tree.

I fixed it up (see below) and can carry the fix as necessary (no action
is required).

-- 
Cheers,
Stephen Rothwell                    sfr@...b.auug.org.au

diff --cc drivers/iio/accel/bma180.c
index 19100fddd2ed,6ef19641457c..000000000000
--- a/drivers/iio/accel/bma180.c
+++ b/drivers/iio/accel/bma180.c
@@@ -553,29 -729,31 +729,31 @@@ static int bma180_probe(struct i2c_clie
  	indio_dev->modes = INDIO_DIRECT_MODE;
  	indio_dev->info = &bma180_info;
  
- 	trig = iio_trigger_alloc("%s-dev%d", indio_dev->name, indio_dev->id);
- 	if (!trig) {
- 		ret = -ENOMEM;
- 		goto err_chip_disable;
- 	}
+ 	if (client->irq > 0) {
+ 		data->trig = iio_trigger_alloc("%s-dev%d", indio_dev->name,
+ 			indio_dev->id);
+ 		if (!data->trig) {
+ 			ret = -ENOMEM;
+ 			goto err_chip_disable;
+ 		}
  
- 	ret = devm_request_irq(&client->dev, client->irq,
- 			iio_trigger_generic_data_rdy_poll,
- 			IRQF_TRIGGER_RISING, BMA180_IRQ_NAME, trig);
- 	if (ret) {
- 		dev_err(&client->dev, "unable to request IRQ\n");
- 		goto err_trigger_free;
- 	}
+ 		ret = devm_request_irq(&client->dev, client->irq,
+ 			iio_trigger_generic_data_rdy_poll, IRQF_TRIGGER_RISING,
+ 			"bma180_event", data->trig);
+ 		if (ret) {
+ 			dev_err(&client->dev, "unable to request IRQ\n");
+ 			goto err_trigger_free;
+ 		}
  
- 	trig->dev.parent = &client->dev;
- 	trig->ops = &bma180_trigger_ops;
- 	iio_trigger_set_drvdata(trig, indio_dev);
- 	data->trig = trig;
- 	indio_dev->trig = iio_trigger_get(trig);
+ 		data->trig->dev.parent = &client->dev;
+ 		data->trig->ops = &bma180_trigger_ops;
+ 		iio_trigger_set_drvdata(data->trig, indio_dev);
 -		indio_dev->trig = data->trig;
++		indio_dev->trig = iio_trigger_get(data->trig);
  
- 	ret = iio_trigger_register(trig);
- 	if (ret)
- 		goto err_trigger_free;
+ 		ret = iio_trigger_register(data->trig);
+ 		if (ret)
+ 			goto err_trigger_free;
+ 	}
  
  	ret = iio_triggered_buffer_setup(indio_dev, NULL,
  			bma180_trigger_handler, NULL);

Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ