aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/s390/include/asm/qdio.h10
-rw-r--r--drivers/s390/cio/qdio.h9
-rw-r--r--drivers/s390/cio/qdio_main.c5
3 files changed, 11 insertions, 13 deletions
diff --git a/arch/s390/include/asm/qdio.h b/arch/s390/include/asm/qdio.h
index 3881e9499e17..21993623da9a 100644
--- a/arch/s390/include/asm/qdio.h
+++ b/arch/s390/include/asm/qdio.h
@@ -279,6 +279,16 @@ struct qdio_outbuf_state {
279 279
280#define CHSC_AC1_INITIATE_INPUTQ 0x80 280#define CHSC_AC1_INITIATE_INPUTQ 0x80
281 281
282
283/* qdio adapter-characteristics-1 flag */
284#define AC1_SIGA_INPUT_NEEDED 0x40 /* process input queues */
285#define AC1_SIGA_OUTPUT_NEEDED 0x20 /* process output queues */
286#define AC1_SIGA_SYNC_NEEDED 0x10 /* ask hypervisor to sync */
287#define AC1_AUTOMATIC_SYNC_ON_THININT 0x08 /* set by hypervisor */
288#define AC1_AUTOMATIC_SYNC_ON_OUT_PCI 0x04 /* set by hypervisor */
289#define AC1_SC_QEBSM_AVAILABLE 0x02 /* available for subchannel */
290#define AC1_SC_QEBSM_ENABLED 0x01 /* enabled for subchannel */
291
282#define CHSC_AC2_DATA_DIV_AVAILABLE 0x0010 292#define CHSC_AC2_DATA_DIV_AVAILABLE 0x0010
283#define CHSC_AC2_DATA_DIV_ENABLED 0x0002 293#define CHSC_AC2_DATA_DIV_ENABLED 0x0002
284 294
diff --git a/drivers/s390/cio/qdio.h b/drivers/s390/cio/qdio.h
index 2b21f65a8950..3dd86441da3d 100644
--- a/drivers/s390/cio/qdio.h
+++ b/drivers/s390/cio/qdio.h
@@ -87,15 +87,6 @@ enum qdio_irq_states {
87#define CHSC_FLAG_QDIO_CAPABILITY 0x80 87#define CHSC_FLAG_QDIO_CAPABILITY 0x80
88#define CHSC_FLAG_VALIDITY 0x40 88#define CHSC_FLAG_VALIDITY 0x40
89 89
90/* qdio adapter-characteristics-1 flag */
91#define AC1_SIGA_INPUT_NEEDED 0x40 /* process input queues */
92#define AC1_SIGA_OUTPUT_NEEDED 0x20 /* process output queues */
93#define AC1_SIGA_SYNC_NEEDED 0x10 /* ask hypervisor to sync */
94#define AC1_AUTOMATIC_SYNC_ON_THININT 0x08 /* set by hypervisor */
95#define AC1_AUTOMATIC_SYNC_ON_OUT_PCI 0x04 /* set by hypervisor */
96#define AC1_SC_QEBSM_AVAILABLE 0x02 /* available for subchannel */
97#define AC1_SC_QEBSM_ENABLED 0x01 /* enabled for subchannel */
98
99/* SIGA flags */ 90/* SIGA flags */
100#define QDIO_SIGA_WRITE 0x00 91#define QDIO_SIGA_WRITE 0x00
101#define QDIO_SIGA_READ 0x01 92#define QDIO_SIGA_READ 0x01
diff --git a/drivers/s390/cio/qdio_main.c b/drivers/s390/cio/qdio_main.c
index a7153f2f3aff..9a122280246c 100644
--- a/drivers/s390/cio/qdio_main.c
+++ b/drivers/s390/cio/qdio_main.c
@@ -1592,12 +1592,9 @@ set:
1592 used = atomic_add_return(count, &q->nr_buf_used) - count; 1592 used = atomic_add_return(count, &q->nr_buf_used) - count;
1593 BUG_ON(used + count > QDIO_MAX_BUFFERS_PER_Q); 1593 BUG_ON(used + count > QDIO_MAX_BUFFERS_PER_Q);
1594 1594
1595 /* no need to signal as long as the adapter had free buffers */
1596 if (used)
1597 return 0;
1598
1599 if (need_siga_in(q)) 1595 if (need_siga_in(q))
1600 return qdio_siga_input(q); 1596 return qdio_siga_input(q);
1597
1601 return 0; 1598 return 0;
1602} 1599}
1603 1600