From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from 9pmail.ess.barracuda.com ([64.235.150.224]:52126 "EHLO 9pmail.ess.barracuda.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S23990400AbeBGQnoptfCV convert rfc822-to-8bit (ORCPT ); Wed, 7 Feb 2018 17:43:44 +0100 From: Aleksandar Markovic Subject: RE: [PATCH 1/4] MIPS: generic: Fix machine compatible matching Date: Wed, 7 Feb 2018 16:27:03 +0000 Message-ID: References: ,<4d44540130007c278068ea4870e3c4efbd171ee6.1517609353.git-series.jhogan@kernel.org> In-Reply-To: <4d44540130007c278068ea4870e3c4efbd171ee6.1517609353.git-series.jhogan@kernel.org> Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Return-Path: Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-subscribe: List-owner: List-post: List-archive: To: James Hogan , Ralf Baechle , "linux-mips@linux-mips.org" Cc: Goran Ferenc , Miodrag Dinic > > ________________________________________ > From: James Hogan [jhogan@kernel.org] > Sent: Friday, February 2, 2018 11:14 PM > To: Ralf Baechle; linux-mips@linux-mips.org > Cc: Aleksandar Markovic; Goran Ferenc; Miodrag Dinic; James Hogan > Subject: [PATCH 1/4] MIPS: generic: Fix machine compatible matching > > We now have a platform (Ranchu) in the "generic" platform which matches > based on the FDT compatible string using mips_machine_is_compatible(), > however that function doesn't stop at a blank struct > of_device_id::compatible as that is an array in the struct, not a > pointer to a string. > > Fix the loop completion to check the first byte of the compatible array > rather than the address of the compatible array in the struct. > > Fixes: eed0eabd12ef ("MIPS: generic: Introduce generic DT-based board support") > Signed-off-by: James Hogan > Reviewed-by: Paul Burton > Reviewed-by: Matt Redfearn > Cc: Ralf Baechle > Cc: linux-mips@linux-mips.org > --- > arch/mips/include/asm/machine.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: Aleksandar Markovic Acked-by: Miodrag Dinic