Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1585414ybh; Mon, 20 Jul 2020 02:01:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQMFHQ9Hi8cXsh0bMUqdQh/5AgEVHQOpAvCnjgLKGMz4gwcY3Fwga2aRkkQvmMgXVnmZlq X-Received: by 2002:a17:906:ae56:: with SMTP id lf22mr19523002ejb.59.1595235680682; Mon, 20 Jul 2020 02:01:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595235680; cv=none; d=google.com; s=arc-20160816; b=zoyKrhVfQt6l3Swd98ZTMNAq+JZtO/QiCxmww0Hzn1LRtOqPKxWgMGOMr5d6AjRL6G 75XixV3/DYM1t85q40k7NGJGjzImXms4bQxXOK/aehNqDwGju0Z+J97crhvWeiKmiT1P Ilq4sqW8/YBbX96lFfDe3WZcv8vXtMmUtMtx/3KSeHJi4CMJEMxEpLTUpGoyx5LITpJn BKp+bAcrGklOrqOcANdfZLttzKthJV3dOLUsHF2Ckn7Uvup0cCrrd8IrEAK6Gaf7BDF7 4PGZdN0bcxbTtndYRreAJgXSc902BWmYrBVdcC5AjXOUYnqZbzduc1ihu4ulCCMb7nB2 418g== 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 :in-reply-to:references:mime-version:dkim-signature; bh=zh7Xd1q8w0eJ5dwux3SY0QwhMWb2Bu15xNtGs3cUDAU=; b=EM5UmbMHIhqtZihk8TelES/2pMIssJvazWtZEkvLjpFeRSnidu7Dp50PzLMx9Kxc2Y bF5GiCHS91DxyybmUtQ8ZdkQjaXTzA9IORv6QvTE+TM1oFwUb6WBsPO4HYx4PMJGaKHJ Q/TAcYZ6bu02ZgUwqaFzFLJIjzvlgKu/syrwzvPFdCr1Jeb3qiT6kc5e/4SzFUnV1Web zfy7TbpiPrwh+gF3OZjTqn9MIha8j0GJO31ed1+3O0Y68cps30RL0JXlphMbBBnMC3do 8m2fPdw+iY+X89Gk5eoxsnDj0ARApVOvO7WfiWnE3hoWuwSCnOl3N3yhKq0tKLM417Q+ v+Tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SW+OJHzm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id u11si10488945edy.592.2020.07.20.02.00.57; Mon, 20 Jul 2020 02:01:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SW+OJHzm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728131AbgGTI6T (ORCPT + 99 others); Mon, 20 Jul 2020 04:58:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727849AbgGTI6S (ORCPT ); Mon, 20 Jul 2020 04:58:18 -0400 Received: from mail-il1-x141.google.com (mail-il1-x141.google.com [IPv6:2607:f8b0:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45F49C061794; Mon, 20 Jul 2020 01:58:18 -0700 (PDT) Received: by mail-il1-x141.google.com with SMTP id p15so12534831ilh.13; Mon, 20 Jul 2020 01:58:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zh7Xd1q8w0eJ5dwux3SY0QwhMWb2Bu15xNtGs3cUDAU=; b=SW+OJHzmVfozyQ74x1ednL/Ut9LiWwVAEc4zlcHzV7svVjqWd8H/kzYw3oMoto1wEV 87CgVUsrOeP0ORh51ZSzctS251uIWEIOeqmuso2uI6ozBo8FyppbdBz7M8hZIlLO6TeY Mn1Y9NygIvW/yuis5631se98PPYqwd7wqguXtjK8zFpPyjPGkvpDTO4uoz1+1/CMb7oE 0qfB/KJsBthxDgOg+vqfqET1yhveGjHZucht9ouenewLaj97pRuSgNK1TjLsrih67io/ JKm15dt7DN69oBBhssgWaEa2+bDzRB8ah0MaT2C4N/sysxHcfbZDLRZKdan0SnjPRKLA L+ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zh7Xd1q8w0eJ5dwux3SY0QwhMWb2Bu15xNtGs3cUDAU=; b=d1oVWE5vYfg79APWpS1aW+pyod76OAx+D2L8y2kofeVFq8xVGbDJpAlzcDYQVpwH2+ Y++7SHkvNLDsKSbjeegdBuLsKttEAYv41arzy4TgtRivU+cbwD5k6bQhfKVg9me5f9b0 r5hud2rqaRcn50/LpVs/LU9xAiATFHJ7VHKufQAdvG1t/zY0WKqUK/sWl+8/Mv8GjjfO mF5ylIDZ/bzQwSXSL9W+Q6m7cazm2Y5QmF4yG7Qt5fvJ8WlQH2PrhqEdbhwgpMFQjWrO JZNweUQT5qmcBLATr6HPzLYiacPMmGmTa+wVzar/3/oOXNJ/KnYe8ifgsUda5eZSOo3M cz0w== X-Gm-Message-State: AOAM532Pw1VmR/Bb8Fithmhy46X2c+j+OQgEaf3IGBgca+n0KQ+0L2LH l7YBTPAnN56RJs5H+h1zIO/vvFmwAHPqsXHW5/sOhg== X-Received: by 2002:a92:4810:: with SMTP id v16mr22260069ila.75.1595235497640; Mon, 20 Jul 2020 01:58:17 -0700 (PDT) MIME-Version: 1.0 References: <20200713074243.530-1-linux.amoon@gmail.com> <20200720075013.GA6711@kozik-lap> In-Reply-To: <20200720075013.GA6711@kozik-lap> From: Anand Moon Date: Mon, 20 Jul 2020 14:28:07 +0530 Message-ID: Subject: Re: [PATCH v4] phy: samsung: Use readl_poll_timeout function To: Krzysztof Kozlowski Cc: linux-arm-kernel , Linux USB Mailing List , linux-samsung-soc@vger.kernel.org, Linux Kernel , Kishon Vijay Abraham I , Vinod Koul , Kukjin Kim , Marek Szyprowski 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 Hi Krzysztof, On Mon, 20 Jul 2020 at 13:20, Krzysztof Kozlowski wrote: > > On Mon, Jul 13, 2020 at 07:42:43AM +0000, Anand Moon wrote: > > Instead of a busy waiting while loop using udelay > > use readl_poll_timeout function to check the condition > > is met or timeout occurs in crport_handshake function. > > readl_poll_timeout is called in non atomic context so > > it safe to sleep until the condition is met. > > > > Fixes: d8c80bb3b55b ("phy: exynos5-usbdrd: Calibrate LOS levels for exynos5420/5800") > > There is no bug in original code so Fixes tag is not appropriate. Remove > it please. > Thanks for your review. Ok I will do that. > Best regards, > Krzysztof > -Anand > > Signed-off-by: Anand Moon > > --- > > Changes v4: > > Rebased on to of patch [0] https://patchwork.kernel.org/patch/11651673/ > > --Fix the commit message. > > --Fix the error timeout condition for -ETIMEDOUT > > --- > > Changes v3: > > --Fix the commit message. > > --Drop the variable, used the value directly. > > Changes v2: > > --used the default timeout values. > > --Added missing Fixed tags. > > --- > > drivers/phy/samsung/phy-exynos5-usbdrd.c | 39 ++++++++---------------- > > 1 file changed, 12 insertions(+), 27 deletions(-) > >