s ticket wrote: >> The PMP access functions can only be called from EH context and that's >> one of the reasons they aren't exported? What are you trying to >> achieve? > > To driver some gpios on the PMP ;-). > I tried to directly access the PMP and send ATA command from user space, > but all failed. > It seems there are no suitable way so far? Hmm... the best way would be implementing an EH action for PMP r/w and export it via ioctl or sysfs. When invoked, it should schedule the EH action and an EH handler should do actual IO and then get the result back to the userland. That would automatically solve synchronization problem too. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html