Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2097587ybd; Mon, 24 Jun 2019 00:22:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqwIZTFvCLwG8S5j6TxC/4P2o6lSsqKct3nrtPvbmiEauAV8m7GDe1zZ2kxas7PJkvpWfDPD X-Received: by 2002:a17:90a:af8b:: with SMTP id w11mr23091467pjq.135.1561360956571; Mon, 24 Jun 2019 00:22:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561360956; cv=none; d=google.com; s=arc-20160816; b=ddBicJ4BEXlr6/P0TkCcaXyOh7A2A6L94CrdI4NC4Rpid+WjjxqYFLUbZGLWa2TdmH BNMKpU55CxfZenmVsOc9gLk77huIivKFC3tZRFI5O0TR9lrkbVLkYqoJh64Qk5RKFVa7 P3koj2NkjqTjGDSDDT2XsfmaPzrUSHtY8WVtq71wEpc0qp3liTdx5IxUXbsrNEwznsuE araCwO9bkW7t6Jd+KHawQX1o8XNDuIt2kbqRfCAZCfhDhXI9FzHiK3OJOCqxK38wodqb 0re20aTVOMMkQkMn35MxKdtymYBkMbpJzwNAhjuaYvq7hWN87ENp8LyUM+BTh6vmCqMU XxgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=w1a3DlUD8vcC5f1cVv3dG7T3FK/i//CEtyrhCiGiWVs=; b=XJ9cVHjqDLRPnw5bdAKlVPyMJDo7xpPNthXCKuINifuQjWgkk4/l3kURdQ3kHjn7Nj 9VNIMdMhCoVbbFod7kfvf41tUGpQzA1KPlEZPzM05O+5O9KNBAmPsIZcVaTUoIyLfdqE Ztg0myba9LW1MzbDnU3KeTN2igOS6Miu5VtPSZObCIgyv15Z7HZXMMUqQB2RxhucZL5C I3cS35ywWA2CPAgdUprkvGn5F6xnnoutr8mvGTjjqu3vXueEn2Ju6dzddwcsBbZ7N1Qq gtjKIgbD3ROYk8Q6WIhHg/aRahKfJuBXa64g28uBvTZ/ZUTNLoPk9x3Ja+Ocx3nJ/nZh aeog== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 205si9658734pgb.424.2019.06.24.00.22.21; Mon, 24 Jun 2019 00:22:36 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727815AbfFXHUf (ORCPT + 99 others); Mon, 24 Jun 2019 03:20:35 -0400 Received: from inva021.nxp.com ([92.121.34.21]:44686 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727784AbfFXHUd (ORCPT ); Mon, 24 Jun 2019 03:20:33 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 8130C20059A; Mon, 24 Jun 2019 09:20:31 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 3C1AA200534; Mon, 24 Jun 2019 09:20:26 +0200 (CEST) Received: from mega.ap.freescale.net (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 6561140323; Mon, 24 Jun 2019 15:20:19 +0800 (SGT) From: Yinbo Zhu To: Alan Stern , Greg Kroah-Hartman Cc: yinbo.zhu@nxp.com, xiaobo.xie@nxp.com, jiafei.pan@nxp.com, Ramneek Mehresh , Nikhil Badola , Ran Wang , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v8 5/5] usb :fsl: Change string format for errata property Date: Mon, 24 Jun 2019 15:22:19 +0800 Message-Id: <20190624072219.15258-5-yinbo.zhu@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190624072219.15258-1-yinbo.zhu@nxp.com> References: <20190624072219.15258-1-yinbo.zhu@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nikhil Badola Remove USB errata checking code from driver. Applicability of erratum is retrieved by reading corresponding property in device tree. This property is written during device tree fixup. Signed-off-by: Ramneek Mehresh Signed-off-by: Nikhil Badola Signed-off-by: Yinbo Zhu --- drivers/usb/host/fsl-mph-dr-of.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/usb/host/fsl-mph-dr-of.c b/drivers/usb/host/fsl-mph-dr-of.c index 762b97600ab0..ae8f60f6e6a5 100644 --- a/drivers/usb/host/fsl-mph-dr-of.c +++ b/drivers/usb/host/fsl-mph-dr-of.c @@ -226,11 +226,8 @@ static int fsl_usb2_mph_dr_of_probe(struct platform_device *ofdev) of_property_read_bool(np, "fsl,usb_erratum-a005697"); pdata->has_fsl_erratum_a006918 = of_property_read_bool(np, "fsl,usb_erratum-a006918"); - - if (of_get_property(np, "fsl,usb_erratum_14", NULL)) - pdata->has_fsl_erratum_14 = 1; - else - pdata->has_fsl_erratum_14 = 0; + pdata->has_fsl_erratum_14 = + of_property_read_bool(np, "fsl,usb_erratum-14"); /* * Determine whether phy_clk_valid needs to be checked -- 2.17.1