Interesting!
The prophecy is less about Damascus and more about the wayward northern Kingdom, who allied itself with Damascus and dropped its reliance on God.
Note that Ephraim = Israel = the northern kingdom.
See also Jamieson, Fausset, and Brown:
http://jfb.biblecommenter.com/isaiah/17.htm