.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | |
---|
2 | 3 | /* drivers/atm/firestream.c - FireStream 155 (MB86697) and |
---|
3 | 4 | * FireStream 50 (MB86695) device driver |
---|
.. | .. |
---|
9 | 10 | */ |
---|
10 | 11 | |
---|
11 | 12 | /* |
---|
12 | | - This program is free software; you can redistribute it and/or modify |
---|
13 | | - it under the terms of the GNU General Public License as published by |
---|
14 | | - the Free Software Foundation; either version 2 of the License, or |
---|
15 | | - (at your option) any later version. |
---|
16 | | - |
---|
17 | | - This program is distributed in the hope that it will be useful, |
---|
18 | | - but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
19 | | - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
20 | | - GNU General Public License for more details. |
---|
21 | | - |
---|
22 | | - You should have received a copy of the GNU General Public License |
---|
23 | | - along with this program; if not, write to the Free Software |
---|
24 | | - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
---|
25 | | - |
---|
26 | | - The GNU GPL is contained in /usr/doc/copyright/GPL on a Debian |
---|
27 | | - system and in the file COPYING in the Linux kernel source. |
---|
28 | 13 | */ |
---|
29 | 14 | |
---|
30 | 15 | |
---|
.. | .. |
---|
726 | 711 | |
---|
727 | 712 | switch (STATUS_CODE (qe)) { |
---|
728 | 713 | case 0x01: /* This is for AAL0 where we put the chip in streaming mode */ |
---|
729 | | - /* Fall through */ |
---|
| 714 | + fallthrough; |
---|
730 | 715 | case 0x02: |
---|
731 | 716 | /* Process a real txdone entry. */ |
---|
732 | 717 | tmp = qe->p0; |
---|
.. | .. |
---|
1089 | 1074 | RC_FLAGS_BFPS_BFP * bfp | |
---|
1090 | 1075 | RC_FLAGS_RXBM_PSB, 0, 0); |
---|
1091 | 1076 | break; |
---|
1092 | | - }; |
---|
| 1077 | + } |
---|
1093 | 1078 | if (IS_FS50 (dev)) { |
---|
1094 | 1079 | submit_command (dev, &dev->hp_txq, |
---|
1095 | 1080 | QE_CMD_REG_WR | QE_CMD_IMM_INQ, |
---|
.. | .. |
---|
1293 | 1278 | .send = fs_send, |
---|
1294 | 1279 | .owner = THIS_MODULE, |
---|
1295 | 1280 | /* ioctl: fs_ioctl, */ |
---|
1296 | | - /* getsockopt: fs_getsockopt, */ |
---|
1297 | | - /* setsockopt: fs_setsockopt, */ |
---|
1298 | 1281 | /* change_qos: fs_change_qos, */ |
---|
1299 | 1282 | |
---|
1300 | 1283 | /* For now implement these internally here... */ |
---|
.. | .. |
---|
1414 | 1397 | |
---|
1415 | 1398 | func_enter (); |
---|
1416 | 1399 | |
---|
1417 | | - fs_dprintk (FS_DEBUG_INIT, "Inititing queue at %x: %d entries:\n", |
---|
| 1400 | + fs_dprintk (FS_DEBUG_INIT, "Initializing queue at %x: %d entries:\n", |
---|
1418 | 1401 | queue, nentries); |
---|
1419 | 1402 | |
---|
1420 | 1403 | p = aligned_kmalloc (sz, GFP_KERNEL, 0x10); |
---|
.. | .. |
---|
1447 | 1430 | { |
---|
1448 | 1431 | func_enter (); |
---|
1449 | 1432 | |
---|
1450 | | - fs_dprintk (FS_DEBUG_INIT, "Inititing free pool at %x:\n", queue); |
---|
| 1433 | + fs_dprintk (FS_DEBUG_INIT, "Initializing free pool at %x:\n", queue); |
---|
1451 | 1434 | |
---|
1452 | 1435 | write_fs (dev, FP_CNF(queue), (bufsize * RBFP_RBS) | RBFP_RBSVAL | RBFP_CME); |
---|
1453 | 1436 | write_fs (dev, FP_SA(queue), 0); |
---|
.. | .. |
---|
1650 | 1633 | } |
---|
1651 | 1634 | |
---|
1652 | 1635 | if (status & ISR_TBRQ_W) { |
---|
1653 | | - fs_dprintk (FS_DEBUG_IRQ, "Data tramsitted!\n"); |
---|
| 1636 | + fs_dprintk (FS_DEBUG_IRQ, "Data transmitted!\n"); |
---|
1654 | 1637 | process_txdone_queue (dev, &dev->tx_relq); |
---|
1655 | 1638 | } |
---|
1656 | 1639 | |
---|
.. | .. |
---|
1692 | 1675 | dev->hw_base = pci_resource_start(pci_dev, 0); |
---|
1693 | 1676 | |
---|
1694 | 1677 | dev->base = ioremap(dev->hw_base, 0x1000); |
---|
| 1678 | + if (!dev->base) |
---|
| 1679 | + return 1; |
---|
1695 | 1680 | |
---|
1696 | 1681 | reset_chip (dev); |
---|
1697 | 1682 | |
---|