Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp26769ybl; Thu, 12 Dec 2019 13:24:14 -0800 (PST) X-Google-Smtp-Source: APXvYqz9XVzWUe7oGwYBRxXQ/2/vdLQ6T0Uwx0r99o4+bB0phhywSu2zXNnyFuZND8qd1tRPrCO0 X-Received: by 2002:a9d:6b06:: with SMTP id g6mr10609130otp.93.1576185854445; Thu, 12 Dec 2019 13:24:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576185854; cv=none; d=google.com; s=arc-20160816; b=ZJSwW+k/BPyT2TZwFNQXRRCi1cgqBf64doIFtYC1r19R4QZTKDX+hHKaG5tKNi8bH7 6FhslnwFvrRhgvycX2J1P1bRqpluX/Yhm+CHO8CemMfH/6LYI5Dj9lujnKQ7ZNttHly0 EB61OCh7OhV/h1G/BDZo7O1iJ8VaD3mLYlKqXoVMpIzdi50Isur+LW2S5Uor3INbwzeu fCj6Y+yTJXcjUB2uy+uV+bEU65gQyVDKRxh5V2Ft8RKwOr5LXt1uzcnbMZasWezZQrlt vMyKhRIcLwz8taJWHRaxBiIV1gO7Y49qK/A2/LaXpGxvJOmbz9pUKfPmP4hZqoxYzo2y q4OA== 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:dkim-signature; bh=rmJb/JSmwLP599MA6+95ChQfw+WGEE+74ZZ6eN1os3M=; b=k1ZcWgpx+S+qw+fPxu7MxoyP9MTc5S7MiYvi3w21VkHJNvn4pycJWRHq8zojDr7Vsy DmqOFySPgq+ZnLVQnVtuX/WS7St0hNpgUK/2XTrF1o0I3/T1kwVvwvKJfouLJh/vS4Uo TJebAo25N9AXDzEEKxj3c4XfXzkyH+kc4ng+xlV7EKk1WSsMc9nA0KbVP41q/MMVO5o3 RAF44Fv7TUaUo5uyWrRqJuM4KeeC4QBkp2KrfZIhAgTcsBYkzO2tebDb6JbvqbeI0lU5 aS/1A3/DTCCJOhZgbz5G2WIdSsgZF/PdFYnXaOpB5IqAFi6ns68b+FqoovdV2IL6g0/O nWZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=bM7p1YBo; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d133si3876456oif.206.2019.12.12.13.24.02; Thu, 12 Dec 2019 13:24: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; dkim=pass header.i=@chromium.org header.s=google header.b=bM7p1YBo; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731077AbfLLVW4 (ORCPT + 99 others); Thu, 12 Dec 2019 16:22:56 -0500 Received: from mail-io1-f67.google.com ([209.85.166.67]:37762 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731068AbfLLVWz (ORCPT ); Thu, 12 Dec 2019 16:22:55 -0500 Received: by mail-io1-f67.google.com with SMTP id k24so183233ioc.4 for ; Thu, 12 Dec 2019 13:22:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rmJb/JSmwLP599MA6+95ChQfw+WGEE+74ZZ6eN1os3M=; b=bM7p1YBoVme4Z7buLu8zoz5ghlclJvqlRjXqPKOx0Df4yKB0aCJle4s2SoFuf/3+Sj 8ytbwFqRzQ+NRXKB4Yg0bn1vbK3fwEppKagnBuiy+N+NMF/WZint3qELtXP1OkHSPOTN 3yTUUVbtCw961MVV0qjMF05UNyZUBF9DP6L5A= 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=rmJb/JSmwLP599MA6+95ChQfw+WGEE+74ZZ6eN1os3M=; b=O88LyRCkXcsT7K9LTIrXuFbE/LPSwxWXf/A7wz9qc590iAdxTk3j462UP037deD+Gh yMFxJdt/xWsdcOT7KVT+8/KIFJIoJwN945kncfGWJZ4a5yv854n5ILP8QC9NBCKVGxtd JG5a+iQUW3XWky2vRFm/UKwUtvU3tWGK8ThUOM3Y6msqImZW3/CH88mwQULVRVBWVA0g HzQimE/qCKGXKc43rWhdnhmuuYSB3h6rQFoF+f9fT2pHSAYxttBE4/i2VRGM4F0i8hdZ fLxWCRPP+pvohI0KFRa/BYJwIP8BKPqf2Hgnbeo+8QCDKJsGjCR5NQoWQsNYiB5egEdY 2ZDA== X-Gm-Message-State: APjAAAUcfIoeTTKdiZYtzeScLEBeuJzjBDHbATeo0t8wTXUFQljsS6t6 KbDOytaiLwM1B4JI1gWi6UmleKajT7A= X-Received: by 2002:a5d:8846:: with SMTP id t6mr3734431ios.63.1576185774962; Thu, 12 Dec 2019 13:22:54 -0800 (PST) Received: from mail-io1-f42.google.com (mail-io1-f42.google.com. [209.85.166.42]) by smtp.gmail.com with ESMTPSA id i131sm1543902iof.65.2019.12.12.13.22.53 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Dec 2019 13:22:54 -0800 (PST) Received: by mail-io1-f42.google.com with SMTP id x1so166772iop.7 for ; Thu, 12 Dec 2019 13:22:53 -0800 (PST) X-Received: by 2002:a05:6638:6a6:: with SMTP id d6mr9964231jad.132.1576185772710; Thu, 12 Dec 2019 13:22:52 -0800 (PST) MIME-Version: 1.0 References: <1574940787-1004-1-git-send-email-sanm@codeaurora.org> <1574940787-1004-2-git-send-email-sanm@codeaurora.org> <0101016ef9fb5396-c1cefc2e-82fa-4828-94c0-c739cd4cd16f-000000@us-west-2.amazonses.com> In-Reply-To: <0101016ef9fb5396-c1cefc2e-82fa-4828-94c0-c739cd4cd16f-000000@us-west-2.amazonses.com> From: Doug Anderson Date: Thu, 12 Dec 2019 13:22:40 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/3] usb: dwc3: Add support for SC7180 SOC To: "Sandeep Maheswaram (Temp)" Cc: Andy Gross , Bjorn Andersson , Greg Kroah-Hartman , Rob Herring , Mark Rutland , Felipe Balbi , Stephen Boyd , linux-arm-msm , linux-usb@vger.kernel.org, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML 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 Hi, On Thu, Dec 12, 2019 at 4:00 AM Sandeep Maheswaram (Temp) wrote: > > Hi, > > On 12/12/2019 1:13 AM, Doug Anderson wrote: > > Hi, > > > > On Thu, Nov 28, 2019 at 3:35 AM Sandeep Maheswaram wrote: > >> Add compatible for SC7180 SOC in USB DWC3 driver > >> > >> Signed-off-by: Sandeep Maheswaram > >> --- > >> drivers/usb/dwc3/dwc3-qcom.c | 3 ++- > >> 1 file changed, 2 insertions(+), 1 deletion(-) > >> > >> diff --git a/drivers/usb/dwc3/dwc3-qcom.c b/drivers/usb/dwc3/dwc3-qcom.c > >> index 261af9e..1df2372 100644 > >> --- a/drivers/usb/dwc3/dwc3-qcom.c > >> +++ b/drivers/usb/dwc3/dwc3-qcom.c > >> @@ -1,5 +1,5 @@ > >> // SPDX-License-Identifier: GPL-2.0 > >> -/* Copyright (c) 2018, The Linux Foundation. All rights reserved. > >> +/* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. > >> * > >> * Inspired by dwc3-of-simple.c > >> */ > >> @@ -753,6 +753,7 @@ static const struct of_device_id dwc3_qcom_of_match[] = { > >> { .compatible = "qcom,dwc3" }, > >> { .compatible = "qcom,msm8996-dwc3" }, > >> { .compatible = "qcom,msm8998-dwc3" }, > >> + { .compatible = "qcom,sc7180-dwc3" }, > >> { .compatible = "qcom,sdm845-dwc3" }, > > It is, of course, up to Felipe. ...but in my opinion this is the > > wrong change and instead we should be deleting the SoC-specific > > strings (msm8996, msm8998, sdm845) from this file because they don't > > buy us anything. To explain how it works: > > > > 1. Device tree should have both the "SoC-specific" and generic > > "qcom,dwc3" strings. Only the "qcom,dwc3" will actually be used but > > the SoC-specific string is there so if we find a case later where we > > need to handle a SoC-specific quirk then it'll already be there. > > > > 2. Bindings should have both the "SoC-specific" and generic > > "qcom,dwc3" strings. The binding is describing what's in the device > > tree. > > > > 3. Until we have a SoC-specific quirk to handle, we _don't_ need to > > add the SoC-specific string to the driver itself. > > > > > > -Doug > > > Can i remove this patch { .compatible = "qcom,sc7180-dwc3" }, in the > next version of this series ? Yeah, drop patch #1 from your series. I've helped you out and posted: https://lore.kernel.org/r/20191212132122.1.I85a23bdcff04dbce48cc46ddb8f1ffe7a51015eb@changeid -Doug