Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c240dc1 authored by Matwey V. Kornilov's avatar Matwey V. Kornilov Committed by Felipe Balbi
Browse files

usb: musb: tusb6010: Add tusb_revision to struct musb to store the revision.



Add field to store tusb6010 revision value. Read the revision at
the startup and store to the variable.

Signed-off-by: default avatarMatwey V. Kornilov <matwey@sai.msu.ru>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 84237bfb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -339,6 +339,7 @@ struct musb {
	dma_addr_t		async;
	dma_addr_t		sync;
	void __iomem		*sync_va;
	u8			tusb_revision;
#endif

	/* passed down from chip/board specific irq handlers */
+1 −0
Original line number Diff line number Diff line
@@ -1012,6 +1012,7 @@ static int tusb_musb_start(struct musb *musb)
		goto err;
	}

	musb->tusb_revision = tusb_get_revision(musb);
	ret = tusb_print_revision(musb);
	if (ret < 2) {
		printk(KERN_ERR "tusb: Unsupported TUSB6010 revision %i\n",