Heat oil in a small saucepan. Slightly fry the dals and ginger garlic paste till raw smell is gone.
Add all the other ingredients except coconut and toss and cook till the tomatoes look wilted. No need to cook completely.
Add in the coconut, give a mix and switch off. Allow to cool.
Grind the cool mixture.
For the tempering, heat oil, splutter the mustard seeds and briefly fry the dry chillies and curry leaves.
Add the ground mixture and simmer, just making it hot.
Switch off and serve as side with dosas.