.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * pti.c - PTI driver for cJTAG data extration |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) Intel 2010 |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or modify |
---|
7 | | - * it under the terms of the GNU General Public License version 2 as |
---|
8 | | - * published by the Free Software Foundation. |
---|
9 | | - * |
---|
10 | | - * This program is distributed in the hope that it will be useful, |
---|
11 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
12 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
13 | | - * GNU General Public License for more details. |
---|
14 | 6 | * |
---|
15 | 7 | * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
16 | 8 | * |
---|
.. | .. |
---|
504 | 496 | * pti_tty_driver_write()- Write trace debugging data through the char |
---|
505 | 497 | * interface to the PTI HW. Part of the misc device implementation. |
---|
506 | 498 | * |
---|
507 | | - * @filp: Contains private data which is used to obtain |
---|
508 | | - * master, channel write ID. |
---|
509 | | - * @data: trace data to be written. |
---|
| 499 | + * @tty: tty struct containing pti information. |
---|
| 500 | + * @buf: trace data to be written. |
---|
510 | 501 | * @len: # of byte to write. |
---|
511 | 502 | * |
---|
512 | 503 | * Returns: |
---|
.. | .. |
---|
742 | 733 | * pti_port_activate()- Used to start/initialize any items upon |
---|
743 | 734 | * first opening of tty_port(). |
---|
744 | 735 | * |
---|
745 | | - * @port- The tty port number of the PTI device. |
---|
746 | | - * @tty- The tty struct associated with this device. |
---|
| 736 | + * @port: The tty port number of the PTI device. |
---|
| 737 | + * @tty: The tty struct associated with this device. |
---|
747 | 738 | * |
---|
748 | 739 | * Returns: |
---|
749 | 740 | * always returns 0 |
---|
.. | .. |
---|
763 | 754 | * pti_port_shutdown()- Used to stop/shutdown any items upon the |
---|
764 | 755 | * last tty port close. |
---|
765 | 756 | * |
---|
766 | | - * @port- The tty port number of the PTI device. |
---|
| 757 | + * @port: The tty port number of the PTI device. |
---|
767 | 758 | * |
---|
768 | 759 | * Notes: The primary purpose of the PTI tty port 0 is to hook |
---|
769 | 760 | * the syslog daemon to it; thus this port will be open for a |
---|
.. | .. |
---|
789 | 780 | * pti_pci_probe()- Used to detect pti on the pci bus and set |
---|
790 | 781 | * things up in the driver. |
---|
791 | 782 | * |
---|
792 | | - * @pdev- pci_dev struct values for pti. |
---|
793 | | - * @ent- pci_device_id struct for pti driver. |
---|
| 783 | + * @pdev: pci_dev struct values for pti. |
---|
| 784 | + * @ent: pci_device_id struct for pti driver. |
---|
794 | 785 | * |
---|
795 | 786 | * Returns: |
---|
796 | 787 | * 0 for success |
---|
.. | .. |
---|
800 | 791 | const struct pci_device_id *ent) |
---|
801 | 792 | { |
---|
802 | 793 | unsigned int a; |
---|
803 | | - int retval = -EINVAL; |
---|
| 794 | + int retval; |
---|
804 | 795 | int pci_bar = 1; |
---|
805 | 796 | |
---|
806 | 797 | dev_dbg(&pdev->dev, "%s %s(%d): PTI PCI ID %04x:%04x\n", __FILE__, |
---|
.. | .. |
---|
842 | 833 | } |
---|
843 | 834 | drv_data->aperture_base = drv_data->pti_addr+APERTURE_14; |
---|
844 | 835 | drv_data->pti_ioaddr = |
---|
845 | | - ioremap_nocache((u32)drv_data->aperture_base, |
---|
| 836 | + ioremap((u32)drv_data->aperture_base, |
---|
846 | 837 | APERTURE_LEN); |
---|
847 | 838 | if (!drv_data->pti_ioaddr) { |
---|
848 | 839 | retval = -ENOMEM; |
---|
.. | .. |
---|
907 | 898 | }; |
---|
908 | 899 | |
---|
909 | 900 | /** |
---|
910 | | - * |
---|
911 | 901 | * pti_init()- Overall entry/init call to the pti driver. |
---|
912 | 902 | * It starts the registration process with the kernel. |
---|
913 | 903 | * |
---|
.. | .. |
---|
918 | 908 | */ |
---|
919 | 909 | static int __init pti_init(void) |
---|
920 | 910 | { |
---|
921 | | - int retval = -EINVAL; |
---|
| 911 | + int retval; |
---|
922 | 912 | |
---|
923 | 913 | /* First register module as tty device */ |
---|
924 | 914 | |
---|