• J
    ibm_newemac: Introduce mal_has_feature · ec4f9945
    Josh Boyer 提交于
    There are some PowerPC SoCs that do odd things with the MAL handling.  In
    order to accommodate them, we need to introduce a feature mechanism that is
    similar to the existing emac_has_feature function.
    
    This adds a feature variable to the mal_instance structure, and adds a
    mal_has_feature function.  Two features are defined and are guarded
    by Kconfig options that are selected by the affected platforms.
    
    MAL_FTR_CLEAR_ICINSTAT is used for platforms that need to clear the
    interrupt bits in the ICINTSTAT SDR for txeob/rxeob.  This is common
    on MAL implementations that have interrupt coalescing.
    
    MAL_FTR_COMMON_ERR_INT is used for platforms that have SERR, TXDE,
    and RXDE OR'd into a single interrupt bit.
    Signed-off-by: NJosh Boyer <jwboyer@linux.vnet.ibm.com>
    Acked-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
    Acked-by: NJeff Garzik <jeff@garzik.org>
    Signed-off-by: NJosh Boyer <jwboyer@linux.vnet.ibm.com>
    ec4f9945
mal.h 8.7 KB