mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
can: ems_pci: Deassert hardware reset
The reset line from the Asix chip to the SJA1000 is asserted after boot up until it is deasserted by a register write Signed-off-by: Gerhard Uttenthaler <uttenthaler@ems-wuensche.com> Link: https://lore.kernel.org/all/20230120112616.6071-8-uttenthaler@ems-wuensche.com Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
parent
8b4339f76d
commit
946c4135fd
|
|
@ -326,6 +326,14 @@ static int ems_pci_add_card(struct pci_dev *pdev,
|
|||
}
|
||||
}
|
||||
|
||||
if (card->version == 3) {
|
||||
/* ASIX chip asserts local reset to CAN controllers
|
||||
* after bootup until it is deasserted
|
||||
*/
|
||||
writel(readl(card->conf_addr + ASIX_LIEMR) & ~ASIX_LIEMR_LRST,
|
||||
card->conf_addr + ASIX_LIEMR);
|
||||
}
|
||||
|
||||
ems_pci_card_reset(card);
|
||||
|
||||
/* Detect available channels */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user