Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3992949imu; Tue, 18 Dec 2018 07:27:47 -0800 (PST) X-Google-Smtp-Source: AFSGD/UFkj0/cas2MhDwjGLuSXaPBBcxfOQan8ejA4j7hv78Ok1ukV/r/spEgOz4ZOv+Mrnk/lnv X-Received: by 2002:a65:4646:: with SMTP id k6mr15793179pgr.153.1545146867869; Tue, 18 Dec 2018 07:27:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545146867; cv=none; d=google.com; s=arc-20160816; b=D0W8nxErNUgPfUqgQ5tTVND7svNBt2zO55iaSkhTUJY3OJU6SCgOJWaxHN86RJZK/8 rqsLjE3Iby47OLgCA57DOEhlFZjp44d3o/Kd9zTrzgTIAuG78zSl6bqkY3tcbiHWpS/8 U420UF+f7iLp5XyizydBREoYBvhMC9B9LAqlYYPMNGC/jbXsQ94q6rHFUoSEwLezKESw zQGSCJhDBQC579wjqiGECOSwMcjrI4C1QaADtycs4oVHok6QR4N//SB+l1JdpIWvpsBc E5mbmXESm1lyzwo8x3TACGzSa4Yn29pN6D1QrUEXCAaw/grU08FPa8BcYlmc0bF9+Iom 6RAw== 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=TohuLPIf0o9dPse0NxnUD/wZGM8HyqMmatknUS6JBdo=; b=l/61OPphnYCjK8N0PRx5C/motlgS+ON0I68OlP0CJdDI9EslKzp66Bbq8VkevT2IRL ZpYVk+WltHWb9K1oGJnTMka2P/RfEc4x/F/pV3QwGwqvauPbLnwzK/KhtMJ3IvagPxmL MrS5BirLSlMGB3uptyxNsrtWQQmtyuHqqNBr8yL0Kqf9+dQjYnnlimlo7H05KmU5IxlB dDiPaJmKlhnN6U0J4HLeHmomxWxjKeTPue8VcoFYa/dBrP99Q6+lWkBxuJjwPFlHrtC9 q0n5s70nCCzMCU9XzJIo6UtV/rEI7ONSm9uLg/Vzy9PpZ8jVUT9qGUZ3ydN8l1uP+Urs 8yCw== 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 n3si13597468pld.36.2018.12.18.07.27.32; Tue, 18 Dec 2018 07:27:47 -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 S1726787AbeLRPZD (ORCPT + 99 others); Tue, 18 Dec 2018 10:25:03 -0500 Received: from mail-qk1-f196.google.com ([209.85.222.196]:44339 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726379AbeLRPZC (ORCPT ); Tue, 18 Dec 2018 10:25:02 -0500 Received: by mail-qk1-f196.google.com with SMTP id n12so9659497qkh.11; Tue, 18 Dec 2018 07:25:02 -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=TohuLPIf0o9dPse0NxnUD/wZGM8HyqMmatknUS6JBdo=; b=TsxSXCVmf51l6tvfnEx14CCvQ3Cxht0Je+DW8ugboSFDKLHyxp7bgfYlHubmxqTffW wB+C+6IWam29BrjLNtPGgIM0kmsr7qdE/XrSt+8NsTXBey5E8mUc53eBEeRkMW2nOGXn AeXuq99VT1914JTPLPQtAhH4DI0NYNrnA0AXknH9kidK28HG0bZAos9qhZXCTjXvT5jv hH5PcjprnoI5rtkcZetOuaw6/mqmjdLpzXrbh5xFWI3S3DL74WuZuN6Wxbt1aAT2ixWA 3hPxZwJwC0z32miaLkOHU5sipw0lP3oyyKpYQKAORiXqDumr5LdIZ1vxBOaTbIiQ+Uhq fBVg== X-Gm-Message-State: AA+aEWbckxhuxXpX7KfQpYEOLQ9Oo/bfqcNkugBW4162UfaIjBrpoKnp h9S7EFWZjePQBE/8oywZgvnnn4X5wT36AnM43aU= X-Received: by 2002:a37:324a:: with SMTP id y71mr16649536qky.291.1545146701922; Tue, 18 Dec 2018 07:25:01 -0800 (PST) MIME-Version: 1.0 References: <1542125174-8204-1-git-send-email-thor.thayer@linux.intel.com> <1542125174-8204-2-git-send-email-thor.thayer@linux.intel.com> <183b18b9-55f4-55d0-b1f6-674a6df49d1b@linux.intel.com> In-Reply-To: <183b18b9-55f4-55d0-b1f6-674a6df49d1b@linux.intel.com> From: Arnd Bergmann Date: Tue, 18 Dec 2018 16:24:44 +0100 Message-ID: Subject: Re: [RESEND 1/4] mfd: altera-sysmgr: Add SOCFPGA System Manager abstraction To: thor.thayer@linux.intel.com Cc: Lee Jones , Dinh Nguyen , Russell King - ARM Linux , Catalin Marinas , Will Deacon , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , David Miller , Maxime Coquelin , Mauro Carvalho Chehab , Bjorn Andersson , Olof Johansson , Linux Kernel Mailing List , Linux ARM , Networking 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 Tue, Dec 18, 2018 at 12:21 AM Thor Thayer wrote: > > Hi Arnd, > > On 12/14/18 6:36 AM, Arnd Bergmann wrote: > > On Tue, Nov 13, 2018 at 5:03 PM wrote: > >> > >> From: Thor Thayer > >> +static int socfpga_is_s10(void) > >> +{ > >> + return of_machine_is_compatible("altr,socfpga-stratix10"); > >> +} > > > > I don't really like the way you are checking for a specific here > > here though, that is something that should only be done in > > an absolute emergency when there is no way of fixing the > > device tree files. > > > > Since this is a new driver for a device that is not used in > > mainline kernels yet (AFAICT), let's fix the binding and add > > a proper detection method here. > > > Thank you. I'm not completely clear on this. Are you saying this > function should test for a new compatible that is assigned to Stratix10 > in the binding ("altr,sys-mgr-s10") instead of the machine name? Yes, exactly. Arnd