forked from mirrors/linux
		
	can: flexcan: mark RX via mailboxes as supported on MCF5441X
Most flexcan IP cores support 2 RX modes:
- FIFO
- mailbox
The flexcan IP core on the MCF5441X cannot receive CAN RTR messages
via mailboxes. However the mailbox mode is more performant. The commit
| 1c45f5778a ("can: flexcan: add ethtool support to change rx-rtr setting during runtime")
added support to switch from FIFO to mailbox mode on these cores.
After testing the mailbox mode on the MCF5441X by Angelo Dureghello,
this patch marks it (without RTR capability) as supported. Further the
IP core overview table is updated, that RTR reception via mailboxes is
not supported.
Link: https://lore.kernel.org/all/20220121084425.3141218-1-mkl@pengutronix.de
Tested-by: Angelo Dureghello <angelo@kernel-space.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
			
			
This commit is contained in:
		
							parent
							
								
									e59986de5f
								
							
						
					
					
						commit
						f04aefd465
					
				
					 2 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -296,6 +296,7 @@ static_assert(sizeof(struct flexcan_regs) ==  0x4 * 18 + 0xfb8);
 | 
				
			||||||
static const struct flexcan_devtype_data fsl_mcf5441x_devtype_data = {
 | 
					static const struct flexcan_devtype_data fsl_mcf5441x_devtype_data = {
 | 
				
			||||||
	.quirks = FLEXCAN_QUIRK_BROKEN_PERR_STATE |
 | 
						.quirks = FLEXCAN_QUIRK_BROKEN_PERR_STATE |
 | 
				
			||||||
		FLEXCAN_QUIRK_NR_IRQ_3 | FLEXCAN_QUIRK_NR_MB_16 |
 | 
							FLEXCAN_QUIRK_NR_IRQ_3 | FLEXCAN_QUIRK_NR_MB_16 |
 | 
				
			||||||
 | 
							FLEXCAN_QUIRK_SUPPPORT_RX_MAILBOX |
 | 
				
			||||||
		FLEXCAN_QUIRK_SUPPPORT_RX_FIFO,
 | 
							FLEXCAN_QUIRK_SUPPPORT_RX_FIFO,
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -21,7 +21,7 @@
 | 
				
			||||||
 * Below is some version info we got:
 | 
					 * Below is some version info we got:
 | 
				
			||||||
 *    SOC   Version   IP-Version  Glitch- [TR]WRN_INT IRQ Err Memory err RTR rece-   FD Mode     MB
 | 
					 *    SOC   Version   IP-Version  Glitch- [TR]WRN_INT IRQ Err Memory err RTR rece-   FD Mode     MB
 | 
				
			||||||
 *                                Filter? connected?  Passive detection  ption in MB Supported?
 | 
					 *                                Filter? connected?  Passive detection  ption in MB Supported?
 | 
				
			||||||
 * MCF5441X FlexCAN2  ?               no       yes        no       no       yes           no     16
 | 
					 * MCF5441X FlexCAN2  ?               no       yes        no       no        no           no     16
 | 
				
			||||||
 *    MX25  FlexCAN2  03.00.00.00     no        no        no       no        no           no     64
 | 
					 *    MX25  FlexCAN2  03.00.00.00     no        no        no       no        no           no     64
 | 
				
			||||||
 *    MX28  FlexCAN2  03.00.04.00    yes       yes        no       no        no           no     64
 | 
					 *    MX28  FlexCAN2  03.00.04.00    yes       yes        no       no        no           no     64
 | 
				
			||||||
 *    MX35  FlexCAN2  03.00.00.00     no        no        no       no        no           no     64
 | 
					 *    MX35  FlexCAN2  03.00.00.00     no        no        no       no        no           no     64
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue