From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1270C433DF for ; Sun, 23 Aug 2020 14:08:18 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BAC3A206C0 for ; Sun, 23 Aug 2020 14:08:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="TJPh6vyj"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="cy2XscRg" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BAC3A206C0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=vYQkucjEv/qz5hbx9CYul3pTunyr5V+cxFmbLl3g1/M=; b=TJPh6vyjsUEYurPllWMoaDxJ6 ywftdHmX/maACs62DsgI4J6RyEeGyITLAbaRGzGI2+rNNo4+yUtNH5CD6Bvih08eSbvT6OIKwm+M8 Oe0jyaBYr6PjpT8XSiwjZBEmYhfN4YJ7Ib18q1I6G41mUFMEhseYusDP4fjrb67M1/fFCUpCTtUh5 ldg/zPbirmRPr0eLve9DwF18ZFZE834GK488hes6wPHPzNAqf2NAS7E6Y661TaE77xlpPhknO73xi WbshzwbD6CV5R4me2O0rCmeQJLWm8uqQKW2CywgvswNpdJdcrRvQIVNvySsXU5VFFMrZ/3zlpgFgE PxSO4LS5g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k9qeD-0002MU-BJ; Sun, 23 Aug 2020 14:07:01 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k9qeA-0002M5-Rj for linux-arm-kernel@lists.infradead.org; Sun, 23 Aug 2020 14:06:59 +0000 Received: from localhost (unknown [122.171.38.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2A264206C0; Sun, 23 Aug 2020 14:06:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598191618; bh=Tq4hRv2IPUbOGGn/x6TFd0hocJrEGy7gIGK9B/3PdMI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cy2XscRgm/7tF2FhWl0vP82JzMLroCVfrr3I4hSNRJ3LjyFWtfPY0tiAwYcZOENl5 kIKQgxMNq+rCLEGGJAVJHzNCNS3aKpzWFTYVN8MCPBTYmpy6+A9HWyDkCaL9+L/H74 qcxQ+eZcOvBFEROg2VIh2HCBAtjanWbhhna/YSkg= Date: Sun, 23 Aug 2020 19:36:54 +0530 From: Vinod Koul To: Anand Moon Subject: Re: [PATCH v5] phy: samsung: Use readl_poll_timeout function Message-ID: <20200823140654.GQ2639@vkoul-mobl> References: <20200720173502.542-1-linux.amoon@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200720173502.542-1-linux.amoon@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200823_100658_991243_879E32A9 X-CRM114-Status: GOOD ( 11.58 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-samsung-soc@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Kishon Vijay Abraham I , Kukjin Kim , linux-arm-kernel@lists.infradead.org, Marek Szyprowski Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 20-07-20, 17:35, 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. Applied, thanks -- ~Vinod _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel