From patchwork Sun Nov 26 16:40:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Beniamino Galvani X-Patchwork-Id: 10075439 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id ED4FC60353 for ; Sun, 26 Nov 2017 16:41:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DEA5028948 for ; Sun, 26 Nov 2017 16:41:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D32EA28A72; Sun, 26 Nov 2017 16:41:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5309E28A60 for ; Sun, 26 Nov 2017 16:41:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=1RYfowbH43rI+BNssnZYhEvyDT+mdLxizrvS06lKAx4=; b=cblVqEO+gYwl31Ahaw0dfI8iOg cXWalVKxSZvBjYLF0GLWWxHJzYL3H7+XpIyEp2xIFt1hbycyrHhFsyaCrXTGx7mlsufobiaiL2v8H IDenzE0eCXvUwp4f14LJcDJhhUOG0TEGxlUEaQwueXTJSYrVrYXbIN6SPy7Ft860+UUa8Hf3su0iR jUt04jmMTkCfBN5bxUsQicNBJWOBP7mE5zIE5MWQXimS6gPHecA85tWCsRgF/KcUelPhWDWV9cIvt GKMxjb4L476pzgp9tkUJWf4WJlizkZdiwCSW54WjRiJhyX0RJcV67PzMx4szOxjx5Foq/cijC8c24 x66Xlnvw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eJ003-0001PI-5M; Sun, 26 Nov 2017 16:41:47 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eIzzx-0001Fe-Mo for linux-amlogic@lists.infradead.org; Sun, 26 Nov 2017 16:41:43 +0000 Received: by mail-wm0-x241.google.com with SMTP id 124so13123003wmv.1 for ; Sun, 26 Nov 2017 08:41:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=bafcWX5RkGeR72LaBMWuQ8ioGKphnrLjhmMj656j+cc=; b=Sz4XUpfvkVYZsvIesDvq9PGwJZxc82zAqDPq0+PlFoOnDXloKVCzg19B4MC21xFk/f t7WmYA+mA9wCtcKrF46sWYH2000Es27M4b7wyjOdGj8oVF5F32cOrJjVgkl7MbCseGD2 RM2ZoMG9APhWDZyxaCoAZEI1PORN7FGy/V2sZClvmJVHepyqXRTq09Zs4S4dFBu7SZfH LRHqiwj9qYYjx8Y42ehcuEuw4OrDZcxEWYSv3qYEnhi/xwFIjK9lJITilqKxGFct2x45 rJ9L3pYSh9ZpGz5RrL0FLH42UAzmcZkrrHHd55qINqQSHaPYKU5N5KmnEAfrH9diyylb tj7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=bafcWX5RkGeR72LaBMWuQ8ioGKphnrLjhmMj656j+cc=; b=ZrsHuQpDFZgq/d9P7D09Qm78oOupJytOQLHIrLTnzVxBbTZpngiqf8ojeiTteM0gvt PkayNP4S88iYCIYi9PaoSG+Ot70GCODaie4ici+nDveVt2zoFEB4/X09o3Ti2DuxQvBi 2ulduNcLNLxkYiPgEMSR3M5AXplA5lUz7dEvBS0ycjBbBEq71SStvmDM3qWYMtqM4lI8 zlpHqXrrP1SPsa+tDQ5+u6qReic1UZdowtEixGLwKG6O4PypIldewbWlCGQmoQvVGhTe M9UmoFmM9QgyLJgDTWworq01srjrnUoP6QEv59TW6RRLAwV0bIBU6sdgOrK/kqC97Ics gDgw== X-Gm-Message-State: AJaThX7ibIVTH6TRpzva7KmFK9ywHAC8pQwYFd880bR1dmlEOzgCN/Wr SBgkTg6cpu6RnK2+GmXTge0= X-Google-Smtp-Source: AGs4zMZYt/NiSQF9MRGWI0ifM7IkYZZRQxm+nuJFWB4UfIG7qaqqycewiu21S/PbGVP8pwrcjMvEJQ== X-Received: by 10.28.193.66 with SMTP id r63mr14099794wmf.18.1511714479860; Sun, 26 Nov 2017 08:41:19 -0800 (PST) Received: from sark.homenet.telecomitalia.it (host78-28-dynamic.31-79-r.retail.telecomitalia.it. [79.31.28.78]) by smtp.gmail.com with ESMTPSA id k30sm47874486wrf.63.2017.11.26.08.41.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 26 Nov 2017 08:41:19 -0800 (PST) From: Beniamino Galvani To: u-boot@lists.denx.de Subject: [PATCH 2/4] i2c: meson: reduce timeout Date: Sun, 26 Nov 2017 17:40:55 +0100 Message-Id: <20171126164057.27728-3-b.galvani@gmail.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20171126164057.27728-1-b.galvani@gmail.com> References: <20171126164057.27728-1-b.galvani@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171126_084141_906357_4225303C X-CRM114-Status: UNSURE ( 6.99 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Albert Aribaud , trini@konsulko.com, Martin Blumenstingl , Simon Glass , Neil Armstrong , Beniamino Galvani , linux-amlogic@lists.infradead.org, Heiko Schocher , =?UTF-8?q?Andreas=20F=C3=A4rber?= MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The datasheet doesn't specify a suggested timeout and 500ms seems very long: reduce it to 100ms. Signed-off-by: Beniamino Galvani Reviewed-by: Simon Glass Reviewed-by: Heiko Schocher --- drivers/i2c/meson_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/meson_i2c.c b/drivers/i2c/meson_i2c.c index 2434d9ed53..84e1997c76 100644 --- a/drivers/i2c/meson_i2c.c +++ b/drivers/i2c/meson_i2c.c @@ -9,7 +9,7 @@ #include #include -#define I2C_TIMEOUT_MS 500 +#define I2C_TIMEOUT_MS 100 /* Control register fields */ #define REG_CTRL_START BIT(0)