call to request_mem_region() fails

前端 未结 2 510
没有蜡笔的小新
没有蜡笔的小新 2020-12-20 06:53

The start address 0x4806E000 (UART4 base address) is already present in /proc/iomem with the name omap4-uart.

How to disable the memory regions already allocated ?.<

2条回答
  •  我在风中等你
    2020-12-20 07:32

    @Dino,

    How to disable the memory regions already allocated ?.

    Solution: what i think is that you can disable UART driver from kernel (menuconfig), build the kernel image and check /proc/iomem, I guess UART4 related instances will be removed.

    Note: If using device tree concept then need to disable UART4 node "@uart4" in device tree.

    I would like to use it in my driver code with different name. Is it possible?

    Solution: In your LKM request for the memory range using request_mem_region with your driver name.

    BTW: Why the call to ioremap is not failing ?

    Solution: ioremap api will not fail because api does not have check for ex:"driver name" or any other checks.

提交回复
热议问题