Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp135147ybl; Thu, 12 Dec 2019 15:24:49 -0800 (PST) X-Google-Smtp-Source: APXvYqyExKM7MlZ5VvPoJ2iozNtu1Y4pWyjvAdfwBi7pctyK97FtSp5WOfDyHQ9bL+VuvdiZsBTB X-Received: by 2002:a9d:7c91:: with SMTP id q17mr10683846otn.70.1576193089844; Thu, 12 Dec 2019 15:24:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576193089; cv=none; d=google.com; s=arc-20160816; b=XFv1gE0FObYvANxSjI4ypIaVL+vWh6/WnXQoks1ynQQm1V/fRTOSAazOEFbw3YD7K2 WrzpcJ6/SL7y3UDFJsFLLnyYZLt4lnu3PVMTDdf97nPyCiLz59qAp/s9431dQPWnlFF8 HQvNf2tDLIpGB0R00qj4qa//6pZCqiWtN4Qoyfn7YWV5XDZvBeea6oqGq3ef0knUs6ZY iYQBYQEsQyVkBU8f+g41hrIwnvdA53A/2SSMmgjQKFMF6KHKDff/slfyknwjBbb3n9U8 uDxZK2c5MGegcJFoKCfvWM8F3Emw28OxHo/gsI2iovqCNQn2XFtD1D8ZRLmXvg5+/zLB PSIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=R1FesrMsNLhrmJsi/HIXYAEi1VeJJ7kHlJczvqulZYg=; b=0trnV+Ed5JeUBqH4COh/77a43/k+ADod4q0sUQb9qeXi75S33mLUFyen16Lg7Gkfzy f5D95hD5VXZBc8AmRAhlpatf+srfeJ3SaBolRHEU08fvrEP7tpWAUZO/HOgZn7D2k07/ HGT8ou44WbyGJKebbKp5ylFAVqDDbQBKZt2Hd8sSpJSM7O1pT56XpTeEQgUosfm/H6xw wxY2aCfMcUt8DmdI6TuL2prdTkMQt8jD3V3aVlDtsvBARnFv+/mK9PiXYq96vjtbEKHt 4KlFwRz7imRuiDhvvEmZ8f25ltu0WpddMyjUVA7u0vIP/CNyfTG3WunkEOBEskhCJbiO 2m1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hUZYD0Xw; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v25si3879510oth.136.2019.12.12.15.24.36; Thu, 12 Dec 2019 15:24:49 -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=@linaro.org header.s=google header.b=hUZYD0Xw; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731121AbfLLXXx (ORCPT + 99 others); Thu, 12 Dec 2019 18:23:53 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:32851 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730827AbfLLXXw (ORCPT ); Thu, 12 Dec 2019 18:23:52 -0500 Received: by mail-pf1-f194.google.com with SMTP id y206so294177pfb.0 for ; Thu, 12 Dec 2019 15:23:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=R1FesrMsNLhrmJsi/HIXYAEi1VeJJ7kHlJczvqulZYg=; b=hUZYD0Xwf0RYw3e73Cga+16ykn54AOG9sWN+DWGevEMxHxPa2bBl6Xdr0x4tYA5bgJ OcC8IgpVDelltxGAHytKr02PtODdaXeBVHJqnpg6PHC5hD3VeKQ51r85eEHqgWtwn3AY sicScLXK+vHXGHprq8ERYZFU/bzvOaBiPYKX6/VbDOEMnrdmeLtpBJh/Lk0MR9G9qrTG rsjih5wtjcwj6dN3CSWXLi9zi0NEvk1GwjX7in6lOiAoUnJZu0EQy0mutC9JawuF5mOj VOlViIk5W/VDERh6tOBqpangXFKU13sefvq68cAdVEKHoSxLLfBv1PMiEAxgDWDVGRqO JTuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=R1FesrMsNLhrmJsi/HIXYAEi1VeJJ7kHlJczvqulZYg=; b=b2h8+kf01+bomCljAHf9MHyz87Epsc7njJzH4Tx6aQPWLM2/UoowXwKhHJFzdCStcF erUXvLnVTeS9oDmzIy+UDffItwR+Jr9NHUxJsc15bj1uakDbMHrlfv5azHrR6hsT5TL7 N8kx0ujmAtWDnAwa7Q+CmIFV6FzAdNP0Gtu2B+tyVkw2tyN3atWHRYEfFAteW6SWxAx+ SMRZXi9d7LI84/yJpmlQJW/YHd/j8AVHTiV5yJg7kNzFwaAenurm90/m4w2y5aztn5Me iscRhV/i6fsxuw/zOVW1b8wBTZ3AxmonrlJMATT+lh01NRU2tn8A9n/ru0AN6tQbHDk6 2HRw== X-Gm-Message-State: APjAAAWmOtVmPLgmyOJY0NdbAY8unTV/6bn9dBtx5uhQVuyVXL8ZAImb NhVa76x6JSJV7ae3Aw3wgsXkiQ== X-Received: by 2002:aa7:9988:: with SMTP id k8mr12254965pfh.200.1576193031952; Thu, 12 Dec 2019 15:23:51 -0800 (PST) Received: from builder (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id a26sm8739052pfo.5.2019.12.12.15.23.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Dec 2019 15:23:51 -0800 (PST) Date: Thu, 12 Dec 2019 15:23:49 -0800 From: Bjorn Andersson To: Douglas Anderson Cc: Felipe Balbi , Manu Gautam , Andy Gross , Sandeep Maheswaram , Jeffrey Hugo , linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman Subject: Re: [PATCH] usb: dwc3: qcom: Remove useless compatible strings from the match table Message-ID: <20191212232349.GR3143381@builder> References: <20191212132122.1.I85a23bdcff04dbce48cc46ddb8f1ffe7a51015eb@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191212132122.1.I85a23bdcff04dbce48cc46ddb8f1ffe7a51015eb@changeid> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 12 Dec 13:21 PST 2019, Douglas Anderson wrote: > The of match table in dwc3-qcom.c had an entry per Qualcomm SoC known > to have dwc3. That's not needed. Here's why: > > 1. The bindings specify that the compatible string in the device tree > should contain the SoC-specific compatible string followed by the > string "qcom,dwc3". > > 2. All known Qualcomm SoC dts files (confirmed via git grep in > mainline Linux) using dwc3 follow the rules and do, in fact, > contain the SoC-specific compatible string followed by the string > "qcom,dwc3". > > 3. The source code does nothing special with the per-SoC strings--they > are only used to match the node. > > Let's remove the extra strings from the table. Doing so will avoid > the need to land future useless patches [1] that do nothing more than > add yet more strings to the table. > > NOTE: if later we _do_ find some SoC-specific quirk we need to handle > in the code we can add back a subset of these strings. At the time we > will probably also add some data in the match table to make it easier > to generalize this hypothetical quirk across all the SoCs it affects. > > [1] https://lore.kernel.org/r/1574940787-1004-2-git-send-email-sanm@codeaurora.org > Reviewed-by: Bjorn Andersson > Signed-off-by: Douglas Anderson > --- > > drivers/usb/dwc3/dwc3-qcom.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/usb/dwc3/dwc3-qcom.c b/drivers/usb/dwc3/dwc3-qcom.c > index 261af9e38ddd..72e867e02a1c 100644 > --- a/drivers/usb/dwc3/dwc3-qcom.c > +++ b/drivers/usb/dwc3/dwc3-qcom.c > @@ -751,9 +751,6 @@ static const struct dev_pm_ops dwc3_qcom_dev_pm_ops = { > > static const struct of_device_id dwc3_qcom_of_match[] = { > { .compatible = "qcom,dwc3" }, > - { .compatible = "qcom,msm8996-dwc3" }, > - { .compatible = "qcom,msm8998-dwc3" }, > - { .compatible = "qcom,sdm845-dwc3" }, > { } > }; > MODULE_DEVICE_TABLE(of, dwc3_qcom_of_match); > -- > 2.24.1.735.g03f4e72817-goog >