Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4195984pxj; Mon, 21 Jun 2021 16:11:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQCT9pKXVC+zj8NDnUwbpfK8NhJK8VjDTnQeXLJ+ep/KTtEle8lFUvpz/ExJNZy87HmtS1 X-Received: by 2002:a17:906:d288:: with SMTP id ay8mr543823ejb.230.1624317107200; Mon, 21 Jun 2021 16:11:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624317107; cv=none; d=google.com; s=arc-20160816; b=SPpKuFRGXus8mCSkFljMrCYmwQ5Ht3R8ROrbvc2H5w1kXz4DANCnZS8PORHu7weX9s yH9+I5jRqwcEAD5WUSM67ZJ5K8ix4g4TH7oS5uxizaBHUkC823uj8WKJ801R+3pYpmvR UqBThToEVMs/nlWP27SoHKtlMCQlhPt5KM14FjjBWDW/k02hbt/9JU8uLLxre/kmj3rE 6LRwQ0xw+XScvyhp09S/QEySvileRil/LPjus95LDcebIAGH9S2XWoKgiHnWHHV9R/TR MGx7spbtEZbq8RxyrEdOpuaZaG7X1ebGU7O/qbtpdrFTX7YoENRHf0/iJ9I1XbXBq+BV nAmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=v/En6LjgZY7niJnaQm8RdoU1wPtPLxbEaonoJs+EGx0=; b=k62qNYpdgauQ65Lsg81Os5LX8RTVjSmJoBj/dlIc5flsc/gMMt/DDIhJDMm6o3/7uQ HqZT8QHUfO9WCWhiD1NuNSKJsbBP1oYGJ+O8ft+8LRnG7s0KANgj1svdEg3MctyZW7ep GHZw/TOUFE9VBsO93EIS68BAGfPIsOBT7IiqU57tDmVJmHzIvGbjCh56oq7xv1RCE1j9 jgNmxqqc29kDiRwJd/mhGJ/rOREfTmzsAujGWuqMnzwirUMfM/m8mWMeZ9MDiwuly1Wt EMnY9LdXkCkHP+gt9ahGHYNnoFygmz+mhK7eQk+zKsq0glE1AReTdDZqfIcu57bbgfV/ PYQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZmUtkxCO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id zd9si5391978ejb.460.2021.06.21.16.11.24; Mon, 21 Jun 2021 16:11:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZmUtkxCO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231262AbhFUXMd (ORCPT + 99 others); Mon, 21 Jun 2021 19:12:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231243AbhFUXMc (ORCPT ); Mon, 21 Jun 2021 19:12:32 -0400 Received: from mail-il1-x129.google.com (mail-il1-x129.google.com [IPv6:2607:f8b0:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A06F1C061574; Mon, 21 Jun 2021 16:10:17 -0700 (PDT) Received: by mail-il1-x129.google.com with SMTP id v5so165996ilo.5; Mon, 21 Jun 2021 16:10:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=v/En6LjgZY7niJnaQm8RdoU1wPtPLxbEaonoJs+EGx0=; b=ZmUtkxCOkuiwBj12vmqa5QcEHioVDk6d2VwahMZZ8Gac3P1YK2bjVlkn9sk8Zr3zhZ Xi0aBL/yIv+VoVIs22kjwNZppLSqN0BSmCdWRyNCvV8vQPJC294/IBFq8xzLJkeaFt/t rrRHV6VscFsoSv+JmwiAtkhtOzrXe3qPGqcWTzRsQdhRx6GDgXm3QEUxIbjxZiY1pR0d cbD6uhB6zP51lalY3ZbatDFCHhhtc2qDdxs1HhwMbNIeV1uk6MQIscDwl5L9H1UjvpBa GWkfCyowjeGdhBfQ4sLh4HJvuVixnC9ENU2JQG/6AMvf2brY+h76pTW61boHTqfib0BN T/jg== 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=v/En6LjgZY7niJnaQm8RdoU1wPtPLxbEaonoJs+EGx0=; b=TKuj+okqQGDs1jaopGGqD9MuVPqxjhPHDKNgvcd1CHRuRCWFQE6NP8T0QysCjV1vWc 4XZqPLv13nqJyXeV2gbkWzTKyDQd/q5VZ4I5VQATDlcOEQWHg6RKzAWyJDICUYEVRuKl 4h2DxnTFPM757FUyDlpNCqZcPVHlbyvEfSgMjXt5uvHySqeAf+L/ljlW/tS8gGVHH+lE uixBf3ws67pyXCCh6mIOErRajNYxwrGWZXFsfeo8cB9LIF/C2WAvqF/eqg35h3X1nAjX s0eHY6VTbslnzfKWu004TkGCkv5w0lt54lhdiW+LE0phJYLFB//69DSZeNiXjpLkDbo1 WyWQ== X-Gm-Message-State: AOAM530DlZIkdEn5Dc/0Ri9y/MahZruTF5Qe64FS2bL40c8LPgST13NU j0eX/hZusxrqXBypcbYwLyzkdjAa/idy0kcRgpE= X-Received: by 2002:a05:6e02:1e0d:: with SMTP id g13mr487732ila.178.1624317017012; Mon, 21 Jun 2021 16:10:17 -0700 (PDT) MIME-Version: 1.0 References: <20210612094631.89980-1-martin.botka@somainline.org> <20210612094631.89980-3-martin.botka@somainline.org> In-Reply-To: From: Jassi Brar Date: Mon, 21 Jun 2021 18:10:06 -0500 Message-ID: Subject: Re: [PATCH V3 3/3] mailbox: qcom-apcs: Add SM6125 compatible To: Rob Herring Cc: Martin Botka , ~postmarketos/upstreaming@lists.sr.ht, Konrad Dybcio , AngeloGioacchino Del Regno , Marijn Suijten , jamipkettunen@somainline.org, Andy Gross , Bjorn Andersson , linux-arm-msm , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 21, 2021 at 2:46 PM Rob Herring wrote: > > On Sun, Jun 20, 2021 at 10:03 PM Jassi Brar wrote: > > > > On Sat, Jun 12, 2021 at 4:46 AM Martin Botka > > wrote: > > > > > > This commit adds compatible for the SM6125 SoC > > > > > > Signed-off-by: Martin Botka > > > --- > > > Changes in V2: > > > None > > > Changes in V3: > > > Change compatible to apcs-hmss-global > > > drivers/mailbox/qcom-apcs-ipc-mailbox.c | 5 +++++ > > > 1 file changed, 5 insertions(+) > > > > > > diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c > > > index f25324d03842..f24c5ad8d658 100644 > > > --- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c > > > +++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c > > > @@ -57,6 +57,10 @@ static const struct qcom_apcs_ipc_data sdm660_apcs_data = { > > > .offset = 8, .clk_name = NULL > > > }; > > > > > > +static const struct qcom_apcs_ipc_data sm6125_apcs_data = { > > > + .offset = 8, .clk_name = NULL > > > +}; > > > + > > > static const struct qcom_apcs_ipc_data apps_shared_apcs_data = { > > > .offset = 12, .clk_name = NULL > > > }; > > > @@ -166,6 +170,7 @@ static const struct of_device_id qcom_apcs_ipc_of_match[] = { > > > { .compatible = "qcom,sc8180x-apss-shared", .data = &apps_shared_apcs_data }, > > > { .compatible = "qcom,sdm660-apcs-hmss-global", .data = &sdm660_apcs_data }, > > > { .compatible = "qcom,sdm845-apss-shared", .data = &apps_shared_apcs_data }, > > > + { .compatible = "qcom,sm6125-apcs-hmss-global", .data = &sm6125_apcs_data }, > > > { .compatible = "qcom,sm8150-apss-shared", .data = &apps_shared_apcs_data }, > > > { .compatible = "qcom,sdx55-apcs-gcc", .data = &sdx55_apcs_data }, > > > {} > > > > > These all are basically different names for the same controller. > > The 'offset' is a configuration parameter and the 'clock', when NULL, > > is basically some "always-on" clock. > > I am sure we wouldn't be doing it, if the controller was third-party. > > If newer implementations are 'the same', then they should have a > fallback compatible to the existing one that is the same and no driver > change is needed. If the differences are board or instance (within an > SoC) specific, then a DT property would be appropriate. > The controllers (13 now) only differ by the 'offset' where the registers are mapped. Clock-name is a pure s/w artifact. So, maybe we could push all these in DT. thanks.