usb: host: xhci: rcar: Fix typo in compatible string matching [Linux 4.19.70]

This Linux kernel change "usb: host: xhci: rcar: Fix typo in compatible string matching" is included in the Linux 4.19.70 release. This change is authored by Geert Uytterhoeven <geert+renesas [at] glider.be> on Tue Aug 27 14:51:12 2019 +0200. The commit for this change in Linux stable tree is f46fd68 (patch) which is from upstream commit 636bd02. The same Linux upstream change may have been applied to various maintained Linux releases and you can find all Linux releases containing changes from upstream 636bd02.

usb: host: xhci: rcar: Fix typo in compatible string matching

commit 636bd02a7ba9025ff851d0cfb92768c8fa865859 upstream.

It's spelled "renesas", not "renensas".

Due to this typo, RZ/G1M and RZ/G1N were not covered by the check.

Fixes: 2dc240a3308b ("usb: host: xhci: rcar: retire use of xhci_plat_type_is()")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: stable <stable@vger.kernel.org>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/20190827125112.12192-1-geert+renesas@glider.be
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

There are 2 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/usb/host/xhci-rcar.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/host/xhci-rcar.c b/drivers/usb/host/xhci-rcar.c
index 8616c52..2b0ccd1 100644
--- a/drivers/usb/host/xhci-rcar.c
+++ b/drivers/usb/host/xhci-rcar.c
@@ -104,7 +104,7 @@ static int xhci_rcar_is_gen2(struct device *dev)
    return of_device_is_compatible(node, "renesas,xhci-r8a7790") ||
        of_device_is_compatible(node, "renesas,xhci-r8a7791") ||
        of_device_is_compatible(node, "renesas,xhci-r8a7793") ||
-       of_device_is_compatible(node, "renensas,rcar-gen2-xhci");
+       of_device_is_compatible(node, "renesas,rcar-gen2-xhci");
 }

 static int xhci_rcar_is_gen3(struct device *dev)

Leave a Reply

Your email address will not be published. Required fields are marked *