On 08/16/2017 02:31 PM, Jiandi An wrote:
That is why the suggestion is instead of patching in each of the op function of registered irq_chip for the unavailable gpio that won't have use for all that anyways, simply don't register irq for the unavailable gpio
Ah, it looks like maybe I can update gpio_chip.irq_valid_mask after calling gpiochip_add_data(). I'll try it.
-- 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