Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp704380ybi; Fri, 14 Jun 2019 01:53:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqwGUZ2ZWgkfZ2hj/AeWk6kJ6pFMhOj4Zoho1rO7CWQ3wdFjOtbHksU59Psew6hrpR/4Tfzn X-Received: by 2002:a17:90a:a404:: with SMTP id y4mr10323373pjp.58.1560502414083; Fri, 14 Jun 2019 01:53:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560502414; cv=none; d=google.com; s=arc-20160816; b=NKVwfgUa3s29g/w443zUlkwi/4h3dnl0f49icjdqoFKo3UklxkCVN/IWt00cdFLMtS SQiY2qoVm8kwGjZ/4vW/A4scN90KVebsHaF+OCPCT0k3ZXYqL0LGFqjL2mzzuPRKK/kE gmlHz+DrmTjLqX0UpZCablZ3vCUZ35fF9XJSvB/BH0mf0RTonGr1zHsP1cm7S4eUhusy ZVj8Jo0H9/OEDYrK2XP9GlJob0/1MyjYq5en/nKRrimd7I0/6FqkCieSsqYc2yvvnNcl Mre1Z8133QmwvtM3l3AWAA7EOfWes0ULWovcoI4hCtwpCi+bw2eYp3Ix/VOBHlaGmhAA HgRw== 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=wcX7QvYeRRE5N+qSXGgD5TD/vyyDR9JbPpr2SoM85Pm2zpKVRbGJbcDtXGzTBF9mGG N+FHCNyxxv5HpIBLfjnm7oAjifWm0cKbD2zXeuLDyaX0nFjGj79NaDJtNps4hF7b+aGF I2zVk2P+2af4PvgWbk6wESlbgzdWn37R/Wo+wIvPTnNxGI+us8bMYPS9dqsZK9obDjs5 SAw9GaEVmC+ia3aGZv+Pmih/ib6Owp3u0NeHkgIRx6/ySuxiVn+YIhVD6A0XnlsLTpcE +tJyuEmef6PB+/X4bZKLnU3Xceqbnp8I6kMbU7n3DINlol+7BF1YzdJtYsM//9sAJhsk Fgrg== 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 q28si1931832pgb.375.2019.06.14.01.53.16; Fri, 14 Jun 2019 01:53:34 -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 S1726859AbfFNIxC (ORCPT + 99 others); Fri, 14 Jun 2019 04:53:02 -0400 Received: from inva021.nxp.com ([92.121.34.21]:59240 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726883AbfFNIxB (ORCPT ); Fri, 14 Jun 2019 04:53:01 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 3D3692005F1; Fri, 14 Jun 2019 10:53:00 +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 B14702005DC; Fri, 14 Jun 2019 10:52:55 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id A8D1F40319; Fri, 14 Jun 2019 16:52:46 +0800 (SGT) From: Yinbo Zhu To: Alan Stern Cc: yinbo.zhu@nxp.com, xiaobo.xie@nxp.com, jiafei.pan@nxp.com, Greg Kroah-Hartman , Ramneek Mehresh , Nikhil Badola , Ran Wang , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v7 5/5] usb :fsl: Change string format for errata property Date: Fri, 14 Jun 2019 16:54:33 +0800 Message-Id: <20190614085433.22344-5-yinbo.zhu@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190614085433.22344-1-yinbo.zhu@nxp.com> References: <20190614085433.22344-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