Skip to content

About

A modified version of the official driver, to meet the change in newer version of linux kernel(tested on 6.15.9).)

Resources

Stars

5 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YT6801 Linux Driver with Timer API Fix

This repository contains a modified version of the official YT6801 Linux driver provided by Motorcomm. The modifications address a compilation issue encountered on newer Linux kernels (specifically tested on 6.15.9).

Original Driver

The original driver source was obtained from Motorcomm. It is licensed under the GNU General Public License version 2 (GPLv2).

  • Homepage/Download: Refer to the official Motorcomm resources or the documentation provided with the original driver package.
  • Original License: GNU General Public License version 2 (see COPYING file if present, or standard GPLv2 text).

Modifications

Fix for del_timer_sync Compilation Error

  • Issue: Compilation failed on newer kernels (e.g., 6.15.9) with the error implicit declaration of function 'del_timer_sync'.
  • Reason: In newer kernel versions, the del_timer_sync function has been deprecated or replaced.
  • Solution: Replaced the call to del_timer_sync with timer_delete_sync in src/fuxi-gmac-phy.c. This new function provides equivalent synchronous timer deletion functionality for the affected kernel versions.

These changes allow the driver to compile successfully on systems running Linux kernel 6.15.9 and likely other recent versions where del_timer_sync is no longer available or recommended.

License

This modified driver is distributed under the same license as the original:

GNU General Public License version 2 (GPLv2)

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

As a special exception, if other files instantiate templates or use macros or inline functions from this file, or if you modify this file, representing that you have the authority to redistribute these changes under the terms of the GNU General Public License version 2 (or any later version), and conveying the source code of that file including any modifications you make to this file, then the source code of that file (including your modifications) may be redistributed under the terms of the GNU General Public License version 2 (or any later version). This exception does not grant any rights to redistribute or convey this file in binary form, nor does it grant any rights to distribute or convey this file under any other license. If you wish to incorporate parts of this file into other programs whose distribution conditions are incompatible with these, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

SPDX-License-Identifier: GPL-2.0+

About

A modified version of the official driver, to meet the change in newer version of linux kernel(tested on 6.15.9).)

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages