Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7431797imu; Mon, 3 Dec 2018 12:50:21 -0800 (PST) X-Google-Smtp-Source: AFSGD/XNjrMMcFvE09KL1sUgLCF/uQUsL7t9UgoKRsohp+YP6FDyLixMh9KTb4aLJw+jq4FbQP3v X-Received: by 2002:a62:4587:: with SMTP id n7mr17174225pfi.118.1543870220953; Mon, 03 Dec 2018 12:50:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543870220; cv=none; d=google.com; s=arc-20160816; b=d8TlaLE2PwrHQow4COSQSjpFImooN5g05dZCCLEaAvWfhB0JTgF5l9R9s9TlnIVWBa HZNmwdZtgCOPYIx11ATd24Rr8g4R763yqGlpxuhx1BTTRHjLc6AnXkpU2JZNX9t1O+FX 7ERLbfhMr05cFugGROWCfVzV7WNaHswoo+lZ99YrBB0GcJw0JSQD7VhPZWnY7sJoAceH oX21DJByxSVH3WGKskipA4rnOD1tMRmC1h6C1PtwLweuI1VNp3OODydBrQp2IeLptUJX ac+TScP2j2/OB3rC36+q/WEGslQlhlNzcSWjHyc2LisFEU1Kjcwc3xceQ0eds2DJ7lE/ G6Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7fqI4qtZaSILDNeE2ryuu9AEhVlXWVvdWKX+QGjCY7k=; b=K8OmEmNyad3VjHZQ8EJrwCWVf7h4j1OlX7vSaEdMKvQUO6XUpMep7XpGDSlqM6XVQk 285jWHsMfDdUEOadpWCbDPwEWR1o6y6M29uwWg5BU4oHC9e2MblzRmjhUFQUrkK6+B3H RSotsTIXT7Bcqgwg2egQLuaR0JIo7duDF0U9XnZ26gWYFOt9pIYn+g80Kfa1DtLmwI24 ZqfRZUeDmocCwBNkoxK63iD9H3O6QaDuU0oM8opapgikQLb5lTvcsdUJUo8xX9Oew+75 74It3a8c64CRfcw8NzHYtN6nUST2RKk8aXiP8cvWhgTpiCFOHEG7lkE21m1Kd+mU9Sbq 0cWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=JQz7oFR4; 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 c17si13516562pgl.385.2018.12.03.12.50.05; Mon, 03 Dec 2018 12:50:20 -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; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=JQz7oFR4; 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 S1726027AbeLCUsY (ORCPT + 99 others); Mon, 3 Dec 2018 15:48:24 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:40074 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725908AbeLCUsX (ORCPT ); Mon, 3 Dec 2018 15:48:23 -0500 Received: by mail-lj1-f196.google.com with SMTP id n18-v6so12743282lji.7 for ; Mon, 03 Dec 2018 12:48:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=7fqI4qtZaSILDNeE2ryuu9AEhVlXWVvdWKX+QGjCY7k=; b=JQz7oFR47VXlTlYct4DUSKWsWJ62GFGGMF1pVd6qswUzFOkoI7G6G70Wg28y2WaIQQ /bg28uoFax2nIYpH+Hijf1xHI0zBLQJsLhk182vhCbDBIyEkfNWlXCThvDDbRWP/Hp9U Pyw6SwTk+li8YWjkiStlY+zXKfoky6uwHQBdONmYcxNJeyKqaUv/MiFzDJVk40uzcnnL 7mOsTrgPqrOvNJY2krEl6vBGTskEY0NCBTMvFtufagC3qOy4EYU9GFA8B5+3BkvzOdYd 5SptFePBG4k9hVq2B/u8azVGTaYBwEj/af/Ui3dk6KwaLy0lW/qyETA2el52GYCmRitv XFmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=7fqI4qtZaSILDNeE2ryuu9AEhVlXWVvdWKX+QGjCY7k=; b=Sb7Ga3TtzNyU7rdIU8KzRMhYNoUDmiWsBRJWTtMT355Ja4nY99T7NzocBGYoQ6lWgw bOhob0uFWt4W+5UKaP8rspA6RZ2/0VS3B9RjHlZp+67w2EEMEtJkh6C9Uds/McuLQYsG nCaoojSn0dR4H+3OBiwTGs0FHucrTX7pDt8pdNaXcbbpUDz5xGQ6290/irmavpe9B0K2 NAwOyHvjj/KzpylxFYYjpgzi8q8p1lC0v3xKGf6vf/lRE1RT30cJI+DIPXozG+Sdx7jp vUMwzTgCzJP+QYjIuzvEIYKhYqt3W36E/IE4Xxnk6vvXXdJViRehAnB9zqDBu5HGYbaj HrTA== X-Gm-Message-State: AA+aEWZk+qKJEj0gGbp0uHz9TwnVw6/ntrQJQHPF4DnVLiqxjy1wBm9i dc4isXdORGVET5SYoJIfgjP+yQ== X-Received: by 2002:a2e:1603:: with SMTP id w3-v6mr11004552ljd.33.1543870100956; Mon, 03 Dec 2018 12:48:20 -0800 (PST) Received: from localhost (h85-30-9-151.cust.a3fiber.se. [85.30.9.151]) by smtp.gmail.com with ESMTPSA id u21-v6sm2707473lju.46.2018.12.03.12.48.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Dec 2018 12:48:19 -0800 (PST) Date: Mon, 3 Dec 2018 12:39:41 -0800 From: Olof Johansson To: Arnd Bergmann Cc: Lubomir Rintel , arm-soc , Eric Miao , Haojian Zhuang , Pavel Machek , quozl@laptop.org, Linux ARM , Linux Kernel Mailing List Subject: Re: [PATCH] ARM: mmp/mmp2: fix cpu_is_mmp2() on mmp2-dt Message-ID: <20181203203941.5xwlklfirraf7svm@localhost> References: <20181202111224.1450-1-lkundrak@v3.sk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 02, 2018 at 04:53:07PM +0100, Arnd Bergmann wrote: > 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. Applied to fixes with those tags. Thanks! -Olof