The conflict problem of Linux imx6 gpio_request

Source: Internet
Author: User
Tags imx6

Imx6q for C20 write Gpio driver, in the upper layer call open () function always error, return-1.

After parsing the Gpio_request function, and looking for IMX_GPIO_NR (1, 17) in BOARD-MX6Q_SABRESD.C

Definition, found two definitions, (1, 17) and was used in Mx6_sabresd_board_init ().

" Ft5x06-rst ")

Since the PIN is a dedicated pin in the printed PCB board, the statement is commented out in the kernel, and the kernel is re-burned, then the test is OK.

The experiment proves that the gpio_request can only be used once, when the gpio_request of the same address is called in other places, the error is returned-1,

It means that the address has been applied. There should be an address Occupancy table description in/proc/mem.

The conflict problem of Linux imx6 gpio_request

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.