Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1912505ybl; Thu, 9 Jan 2020 03:51:02 -0800 (PST) X-Google-Smtp-Source: APXvYqzUDFcWkv672+8Fyx+7QW8efNmywtBrQRrVMxIEjhwu1NspaqyB4x8jfnqnROLhYaq+nd6+ X-Received: by 2002:a9d:f26:: with SMTP id 35mr8614448ott.260.1578570662327; Thu, 09 Jan 2020 03:51:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578570662; cv=none; d=google.com; s=arc-20160816; b=k4BzsMVSM2BIxya/UJmk9gdfL3hgO/B5/Slsk3ilfP+xNT53tub7HwJzyXoazZLyZf WJCNtaTHNNEY0DoHWlX/w7BXcBGB+lqTsH9oiNp8xHvg83xHAXNvPT/9hEY8+o+gWWpt HZOJ0ViXmOMV+r3xvbufJ9uccX7qiSx8Aoe1LhpUnxzfLSBeDlhZBeJnUIrT900Cd5rR KNj4369FyK6RaqjFTY0aM3UPfvCL5wYwT72sH6RFFOhXQJ5/mzMm4HcMssLfU+GUVvZQ AlKQaZzJaaf2Yi/D3z+PMALJXbIaF+0OpOBS6lkJro87i4+ki/XBcMEpHLQM2B/3ydtw SjTA== 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=Td9kfTnLnwwBmRTAa2kzbeKV4MI57ps+mOVfpE7/m1I=; b=gorquBNs6rTBnUYHquT0q1DvPahH695jtqQVH5ogLUICjJMaF3vyBUK3gUJBxTCLa+ fzcKcuzNv3lcDf4kaUHtORgdJpNHIeN+rK9l4cgo7MU9/se+cRyFBDyGrPc06tMJwsyC G1ywgLrnwF/8Px+oFt7VcZZ6SiTA5LY/GYqF6q2tSGWJWOVh0hei9XIsf93xvaCrIYIn wMgFGWGV39JMR9ODvKJOwzA/7d6iNuPmJQ2BBoicF2HIQFVlTAHDR+SxsqaejV9JLYRl qfFhtg516AHTZ3gB9QAL/PoW0pVTsfLw+11KJCJIW6OB6JNh9RO5QmdYRPVGkNnqS3Bd vk1w== 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 w7si3806263otq.250.2020.01.09.03.50.49; Thu, 09 Jan 2020 03:51:02 -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 S1728837AbgAIKP3 (ORCPT + 99 others); Thu, 9 Jan 2020 05:15:29 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:58619 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728588AbgAIKP3 (ORCPT ); Thu, 9 Jan 2020 05:15:29 -0500 Received: from mail-qt1-f175.google.com ([209.85.160.175]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPSA (Nemesis) id 1M1pfy-1irghj1B7o-002ESQ for ; Thu, 09 Jan 2020 11:15:27 +0100 Received: by mail-qt1-f175.google.com with SMTP id d5so5432986qto.0 for ; Thu, 09 Jan 2020 02:15:27 -0800 (PST) X-Gm-Message-State: APjAAAWeEAe4ETeznO3GbdhuyZ3+xjhHJqjLRippVDnevcjJkxZg4QhD wtfUjSFLGUvAI0HZZzG7FINrClP6hWvJgWCY0v8= X-Received: by 2002:ac8:6153:: with SMTP id d19mr7257120qtm.18.1578564926199; Thu, 09 Jan 2020 02:15:26 -0800 (PST) MIME-Version: 1.0 References: <5c545c2866ba075ddb44907940a1dae1d823b8a1.1575019719.git.viresh.kumar@linaro.org> <20200109093442.4jt44eu2zlmjaq3f@vireshk-i7> In-Reply-To: <20200109093442.4jt44eu2zlmjaq3f@vireshk-i7> From: Arnd Bergmann Date: Thu, 9 Jan 2020 11:15:09 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] firmware: arm_scmi: Make scmi core independent of transport type To: Viresh Kumar Cc: Sudeep Holla , peng.fan@nxp.com, Vincent Guittot , Jassi Brar , "linux-kernel@vger.kernel.org" , Linux ARM Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:CqTd4qZC67ym+p5h/uuW+mbbanvKbbqb3v0pSh43/1kGmRagk8r 6PEoY7oAilBHDfDijR0paIm3JTh0IDt9JI7aq5z4ULVKYqzEvkltPyc94GZpvE7gmXV+p5g NZx0H6YG3EVWHVu0NgHbc57CJ2SObALV6jaF0XwBUEJDqhPWInsB+X0xYoR6qJPVAy22pTc Af9KjGmRHJZg0MY6jpx5A== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Im2U+1dhrSs=:Z+yOeBP8SvmRdTHVLpAC5J eRCxrCBqPSVZXrUleWcthJO2SChPPwRtGnbSkpjOJ1gr6n/s2w5advJ2OaxNkd1DmAUVp0+JN lHQAsfcmWJKxKAH9tU1WCxx3wvRkWv7z8qkQP719bhl6pm0ySMyuH/262isq80iLfGIBBAxOp 5dt2QZSIeYhR2DYnzTNKu5rD/PHG4x+YUI+ePCQYtLLt2UvJF3CfMDxnbLvT6fUD8PSTSB5Fl a/W2AHZ7NSB+ac2iIYVCKdcExUjKYHoG9n9kb7BiIuJ9dXoFfcQMx+4WHnH2dDkSXY+fG0M5y KgMR9NSQ69xFzW57OAWddRBiNkahGSDS9UzDlwvYpo8k3KHqInbkErTW6T8Kkl2Rfe5Bx5DJ9 GWzQZovYuAjb/BvqcX+HCRPsZmLxy33L8WyhCXl3EYZ9SuB5/LtKUYtN7+E+H0o0JtUJHKpl7 c3n4iPc9aKpn238bBAJoFBqns2C/CpgRa4/KryJfJ4Y0wzwW2AB+rJN9Akwyt2NAaPZQTivNC BLVWZ30bxqk55iiyo7kZEyoq0SAA8dQe6FgdhFN9jDaN4Ja/T7PgwQjjIqGr8JA5VsG3fh6m9 KeRcehVZuYWxH0QxUVsg3hEK4/hWmg6OWU21gQ1z7FQISVwaznE4BpZQotlP4S4FPrzXQGxLi ov+Ipmzhh8j6k50/lEbEOY7P7upflN6gJQ870PAyNgzgY8VmVZnCFICXO3TlBptdttnq/oAip 6UKxtVZlAn9j81rPhqDKOMMtITT/knoaNqf0DWwi+l4eyDTi4Qupqt/ZllpPIZqbdbASSmrKH E6lZ39L9WtGdmQf0S+4RAKR+rXez2RHanKBZ3SV4H94kNbOLu+348q0puG9XgA39keLCSLNE4 7c/qY/IvRkyHElxvgV2w== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 9, 2020 at 10:34 AM Viresh Kumar wrote: > On 09-01-20, 09:18, Arnd Bergmann wrote: > > On Fri, Nov 29, 2019 at 10:32 AM Viresh Kumar wrote: > > This looks odd: rather than guessing the transport type based on > > random DT properties, I would prefer to have it determined by > > the device compatible string, and have different drivers bind > > to one of them each, with each driver linking against a common > > base implementation, either as separate modules or in one file. > > Since there are no platforms using the scmi binding in mainline kernel > for now, it won't be difficult to add new compatible strings. So > should this be done like: > > compatible = "arm,scmi", "arm,scmi-mailbox"; > > or just > compatible = "arm,scmi-mailbox"; I would keep compatibility with the existing binding and make a plain "arm,scmi" mean the version with the mailbox, while for new transports, I would require them to have both the existing compatible string and a more specific one. Arnd