Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp725485ybl; Thu, 12 Dec 2019 04:01:42 -0800 (PST) X-Google-Smtp-Source: APXvYqzMRvC5BcvlaCHBQAb6bO4xCEWk1hcXgm5OdFFC3hT0gh7VQ8W//igGWD/n1x//VGVbDZvA X-Received: by 2002:a05:6830:1615:: with SMTP id g21mr8078636otr.49.1576152102382; Thu, 12 Dec 2019 04:01:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576152102; cv=none; d=google.com; s=arc-20160816; b=JL/yl5dTsVT5+VN7pbqQ2I8jmNY21GAD6eomYy+3hfKdcn0xH5cWp2OqGEiQWL2PZq +AxDOBsnAcGuN2iNKcJ1YCRZPN+q67kJDbwgufVCFlPjvKC2J2r5vDG3yMoR5T3EhlW8 iDoTu3RaRJWuQue0KGPX6FN3Rm0+tjBzaU2jsZ9+9s4e5xo6CgTx70uxGh5pyeTY+J13 up/O1M1t5PguqFlXpRaos4MJyrHQhhRpWjV8g7rD7+B5ufxY/16aMkhTks2ySyeVVbhM Nrf4GdQd55u+BRZPWqNou0RQZ7s6VfhIA7ADAVNWN0+xSkxtUn9oZHx/herkfAfmhNhV 0/BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature; bh=FtU6rpvKkJAJstY84vPhuyqBVXuRwe8LN57hc6TZi5w=; b=Mn7sPhIThweTCRFeYQqq3whepy2d0+6d9KPsFnu0ykXLUvKd5H1vc+Ry1TIlf9AiuO wuMiwLiQkK3+FWZIMa98/xT/tJwzzhE1JqTuBimltHmSKtC5sBa9lkS7l3vtZBJ2eCXu vfd/4HE36vBhjxs5BYLVJhwcP7EOgUUKctcXCWJE6Q0ZcwnNJqLDEdMERIVu6MJgYA7I wAvicGTQ49MMrhYynBePLClazuhzD5Dmyl51wUO8xhG2LE81VgfbUvNKVC8JMhm/yx49 jcSXfCW01/TxkGxa/QTBkublvKGAo6zWkDv4DfuYMGpXzqGuVKQD8nqjwWz7rzQ0pIdy Mi+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=zsmsymrwgfyinv5wlfyidntwsjeeldzt header.b=an4XUNJ5; dkim=pass header.i=@amazonses.com header.s=gdwg2y3kokkkj5a55z2ilkup5wp5hhxx header.b=SdvvdUMR; 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 v92si3344599otb.140.2019.12.12.04.01.28; Thu, 12 Dec 2019 04:01:42 -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=@codeaurora.org header.s=zsmsymrwgfyinv5wlfyidntwsjeeldzt header.b=an4XUNJ5; dkim=pass header.i=@amazonses.com header.s=gdwg2y3kokkkj5a55z2ilkup5wp5hhxx header.b=SdvvdUMR; 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 S1729129AbfLLMA3 (ORCPT + 99 others); Thu, 12 Dec 2019 07:00:29 -0500 Received: from a27-186.smtp-out.us-west-2.amazonses.com ([54.240.27.186]:43918 "EHLO a27-186.smtp-out.us-west-2.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726492AbfLLMA3 (ORCPT ); Thu, 12 Dec 2019 07:00:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=zsmsymrwgfyinv5wlfyidntwsjeeldzt; d=codeaurora.org; t=1576152027; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=bc7cWrfmPZqMkXkLHGRYUdWBqPWEuLfh+HlDxrAfJfY=; b=an4XUNJ52zAFsHEXeEZs2nI1NPw8/QBYO/2YhB90E7OpJZZWX8lFKgCnCHtBAy0e efFoE2GzHuvVR5b7DmgymX5PD0Wt2lDPWpkxmH1FxSyRel8ZcTrodWFRph/tqxNcaOn rPKmujqTN3gsdT+ieOUsbgQtuTKE5xuUy4mpHuU4= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=gdwg2y3kokkkj5a55z2ilkup5wp5hhxx; d=amazonses.com; t=1576152027; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding:Feedback-ID; bh=bc7cWrfmPZqMkXkLHGRYUdWBqPWEuLfh+HlDxrAfJfY=; b=SdvvdUMRSppg30RkkUPcDBUuVCAa/rLQsyG7t0thTFLiWZGbbVIuXFXyfkdCXrwl KFpckQdT4rfeV2Jrwc3jT8IC1jSmopwJ8+buonU8a3SN5P/FDxgaAIX6hTaDjkMMoP6 8aMDW+buSLH9vja5ECj+Kjk8V4fKN0ISa9zs8kQU= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 50F68C433A2 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=sanm@codeaurora.org Subject: Re: [PATCH v2 1/3] usb: dwc3: Add support for SC7180 SOC To: Doug Anderson 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 References: <1574940787-1004-1-git-send-email-sanm@codeaurora.org> <1574940787-1004-2-git-send-email-sanm@codeaurora.org> From: "Sandeep Maheswaram (Temp)" Message-ID: <0101016ef9fb521b-1d7e4d62-c20c-4958-bfea-70664315040e-000000@us-west-2.amazonses.com> Date: Thu, 12 Dec 2019 12:00:27 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-SES-Outgoing: 2019.12.12-54.240.27.186 Feedback-ID: 1.us-west-2.CZuq2qbDmUIuT3qdvXlRHZZCpfZqZ4GtG9v3VKgRyF0=:AmazonSES Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 ? -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation