On 08/31/2017 04:50 AM, Geert Uytterhoeven wrote:
For instance, you may have a timer block which can capture on both edges of an external event signal, which needs the pin to be muxed for that function. However, you need to read the state of the pin, and that is only available through GPIO. Muxing the pin to be a GPIO just because someone requests the GPIO is, imho, ill thought-out and breaks some use cases.
Yes, reading from the GPIO can work if the pin is muxed to another function.
Well that depends on the hardware. On Qualcomm chips, the you can technically still read and write from/to the GPIO if it's muxed to some other function, but the results are meaningless.
-- Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project. -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html