Someone asked me if throughout the whole of human history all religions have been misogynistic. I answered that, as far as I knew, the overwhelming majority of them have been patriarchal but that doesn't necessarily mean that they were all misogynistic. This is because it might be that in some past times and places patriarchy was the best possible way to distribute opportunities and responsibilities. I added that it is misogynistic to insist on patriarchy when the circumstances no longer justify it.
If I could, I know that I'd change at least one thing. It would be to say that this question seems to presuppose a difference between religion and the rest of life. Although this has been so in some Western nations since the Enlightenment, for almost all of human history they have been inseparable. To paraphrase Paul Tillich, religion is the substance of culture and culture is its form. This turns the question into whether all cultures have been misogynistic. I doubt it.
"Patriarchy" means at least three things which are increasingly problematic. One of these is that being a man is the criterion by which a culture' distributes its most important opportunities and responsibilities. A second is that being a man is the norm which determines who gets the final say and who inherits what. A third is that from their infancy all members of the next generation are so enculturated into this way of doing things that it is difficult for them to imagine any other. If I were to allocate 12 points among these three patterns with the worst of them getting the most points, the first would get three, the second would get four and the third would get five.
Misogyny adds two more things for a total of five. One of these is that the first three of them prevail without regard to how qualified or unqualified the man is. The other is that the penalties for questioning the system, let alone acting contrary to it, are severe. In too many cases it is death.
One of my nieces by marriage is a slight and oh-so-very-straight truck driver in Australia. Her ability to navigate 18 wheelers, and even truck trains, surpasses the overwhelming majority of men in her business. "Good on her!"