Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4980309imm; Tue, 12 Jun 2018 00:04:23 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIP/itEMorttrhjMOLaW37srK5mUoYdbH2D2/msQ/eJ/rD6+NLMqd6+wWc8rtfHIEuZww0U X-Received: by 2002:a63:7f5c:: with SMTP id p28-v6mr2144084pgn.64.1528787063868; Tue, 12 Jun 2018 00:04:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528787063; cv=none; d=google.com; s=arc-20160816; b=PCxYMhnjwPTHJugJMqu4bGOMNRU2h/U6XZchjprSFBHzkZK/eXjKuOdEWL+tlMlnq4 j0Gry6tf2lbieI53dveiPAFHmAtBbanmGy7ebv8YXftEKVOpDpdVhJNLpuqA8ciblTkx 6Fpd/AJDq6055miSQQPxPMUATTY/fMtakGqZuRe9sXut4jVhyHPhuwbemO0sLZhCNgQt 6fB6G19Dot81Q9mkHOpWsei0TiW4tbra9HMrKQgJTGvTv6eVXZF+3ZhLLOc+p1HxgsBd q+6iLrLnbZtj+volBsl94whQyXnXYoFGSgun4GkZJZgJ45KEqb0Nv4/KUl3wYGLq80Bs U1ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=jzzBJEz1pBOyhmbr32X7qo4tfuakBFuqU5BiRbPJAcA=; b=gwyygtmsajqCBbCPVxTBFIkzY7fe+edO0BHZtJp0cad0bmVooizhWjfzdpbXEnL+rL RPsenDQW/TmWM1+JhkDX23EexZosfVRl0PPPgCzz/JxlrAT4/nSMNetoEWHPArG78TzE gZCyjyqEYlvkybjE0yBqjoLeoy1ZomGXeUmPrAKolbP2tCLtyJMzH5G6qwGMqPieO8hP o/8lUNuzuA1Euv1bJhQDgdQHMy39HVu1E7FpDZ3ZWSanmQgHOjoQ7AruiBpzDe3LDin3 J9To3Y556nsnsAHF0Kr+G2mnGRDtkqV9Z69JF4DGa7ZEN+upayigo+ID4Ba4QHKDKvuC 4yuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b=xVIcvsG0; 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 r11-v6si193871pfe.145.2018.06.12.00.04.09; Tue, 12 Jun 2018 00:04:23 -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; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b=xVIcvsG0; 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 S1754179AbeFLHDp (ORCPT + 99 others); Tue, 12 Jun 2018 03:03:45 -0400 Received: from mail-sn1nam01on0071.outbound.protection.outlook.com ([104.47.32.71]:4583 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753885AbeFLHDn (ORCPT ); Tue, 12 Jun 2018 03:03:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jzzBJEz1pBOyhmbr32X7qo4tfuakBFuqU5BiRbPJAcA=; b=xVIcvsG0pTp4ObdBtdTIixZP3WJGq//KIh3s+qJ03PdaT6qyDAtkclDAsGWmCtbaem5k0yZ5sXrTD2hn5B9pbJNei6dA4RKOi2zjaonaKnmzPYhGt6qVTHWPWc30wwkVd9N+1aTIE+BcDRdq1QDuL0kCVTpiUlUicc5hinLrjsY= Received: from MWHPR02MB2816.namprd02.prod.outlook.com (10.175.50.14) by MWHPR02MB2608.namprd02.prod.outlook.com (10.168.205.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.841.17; Tue, 12 Jun 2018 07:03:40 +0000 Received: from MWHPR02MB2816.namprd02.prod.outlook.com ([fe80::d14f:48c0:905:7a42]) by MWHPR02MB2816.namprd02.prod.outlook.com ([fe80::d14f:48c0:905:7a42%2]) with mapi id 15.20.0841.019; Tue, 12 Jun 2018 07:03:39 +0000 From: Anurag Kumar Vulisha To: Greg Kroah-Hartman CC: Mathias Nyman , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] usb: host: xhci-plat: Iterate over parent nodes for finding quirks Thread-Topic: [PATCH] usb: host: xhci-plat: Iterate over parent nodes for finding quirks Thread-Index: AQHT/OD63PyU9kIWfE6vMX/XM+YDdqRRyRYAgAAzNrCACkAS0A== Date: Tue, 12 Jun 2018 07:03:39 +0000 Message-ID: References: <1528212056-28390-1-git-send-email-anurag.kumar.vulisha@xilinx.com> <20180605152524.GA23280@kroah.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=anuragku@xilinx.com; x-originating-ip: [182.72.145.30] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;MWHPR02MB2608;7:9oKyYgP52lIE9yeA/xSQF8+peUhBEJkUntkGEgqhdpdrnDcOZj6K5SFxNTWmefOjkDONTw6TDYRMT9WTYSbzPA3jD3l0VXleJRSW6MQO/Bv+qcasVLugwfaZzeR+6kvawRrvrEH84l72wnlmeWQJOP9HbetR/JHhcoih0KZdxapBJbNJ/PhBj3BD2zLKiQRP+vdMwMRGCzuTKUJf73FbzGesrTSj87J8glzWeLUgV6e7ski4Yyt5Ugy/8gt7i/5H x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:MWHPR02MB2608; x-ms-traffictypediagnostic: MWHPR02MB2608: x-ld-processed: 657af505-d5df-48d0-8300-c31994686c5c,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055)(192813158149592)(228905959029699); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(10201501046)(93006095)(93001095)(3002001)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(6072148)(201708071742011)(7699016);SRVR:MWHPR02MB2608;BCL:0;PCL:0;RULEID:;SRVR:MWHPR02MB2608; x-forefront-prvs: 07013D7479 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(376002)(396003)(39860400002)(39380400002)(366004)(13464003)(189003)(199004)(81166006)(8936002)(68736007)(99286004)(3280700002)(3660700001)(97736004)(2900100001)(33656002)(478600001)(6916009)(54906003)(316002)(14454004)(3846002)(6116002)(55016002)(25786009)(5250100002)(5660300001)(66066001)(81156014)(8676002)(2906002)(9686003)(74316002)(7736002)(305945005)(6436002)(105586002)(106356001)(446003)(4326008)(186003)(486006)(476003)(53936002)(6246003)(102836004)(11346002)(6506007)(55236004)(26005)(86362001)(229853002)(76176011)(7696005);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR02MB2608;H:MWHPR02MB2816.namprd02.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: xilinx.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: bXvaZto9tDklLsXRsZYVfSvZYWN5ojUy93UxttZWvbhrtqP6K2zFngG6SV8gv4UhdglboCZsrhLeS7gE8T3kxW9/1O0qXPgR+vsYx8MbMj7LMJMfzXc1He/+MqIVuK05ZPQBtzrfk5LBnElbnTNb144bTFRUT9WcYHjDCI47Maso2d4AwJ8T0x8Xy4AnGg0F spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 5910ce92-28e3-4622-6925-08d5d032a058 X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5910ce92-28e3-4622-6925-08d5d032a058 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Jun 2018 07:03:39.9363 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR02MB2608 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, Please let me know if you have any comments on this patch.=20 Thanks, Anurag Kumar Vulisha >-----Original Message----- >From: Anurag Kumar Vulisha >Sent: Wednesday, June 06, 2018 12:11 AM >To: Greg Kroah-Hartman >Cc: Mathias Nyman ; linux-usb@vger.kernel.org; li= nux- >kernel@vger.kernel.org >Subject: RE: [PATCH] usb: host: xhci-plat: Iterate over parent nodes for f= inding quirks > >Hi Greg, > >>-----Original Message----- >>From: Greg Kroah-Hartman [mailto:gregkh@linuxfoundation.org] >>Sent: Tuesday, June 05, 2018 8:55 PM >>To: Anurag Kumar Vulisha >>Cc: Mathias Nyman ; linux-usb@vger.kernel.org; >>linux- kernel@vger.kernel.org >>Subject: Re: [PATCH] usb: host: xhci-plat: Iterate over parent nodes >>for finding quirks >> >>On Tue, Jun 05, 2018 at 08:50:56PM +0530, Anurag Kumar Vulisha wrote: >>> In xhci_plat_probe() both sysdev and pdev->dev are being used for >>> finding quirks. There are some drivers(like dwc3 host.c) which adds >>> quirks(like usb3-lpm-capable) into pdev and the logic present in >>> xhci_plat_probe() checks for quirks in either sysdev or pdev for >>> finding the quirks. Because of this logic, some of the quirks are >>> getting missed(usb3-lpm-capable quirk added by dwc3 host.c driver is >>> getting missed).This patch fixes this by iterating over all the >>> available parents for finding the quirks. In this way all the quirks >>> which are present in child or parent are correctly updated. >>> >>> Signed-off-by: Anurag Kumar Vulisha >> >>So this is a bugfix? If so, how far back in the kernel releases should i= t go to? >> >I feel this is as a bugfix. This problem started with this patch >"usb: xhci: use bus->sysdev for DMA configuration (4c39d4b949d36faf)" >where pdev->dev is replaced with sysdev. If I am not wrong this bug is pre= sent since >4.12 kernel release. > >Thanks, >Anurag kumar Vulisha > >>thanks, >> >>greg k-h