Hi.... I am trying to read data from my laptop's (thinkpad R51) parallel port (similar to the example in Linux Device Drivers 3rd Edition). But, everytime i am reading the data it always comes to be 0xFF(255) .... I even tried the following loop in my write function (struct file_operations) while(count--){ printk("writing %x\n", *ptr); out(*(ptr++), port); wmb(); printk("reading data : %x\n", inb(port)); } but the debug message in log shows something like writing 116 reading 255 writing 78 reading 255 ... ... please help thanks in advance taha -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/