https://github.com/torvalds/linux
Revision 7dcf78b870be6418d72bb1c4d4924bf0f5ca5052 authored by Tony Nguyen on 19 October 2021, 20:04:16 UTC, committed by Tony Nguyen on 20 October 2021, 16:07:22 UTC
As part of support for E810 XXV devices, some device ids were
inadvertently left out. Add those missing ids.

Fixes: 195fb97766da ("ice: add additional E810 device id")
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Acked-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Acked-by: Paul Menzel <pmenzel@molgen.mpg.de>
1 parent 79cc832
Raw File
Tip revision: 7dcf78b870be6418d72bb1c4d4924bf0f5ca5052 authored by Tony Nguyen on 19 October 2021, 20:04:16 UTC
ice: Add missing E810 device ids
Tip revision: 7dcf78b
check_signature.c
// SPDX-License-Identifier: GPL-2.0
#include <linux/io.h>
#include <linux/export.h>

/**
 *	check_signature		-	find BIOS signatures
 *	@io_addr: mmio address to check
 *	@signature:  signature block
 *	@length: length of signature
 *
 *	Perform a signature comparison with the mmio address io_addr. This
 *	address should have been obtained by ioremap.
 *	Returns 1 on a match.
 */

int check_signature(const volatile void __iomem *io_addr,
			const unsigned char *signature, int length)
{
	while (length--) {
		if (readb(io_addr) != *signature)
			return 0;
		io_addr++;
		signature++;
	}
	return 1;
}
EXPORT_SYMBOL(check_signature);
back to top