Re: [PATCH 5/5] misc: atsha204a: Remove duplicate CRC-16 implementation

2022-04-21 Thread Tom Rini
On Tue, Apr 12, 2022 at 11:20:44AM +0200, Pali Rohár wrote: > ATSHA204A uses bit-reversed checksum of standard CRC-16 with polynomial > x^16 + x^15 + x^2 + 1. > > This ATSHA204A specific checksum can be calculated just by using common > U-Boot functions bitrev16() and crc16(). > > So replace cus

Re: [PATCH 5/5] misc: atsha204a: Remove duplicate CRC-16 implementation

2022-04-21 Thread Stefan Roese
On 4/12/22 11:20, Pali Rohár wrote: ATSHA204A uses bit-reversed checksum of standard CRC-16 with polynomial x^16 + x^15 + x^2 + 1. This ATSHA204A specific checksum can be calculated just by using common U-Boot functions bitrev16() and crc16(). So replace custom driver CRC-16 implementation by c

[PATCH 5/5] misc: atsha204a: Remove duplicate CRC-16 implementation

2022-04-12 Thread Pali Rohár
ATSHA204A uses bit-reversed checksum of standard CRC-16 with polynomial x^16 + x^15 + x^2 + 1. This ATSHA204A specific checksum can be calculated just by using common U-Boot functions bitrev16() and crc16(). So replace custom driver CRC-16 implementation by common U-Boot functions. Signed-off-by