Hi Bjorn,
Yes. It was a TYPO. It should be ttyACM0, but not ttyAMC0. After changing to ttyACM0, it is working fine without any issues. Thanks.
As you said, yes, if we assign ttyACM*, then it works fine even if we insert our device later, after inserting other ttyACM devices, also. If we do not use * then it won't work if we insert our device after inserting other ttyACM devices.
My issue was resolved by changing the KERNEL=="ttyACM0" instead of KERNEL=="ttyAMC0". This is a simple TYPO and my overlooking while reading the rules.
Anyhow, I have changed the rule as shown below.
KERNEL=="ttyACM*", SUBSYSTEM=="tty", ATTRS{serial}=="__0X00124B000148CC78", SYMLINK+="mydev"
Then, all issues were resolved. It works fine irrespective of the device insertion, too.
Thank you all.
Regards,
Srinivas.