From patchwork Thu Apr 2 23:44:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 185158 Delivered-To: patches@linaro.org Received: by 2002:a50:3f90:0:0:0:0:0 with SMTP id e16csp23536ecu; Thu, 2 Apr 2020 16:44:59 -0700 (PDT) X-Received: by 2002:a17:90b:3009:: with SMTP id hg9mr6402846pjb.108.1585871099172; Thu, 02 Apr 2020 16:44:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585871099; cv=none; d=google.com; s=arc-20160816; b=zyac8X++jBlpBIOZuNHe1mRcv4DsPOJLY4VleNAkxwGywcpxhUBMLdPVOxICwKL90T NqMJEQiEDDI/vxI4ibwKk0PqVAiA2I2cM30v4EBPw7CiuJK7tYuxvfT4/LGlk3xjhaJ0 yx+3DZ3hqb2VlwTVODPoiqHlAahh6TxuBIPdhsktt6yfgGVt/tWv+0uzFPSVnmobCUqa T910VDJj4K+2jGKiR7lbjN7QnONZ9r1NGVOx8en3LJeXfC6karxWxaxw4in4TM1x1t+2 fitBYvDVxLDEqBs4F9ZEyDD7ow1sHyNObpNs3NUGg4lhxhwcbVkhlhfatxUlfKfF5YPh MUAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=IcUXuPRxJQI5RCQqnjKMDNcCLnTPm1SBa74gYbeIkBY=; b=Bi4Efff1b+m1N5rjoetlDu6bYCJaoxSJ6zKfYyxLtrXcGoMXxc8tYpgbm2r1gWCACZ dzZrJyPeBlhYMdJJwvJH8jSMqBiFc3oH8UrNgD+qXGLBs3hawkbf6PMbZTEMvbNeIZoJ ZyU1XhlGCSLfWODlGCNLR3z9i3j3Y7yDkixo8UDD2N7d3FDQSm6rHFLo3uNyE2yb68aM C9gVIs2Da1DvJFVeBiUtOZBluZdASjSVJ0lIS1hoa+UZB57OzYgocb0Y+s0btWBgRXvR O4sx/YXSJrEV/DIqBvIl0B7zilOmGtUPHE+9uP1uNwAqKQcmvNP8lrWzQq14MQjvw2xU y/9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DyUHLDg4; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id o35sor8973355pjo.12.2020.04.02.16.44.58 for (Google Transport Security); Thu, 02 Apr 2020 16:44:59 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DyUHLDg4; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=IcUXuPRxJQI5RCQqnjKMDNcCLnTPm1SBa74gYbeIkBY=; b=DyUHLDg4Q8iCWGfd69LaO0+mou9XnqdjVX5kvqZ+DYN6xTB6D3cvDXDdEyv7NcNvcG M20M6jgMNJjsJKyg+H6A4ScEe7xWy0TUeLrSG8I9625ok+MFgJVNywJjVWjC5qRbOJuF eycoES/pIhuiBrj4P8Oi7FpcX26pUDyrJdEJiyYhjLuvSIa+uUzEPVWu6Wo1rAawj274 xG0tZ8fO/7Ptz/3CvYUM5+8DsSXrmYMvcAwkIuLT3k+2F5QvO0fxuWNBMMNKEqlCeyQG lQdqM8ursthvgV2j4yHmWXOJqyXqJ7PXtg+HcTw5ustbHUbdUs3Zc677t5PAk1CPJzZO +gRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=IcUXuPRxJQI5RCQqnjKMDNcCLnTPm1SBa74gYbeIkBY=; b=hYASgJFK8IgjWqEhREbP0lWidTzHb+l/xD6VV1O92KzUajXmorpp6ibbze5Sv2XGtY h3P7Xue2h2ca55lPafL5ujy13J6g7CMhPEEIpwQmFn/jhH0zMNdQ+pqbC7CbVGzKlxKy XiKtf5rOgMqBT7AgFVEN2OHyCxGkgGY7EgNCyFUoPwyim8GpACNR6aCjomNnnbBCJNyJ RatmIpK1qAshH1q8IJYSd62jpy5N0iNyLOFkETIAc55EpcAK7RCC1ZHdw8CCJDH+l5M4 WEKKu2fNznyl9TkRYXnn+WXdDHSWrbBiBe3ORvxYEM/tA+/Ry6WKFhCdqnZ3UhRFt7rq ozEA== X-Gm-Message-State: AGi0PubdcJyIceHBrNvIrBqEC4WOQRrGk3+sPMtvBFbCLFHX1cz1UA6V QkRkOBGz+rGOFxmq29NGlZjb2pTz X-Google-Smtp-Source: APiQypLLA09iAbXGXVuJYxW6lprsIUBovTbEFKjLafv05TQE436Pp93UgzeyhGoErgG1V6cnI5yeTQ== X-Received: by 2002:a17:90a:da06:: with SMTP id e6mr6592136pjv.14.1585871098591; Thu, 02 Apr 2020 16:44:58 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id q71sm4481727pjb.5.2020.04.02.16.44.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Apr 2020 16:44:57 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Andy Gross , Bjorn Andersson , Rob Herring , Mark Rutland , Doug Anderson , Manu Gautam , Sandeep Maheswaram , Matthias Kaehlcke , Stephen Boyd , Kishon Vijay Abraham I , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2] phy: qcom-qusb2: Re add "qcom, sdm845-qusb2-phy" compat string Date: Thu, 2 Apr 2020 23:44:55 +0000 Message-Id: <20200402234455.75061-1-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200402223723.7150-1-john.stultz@linaro.org> References: <20200402223723.7150-1-john.stultz@linaro.org> In commit 8fe75cd4cddf ("phy: qcom-qusb2: Add generic QUSB2 V2 PHY support"), the change was made to add "qcom,qusb2-v2-phy" as a generic compat string. However the change also removed the "qcom,sdm845-qusb2-phy" compat string, which is documented in the binding and already in use. This patch re-adds the "qcom,sdm845-qusb2-phy" compat string which allows the driver to continue to work with existing dts entries such as found on the db845c. Cc: Andy Gross Cc: Bjorn Andersson Cc: Rob Herring Cc: Mark Rutland Cc: Doug Anderson Cc: Manu Gautam Cc: Sandeep Maheswaram Cc: Matthias Kaehlcke Cc: Stephen Boyd Cc: Kishon Vijay Abraham I Cc: linux-arm-msm@vger.kernel.org Cc: devicetree@vger.kernel.org Reviewed-by: Bjorn Andersson Fixes: 8fe75cd4cddf ("phy: qcom-qusb2: Add generic QUSB2 V2 PHY support") Reported-by: YongQin Liu Signed-off-by: John Stultz --- v2: Add deprecation note on "qcom,sdm845-qusb2-phy" string as suggested by Doug. --- drivers/phy/qualcomm/phy-qcom-qusb2.c | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.17.1 diff --git a/drivers/phy/qualcomm/phy-qcom-qusb2.c b/drivers/phy/qualcomm/phy-qcom-qusb2.c index 3708d43b7508..393011a05b48 100644 --- a/drivers/phy/qualcomm/phy-qcom-qusb2.c +++ b/drivers/phy/qualcomm/phy-qcom-qusb2.c @@ -815,6 +815,13 @@ static const struct of_device_id qusb2_phy_of_match_table[] = { }, { .compatible = "qcom,msm8998-qusb2-phy", .data = &msm8998_phy_cfg, + }, { + /* + * Deprecated. Only here to support legacy device + * trees that didn't include "qcom,qusb2-v2-phy" + */ + .compatible = "qcom,sdm845-qusb2-phy", + .data = &qusb2_v2_phy_cfg, }, { .compatible = "qcom,qusb2-v2-phy", .data = &qusb2_v2_phy_cfg,