Re: request_region in the kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Why do you need ioremap() as you are using request_region() . ioremap() must
be
used when you are requesting for a memory region (request_mem_region) .

can u explain u'r problem in detail .

Vinay
----- Original Message -----
From: "TAJTHY Tamás" <tajthy@mailbox.hu>
To: <kernelnewbies@nl.linux.org>
Sent: Thursday, March 21, 2002 1:50 PM
Subject: request_region in the kernel


> Dear List,
>
> I would like to use the request_region function in the kernel. I if use in
> a module there is no problem, but if I put it into the kernel, it hangs
> during the boot. Can anyone help me how to use it? It is a 2.4.7 kernel
> for a PPC platform.
>
> I added the following lines to the arch/ppc/kernel/m8xx_setup.c in the
> m8xx_get_rtc_time function :
>
> if(!rtc_vm_base)
>       if (request_region(IO_ADR_RTC, IO_LEN_RTC, "k14_rtc"))
>               rtc_vm_base = ioremap(IO_ADR_RTC, IO_LEN_RTC);
>       else
>               printk("Can't request IO ports\n");
>
> If I don't use request_region it works nicely, but I'd like to
> allocate this IO region not to allow other modules to modify the chip
> settings. How can I do that?
>
> TIA && Good byte!
>
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
>

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux