There is criticism of Yosef for asking the Sar Hamashkim to mention him to Paroh, instead of trusting in Hashem, but what was Yosef even expecting from the Sar Hamashkim?
The poor man was just granted pardon and given the chance to return to his old job, after "sinning" to his master. Can he really assume the role of Paroh's strategic advisor for prisoners, and suggest that the poor Ivri boy should be released because he is really innocent?!
It seems that everything worked out in Yosef's favor - the Sar may have forgotten about him, but on the other hand it was only realistic for Paroh to listen to him after his troubling dream! This doesn't seem like a punishment, but another part of the Hashgacha Pratit that Yosef merited.
Can anyone explain -
What Yosef really expected, how he thought the Sar would help him.
Why the two year gap is viewed as a punishment, and not as necessary for the proper circumstances to bring about his release.