| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * dvb_ca.c: generic DVB functions for EN50221 CAM interfaces |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 11 | 12 | * |
|---|
| 12 | 13 | * Copyright (C) 1999-2002 Ralph Metzler |
|---|
| 13 | 14 | * & Marcus Metzler for convergence integrated media GmbH |
|---|
| 14 | | - * |
|---|
| 15 | | - * This program is free software; you can redistribute it and/or |
|---|
| 16 | | - * modify it under the terms of the GNU General Public License |
|---|
| 17 | | - * as published by the Free Software Foundation; either version 2 |
|---|
| 18 | | - * of the License, or (at your option) any later version. |
|---|
| 19 | | - * |
|---|
| 20 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 21 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 22 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 23 | | - * GNU General Public License for more details. |
|---|
| 24 | | - * To obtain the license, point your browser to |
|---|
| 25 | | - * http://www.gnu.org/copyleft/gpl.html |
|---|
| 26 | 15 | */ |
|---|
| 27 | 16 | |
|---|
| 28 | 17 | #define pr_fmt(fmt) "dvb_ca_en50221: " fmt |
|---|
| .. | .. |
|---|
| 1797 | 1786 | |
|---|
| 1798 | 1787 | dprintk("%s\n", __func__); |
|---|
| 1799 | 1788 | |
|---|
| 1789 | + poll_wait(file, &ca->wait_queue, wait); |
|---|
| 1790 | + |
|---|
| 1800 | 1791 | if (dvb_ca_en50221_io_read_condition(ca, &result, &slot) == 1) |
|---|
| 1801 | 1792 | mask |= EPOLLIN; |
|---|
| 1802 | 1793 | |
|---|
| 1803 | 1794 | /* if there is something, return now */ |
|---|
| 1804 | 1795 | if (mask) |
|---|
| 1805 | 1796 | return mask; |
|---|
| 1806 | | - |
|---|
| 1807 | | - /* wait for something to happen */ |
|---|
| 1808 | | - poll_wait(file, &ca->wait_queue, wait); |
|---|
| 1809 | 1797 | |
|---|
| 1810 | 1798 | if (dvb_ca_en50221_io_read_condition(ca, &result, &slot) == 1) |
|---|
| 1811 | 1799 | mask |= EPOLLIN; |
|---|