Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp924184imm; Wed, 25 Jul 2018 08:25:51 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf4STsKbA7cHzmaxDiBLBptSv5c6fb2E9v8v17YRpJ4Eie+kpW+eC2pllDAyUkjUoG1M1Qd X-Received: by 2002:a65:608b:: with SMTP id t11-v6mr21053680pgu.259.1532532351517; Wed, 25 Jul 2018 08:25:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532532351; cv=none; d=google.com; s=arc-20160816; b=gPThhHVrMe6MOrPjIOwowBP1yEI30u+42EiLRYfgt3bduwpo0yVkGYfXSwijO8hvrs qbrD4ETJt8wkvkebfvHgtWWJG4Nrh43CZs4hPcDklR8qUAS5rlC+rBhc506Ci8auLfgX NQLlNnmIDuJl4OeM8NZRTvMhUSjUjakxbDfhmDBtdJonQm+puOXqrtDUSRC5BQAP4HoN wGkcJ8qfPpqU6rOequ/3qfByfKlcmEp67FYzvdXfPl1XAQJdWbtk7kmpJ9DG5PBBnivX nstFt1HyGjEP1bnzutvrt4UAFxFsQ/ORv/Oeop5Nz2rB1G6g0pjaTQWF+awse8QFUXjQ 3OWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=2Ozl4dcjmHQ6+f0pm4w1uuLp9zxqi2LiHnwTryC9tp0=; b=iyZH+yER4WommvnwWDiDEAfw4fko3HeP50KxOpRKMxSrYFWm2yuj17si9Td0dHGTZh KEUqAjbjudu7L0tD8XCD6ZEm7NUTx1Jf4LWjbZArB3e+DYFDL/KVP8/8xA08QGOuWDTS a2qs6vQyHHaPM/0XZ/gcFXo5dvx/3vsR4gF/i/uib0mgjTFqZI3CM1qAps4qVeCFVZnY uJEqfXpA79m2pvOx1gBNPuwQ+lUkT1+DNGuOpA0Sc0sBJNRXyKAGYMjGJRRGfuOWkDvE sCJIBAsp7KbDGYt/SUBYZgF7gVjI1xYW8R0iOve2U4C1u6+508simjFmeGyVkWbZSQBv nHwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GXhIAIKV; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l26-v6si15107114pgu.191.2018.07.25.08.25.36; Wed, 25 Jul 2018 08:25:51 -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=@gmail.com header.s=20161025 header.b=GXhIAIKV; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728755AbeGYQgs (ORCPT + 99 others); Wed, 25 Jul 2018 12:36:48 -0400 Received: from mail-vk0-f68.google.com ([209.85.213.68]:35260 "EHLO mail-vk0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728646AbeGYQgs (ORCPT ); Wed, 25 Jul 2018 12:36:48 -0400 Received: by mail-vk0-f68.google.com with SMTP id p12-v6so3992200vkf.2; Wed, 25 Jul 2018 08:24:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=2Ozl4dcjmHQ6+f0pm4w1uuLp9zxqi2LiHnwTryC9tp0=; b=GXhIAIKVlLh7TpYGJhZSfQIAjwr/Ik3wDG6Fy9pw7nVHodL9DHPJkNUaOcsxoNwsKa 8VuhHmwTXrzbck4CRUAeuDbos8AwF/55yic6tiy4kHXp8fVLBslJVIOiCgEWflVTDkWH WfJqA3dqr+Fgx4WjqiwOuU/WEN3xZow1B0u8QkqWo0KljDwQf/lwkXSMfLlLCsS8OJvy KjrSciRdj3jgQnCRysybNnlZ7n8nTR7KxbZ+tnPP0Ag5lWGE9N9ykTNCuPFPmdMhlfya oDBQ9J+vqWsvXgYB+F8+QBLj5sQmLjFBBHE8IoH5RQFviFWneRtN30fQABbqNle2rXXP 5mdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=2Ozl4dcjmHQ6+f0pm4w1uuLp9zxqi2LiHnwTryC9tp0=; b=IgSRkdni+kB4gzVexUX+mr2j8CgCFoibCCVfe3mty+4z+Oyiz+0UsA1ApsHv1skG61 bgNy/eou+wvneEmKIvXfHb4jRtZt8UCfVivuJyUJrjA80yEFyyMfSOPOND0fN5Jopyzm 9QsDJNS0dCG9xvSw3Z2ygN0D0gTX5Byyjt4b7Xg/Hge48Qv5oUWuspOVdpMZAIG3lyCY 9JjYGMbV9UUvUnBG6EQcuk9qk5WOR1VGNHxJUtyDprNvR5vj6u1bx/Roi5CsZuggnKq8 t/JQzkc2cvW1J4Vev1+z3vNcb1whJ8H8GGzMH4xStQwK+aE06aEliuCxsDySJ14EiKjp Q8nA== X-Gm-Message-State: AOUpUlF5mGRH6Ri8PkY/fZ7AzFvDCBcgmXcNlnTuUc40Uc2pD2MwUKfU xzZrzrYPsslfRmd9R3QjLEyxIcCX7+A1c4ewdqU= X-Received: by 2002:a1f:b503:: with SMTP id e3-v6mr7064953vkf.97.1532532278652; Wed, 25 Jul 2018 08:24:38 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a67:2149:0:0:0:0:0 with HTTP; Wed, 25 Jul 2018 08:24:37 -0700 (PDT) In-Reply-To: References: <1532519491-19502-1-git-send-email-anurag.kumar.vulisha@xilinx.com> <1532519491-19502-5-git-send-email-anurag.kumar.vulisha@xilinx.com> From: Andy Shevchenko Date: Wed, 25 Jul 2018 18:24:37 +0300 Message-ID: Subject: Re: [PATCH 4/8] usb: dwc3: implement stream transfer timeout To: Anurag Kumar Vulisha Cc: Felipe Balbi , Greg Kroah-Hartman , "v.anuragkumar@gmail.com" , USB , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 25, 2018 at 6:14 PM, Anurag Kumar Vulisha wrote: >>> +/* >>> + * Timeout value in msecs used by stream_timeout_timer when streams >>> +are enabled */ >>> +#define STREAM_TIMEOUT 50 >> >>Perhaps, STREAM_TIMEOUT_MS 50 >> >>Dunno about this driver, but it's a usual practice to help reader with understanding >>code on the first glance. >> > > Since I have mentioned "msecs" in comment above describing the STREAM_TIMEOUT, > thought it would suffice. But if you feel I should change it, I will fix it in v2 But you didn't put that comment before each occurrence of this constant in the code, right? That's what I'm talking about. If reader looks into the code, there is no need to understand the order of the value for timeout, since units are part of the name. Of course, you may ignore this comment. -- With Best Regards, Andy Shevchenko