diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2020-06-07 10:59:32 -0700 | 
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-06-07 10:59:32 -0700 | 
| commit | 9aa900c8094dba7a60dc805ecec1e9f720744ba1 (patch) | |
| tree | 3cc09a579f8ea6d3a182076ba722f7c1648e682d /drivers/fpga/stratix10-soc.c | |
| parent | f558b8364e19f9222e7976c64e9367f66bab02cc (diff) | |
| parent | 05c8a4fc44a916dd897769ca69b42381f9177ec4 (diff) | |
Merge tag 'char-misc-5.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
Pull char/misc driver updates from Greg KH:
 "Here is the large set of char/misc driver patches for 5.8-rc1
  Included in here are:
   - habanalabs driver updates, loads
   - mhi bus driver updates
   - extcon driver updates
   - clk driver updates (approved by the clock maintainer)
   - firmware driver updates
   - fpga driver updates
   - gnss driver updates
   - coresight driver updates
   - interconnect driver updates
   - parport driver updates (it's still alive!)
   - nvmem driver updates
   - soundwire driver updates
   - visorbus driver updates
   - w1 driver updates
   - various misc driver updates
  In short, loads of different driver subsystem updates along with the
  drivers as well.
  All have been in linux-next for a while with no reported issues"
* tag 'char-misc-5.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (233 commits)
  habanalabs: correctly cast u64 to void*
  habanalabs: initialize variable to default value
  extcon: arizona: Fix runtime PM imbalance on error
  extcon: max14577: Add proper dt-compatible strings
  extcon: adc-jack: Fix an error handling path in 'adc_jack_probe()'
  extcon: remove redundant assignment to variable idx
  w1: omap-hdq: print dev_err if irq flags are not cleared
  w1: omap-hdq: fix interrupt handling which did show spurious timeouts
  w1: omap-hdq: fix return value to be -1 if there is a timeout
  w1: omap-hdq: cleanup to add missing newline for some dev_dbg
  /dev/mem: Revoke mappings when a driver claims the region
  misc: xilinx-sdfec: convert get_user_pages() --> pin_user_pages()
  misc: xilinx-sdfec: cleanup return value in xsdfec_table_write()
  misc: xilinx-sdfec: improve get_user_pages_fast() error handling
  nvmem: qfprom: remove incorrect write support
  habanalabs: handle MMU cache invalidation timeout
  habanalabs: don't allow hard reset with open processes
  habanalabs: GAUDI does not support soft-reset
  habanalabs: add print for soft reset due to event
  habanalabs: improve MMU cache invalidation code
  ...
Diffstat (limited to 'drivers/fpga/stratix10-soc.c')
| -rw-r--r-- | drivers/fpga/stratix10-soc.c | 28 | 
1 files changed, 12 insertions, 16 deletions
diff --git a/drivers/fpga/stratix10-soc.c b/drivers/fpga/stratix10-soc.c index 215d33789c74..44b7c569d4dc 100644 --- a/drivers/fpga/stratix10-soc.c +++ b/drivers/fpga/stratix10-soc.c @@ -154,11 +154,11 @@ static void s10_receive_callback(struct stratix10_svc_client *client,  	 * Here we set status bits as we receive them.  Elsewhere, we always use  	 * test_and_clear_bit() to check status in priv->status  	 */ -	for (i = 0; i <= SVC_STATUS_RECONFIG_ERROR; i++) +	for (i = 0; i <= SVC_STATUS_ERROR; i++)  		if (status & (1 << i))  			set_bit(i, &priv->status); -	if (status & BIT(SVC_STATUS_RECONFIG_BUFFER_DONE)) { +	if (status & BIT(SVC_STATUS_BUFFER_DONE)) {  		s10_unlock_bufs(priv, data->kaddr1);  		s10_unlock_bufs(priv, data->kaddr2);  		s10_unlock_bufs(priv, data->kaddr3); @@ -209,8 +209,7 @@ static int s10_ops_write_init(struct fpga_manager *mgr,  	}  	ret = 0; -	if (!test_and_clear_bit(SVC_STATUS_RECONFIG_REQUEST_OK, -				&priv->status)) { +	if (!test_and_clear_bit(SVC_STATUS_OK, &priv->status)) {  		ret = -ETIMEDOUT;  		goto init_done;  	} @@ -323,17 +322,15 @@ static int s10_ops_write(struct fpga_manager *mgr, const char *buf,  				&priv->status_return_completion,  				S10_BUFFER_TIMEOUT); -		if (test_and_clear_bit(SVC_STATUS_RECONFIG_BUFFER_DONE, -				       &priv->status) || -		    test_and_clear_bit(SVC_STATUS_RECONFIG_BUFFER_SUBMITTED, +		if (test_and_clear_bit(SVC_STATUS_BUFFER_DONE, &priv->status) || +		    test_and_clear_bit(SVC_STATUS_BUFFER_SUBMITTED,  				       &priv->status)) {  			ret = 0;  			continue;  		} -		if (test_and_clear_bit(SVC_STATUS_RECONFIG_ERROR, -				       &priv->status)) { -			dev_err(dev, "ERROR - giving up - SVC_STATUS_RECONFIG_ERROR\n"); +		if (test_and_clear_bit(SVC_STATUS_ERROR, &priv->status)) { +			dev_err(dev, "ERROR - giving up - SVC_STATUS_ERROR\n");  			ret = -EFAULT;  			break;  		} @@ -393,13 +390,11 @@ static int s10_ops_write_complete(struct fpga_manager *mgr,  		timeout = ret;  		ret = 0; -		if (test_and_clear_bit(SVC_STATUS_RECONFIG_COMPLETED, -				       &priv->status)) +		if (test_and_clear_bit(SVC_STATUS_COMPLETED, &priv->status))  			break; -		if (test_and_clear_bit(SVC_STATUS_RECONFIG_ERROR, -				       &priv->status)) { -			dev_err(dev, "ERROR - giving up - SVC_STATUS_RECONFIG_ERROR\n"); +		if (test_and_clear_bit(SVC_STATUS_ERROR, &priv->status)) { +			dev_err(dev, "ERROR - giving up - SVC_STATUS_ERROR\n");  			ret = -EFAULT;  			break;  		} @@ -482,7 +477,8 @@ static int s10_remove(struct platform_device *pdev)  }  static const struct of_device_id s10_of_match[] = { -	{ .compatible = "intel,stratix10-soc-fpga-mgr", }, +	{.compatible = "intel,stratix10-soc-fpga-mgr"}, +	{.compatible = "intel,agilex-soc-fpga-mgr"},  	{},  };  | 
