Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5997385imu; Sun, 2 Dec 2018 07:54:14 -0800 (PST) X-Google-Smtp-Source: AFSGD/XZXBGSFTsyjqKGd9+xtWl5o7CVosbsx8rl/jM79wl/4qi64+6KrHpnX/ZRZoB6vicHjeL0 X-Received: by 2002:a63:be4d:: with SMTP id g13mr10680770pgo.378.1543766054501; Sun, 02 Dec 2018 07:54:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543766054; cv=none; d=google.com; s=arc-20160816; b=Yfwl5r5dKruXayq9fHco9ywFlUCRDwQ8Ho4HCq4sY9GjFD3n4ZhhNjHKjlWzWCQ1c3 0cjy9x4izJvvQY/iYPip8wtZxtHRLMiSgDMWTuNMIFU+odDf0L1Qkdpo3AF1j4GOJIgf GgGTgrIr8YvJ7UC4yKRn9f8qyADKTXqxuCrHMXe/jsHRzVbwRi6E9aqyJlSO84cI51zw wuknx/xSce7nlZHJzcP1agZYxYEXNOX2OrxNzObSUfTPWBldzTN2QF/s7ugwL4tY6cwJ VxN4gJ6eKbRW4+WOMsqnNJO3nlWJd0xwvjY1qy2zMlN3G3THn9Q80Yo7TVQWesXN9vTR wCJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=92Prjp05/u4wWbtP/02mJndMIH06wvDkiC1JJ3za9Nw=; b=gD8ie+DB7owYz8U8IYrrJXc6fExdGldn1nG1XI1sb8kQXINtaql9TmHYJMElRxJRbp PidMtdd7jpqFK+Ocj17cSQFN23cFQ9Z332fH6nXk0rg/zkMAqb/NsMdwdcogILLL4MoL 8OX1ZQt+k1HKL2AYAPzGMPeezp05TYx+Fz+AOde6jg21tEW7dv2XNuG/1hi/mSE3Vepk pX1/DxUSR3gnWMeyx51JFGfwEG+NqADQRUhBolw0dOyiAhiue5QH1S0W8e5Jv86bqLyK Ody6xQwImqbdyAcsU3cunw1wk64PTWPc4etRti8UVx2YyJCBPWPVjBfmTBuOrbT8KzxH mnQA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a3si12365730pld.252.2018.12.02.07.53.59; Sun, 02 Dec 2018 07:54:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725912AbeLBPx1 (ORCPT + 99 others); Sun, 2 Dec 2018 10:53:27 -0500 Received: from mail-qt1-f196.google.com ([209.85.160.196]:37019 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725869AbeLBPx1 (ORCPT ); Sun, 2 Dec 2018 10:53:27 -0500 Received: by mail-qt1-f196.google.com with SMTP id z16so11156864qtq.4 for ; Sun, 02 Dec 2018 07:53:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=92Prjp05/u4wWbtP/02mJndMIH06wvDkiC1JJ3za9Nw=; b=GFJhp80/vU5aB6wHDnHLr/aAeMi3GxZ/vTLZKaCnZ0hAOlmN+2dCZJOiX+PqUsfQJE 7olxRB/vxOVryGP5vCLOokhTQmsQl/HO9PlWFwfGUMw/JilUDG3idWLmOGBduUNQmWr5 XEpeKtQEq7mrZWzsnbOuTi+PnhfpRzMMWmuFhCFCxBNuDj6HYmU3FtbWXoYZWSy452gU UCKac+/zXeElR0mG/Ebtgh9+kEx5+c00gvdsNwGdPTHupyUd9dmLbzjjszRhQXuFFVik NoPUmofjxO6XlJ6tB2dB+Ln9FAgSrMviomAmof0ZgFPJEh60JUD0xwqsSZHWPLzld7+7 jrsQ== X-Gm-Message-State: AA+aEWbjvULmRC/CpDd6SvbyaYp/Rbd5dQjoDFgCw4sZ5qd9yR3oR1sZ s0cltiqqD26V+dIDec4YG6AmV7zFhqggOK/E7f8LqQ== X-Received: by 2002:a0c:dc0f:: with SMTP id s15mr12468283qvk.40.1543766004633; Sun, 02 Dec 2018 07:53:24 -0800 (PST) MIME-Version: 1.0 References: <20181202111224.1450-1-lkundrak@v3.sk> In-Reply-To: <20181202111224.1450-1-lkundrak@v3.sk> From: Arnd Bergmann Date: Sun, 2 Dec 2018 16:53:07 +0100 Message-ID: Subject: Re: [PATCH] ARM: mmp/mmp2: fix cpu_is_mmp2() on mmp2-dt To: Lubomir Rintel Cc: arm-soc , Olof Johansson , Eric Miao , Haojian Zhuang , Pavel Machek , quozl@laptop.org, Linux ARM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 2, 2018 at 12:12 PM Lubomir Rintel wrote: > > cpu_is_mmp2() was equivalent to cpu_is_pj4(), wouldn't be correct for > multiplatform kernels. Fix it by also considering mmp_chip_id, as is > done for cpu_is_pxa168() and cpu_is_pxa910() above. > > Moreover, it is only available with CONFIG_CPU_MMP2 and thus doesn't work > on DT-based MMP2 machines. Enable it on CONFIG_MACH_MMP2_DT too. > > Note: CONFIG_CPU_MMP2 is only used for machines that use board files > instead of DT. It should perhaps be renamed. I'm not doing it now, because > I don't have a better idea. > > Signed-off-by: Lubomir Rintel Acked-by: Arnd Bergmann I'd suggest adding Cc: stable@vger.kernel.org since this fixes bugs on other platforms when CONFIG_MMP2 is enabled in a multiplatform kernel.