On 12/20/22 04:04, Bough Chen wrote:
-----Original Message-----
From: Marek Vasut <marex@xxxxxxx>
Sent: 2022年12月20日 9:53
To: linux-mmc@xxxxxxxxxxxxxxx
Cc: Marek Vasut <marex@xxxxxxx>; Adrian Hunter <adrian.hunter@xxxxxxxxx>;
Ulf Hansson <ulf.hansson@xxxxxxxxxx>; Zach Brown <zach.brown@xxxxxx>
Subject: [PATCH] [RFC] mmc: sdhci: Always apply sdhci-caps-mask and
sdhci-caps to caps
The original implementation in the commit referenced below only modifies
caps in case no caps are passed to sdhci_read_caps() via parameter, this does
not seem correct. Always modify the caps according to the properties from DT.
92e0c44b92e4 ("mmc: sdhci: Use sdhci-caps-mask and sdhci-caps to change
Need to add Fixes as below:
Fixes: 92e0c44b92e4 ("mmc: sdhci: Use sdhci-caps-mask and sdhci-caps to change the caps read during __sdhci_read_caps")
I did a grep under the /drivers/mmc/host, seems all callers use NULL for the parameter caps and caps1,
So maybe we could just simplify the code like this:
That would make backporting harder, so subsequent patch please.
But I am more interested in knowing whether this change even makes
sense, since it was broken for like 6 years and nobody noticed.