From patchwork Thu Jan 28 08:10:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jenny Ho X-Patchwork-Id: 372875 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=-26.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT,USER_IN_DEF_DKIM_WL autolearn=ham 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 56B71C433E6 for ; Thu, 28 Jan 2021 08:12:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0F59260C41 for ; Thu, 28 Jan 2021 08:12:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231289AbhA1IMN (ORCPT ); Thu, 28 Jan 2021 03:12:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231799AbhA1ILR (ORCPT ); Thu, 28 Jan 2021 03:11:17 -0500 Received: from mail-pf1-x449.google.com (mail-pf1-x449.google.com [IPv6:2607:f8b0:4864:20::449]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72A99C0613D6 for ; Thu, 28 Jan 2021 00:10:37 -0800 (PST) Received: by mail-pf1-x449.google.com with SMTP id c186so3076207pfa.23 for ; Thu, 28 Jan 2021 00:10:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:message-id:mime-version:subject:from:to:cc; bh=xhIblnQywgPtk5qspOVbwKaKHkL1LTY2VsAgL+AtKig=; b=WD4xeJoZEqF+M2h7aJjMeqxKWYZDd3ZzA8vpPZ/nQ5raVj+jW/NcK2EOCZm0TJN0J6 nb7ZLRk80KPfbyV6TEXgcvfq7cRM70rIxCq6IBDjYMf5ETE8rVZy32o+7I2Gi0FeOzjg bCdQWB0dYErnjOm0e23y8AKJZrfgicf91l2aafJypL3ooEf/C1sbKUkVwKsW2YOrHJpZ x5aoZzQnppNqH7uEOkfz+A2676gKMRpUh4p593ukKefShxR9gE68Y6XEQxoelLjaBEMH XnQTGV4FL7VyTekQXDAAreNis0FN9USQ6SVPoj8lpri7LEzocEuQGRnQFy56poQzzjaI o6GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:message-id:mime-version:subject:from :to:cc; bh=xhIblnQywgPtk5qspOVbwKaKHkL1LTY2VsAgL+AtKig=; b=JXLdCv0okKTHrUbcbWuEh87/ftjOTZs/eqMHBj/tes+eq27WRWRyE8AnI5G4aTkMmt el0EO+IkrXtRITeXkYfhSj3Jl55x4NLXhiQ7sxj3WSX9v+8YCYVCwudhA37Q6KoeavY5 uoqmynzJSnjC8ZUFbRhU3Rx/OxwStFoThKy3SZ3bFVln7gsx8W4fQu9lWRqEDf3F1bWp IEt0MGUlBFCFpH3K0fcdU00A3/8XBpI3vekkcwg8nma+0g1eNutPhI3b0rcruj0fU7tw 1J/T7xKOhpzJYdURtzUexdgOgCpG6lvPuo+daQK+Z6J5K/Ag4zbEizzwT4v6zKnP5UpY NWTg== X-Gm-Message-State: AOAM532hFMc7w97K2HrfuFO9L5yzC3OcQqEai/5MqIPpWMByAKRgoHLq PI61XfQ1hvClHtmX2nd2BO/knh0B7ifCkNMh X-Google-Smtp-Source: ABdhPJzDwTg6d2cAWZ7kopJTIwvW6zLAym6qfOu4YcGv/besy02NWJjE6AYhUCMMEilIeWqmnPDxCCozT3k3dgYx Sender: "hsiufangho via sendgmr" X-Received: from hsiufangho-gl.tnn.corp.google.com ([2401:fa00:f1:200:d092:5885:655f:10cd]) (user=hsiufangho job=sendgmr) by 2002:a17:902:758b:b029:df:d1f6:9af9 with SMTP id j11-20020a170902758bb02900dfd1f69af9mr15249314pll.21.1611821436757; Thu, 28 Jan 2021 00:10:36 -0800 (PST) Date: Thu, 28 Jan 2021 16:10:30 +0800 Message-Id: <20210128081030.2345998-1-hsiufangho@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.30.0.280.ga3ce27912f-goog Subject: [PATCH] eeprom: at24: Add permission to write_timeout From: Jenny Ho To: Bartosz Golaszewski , Greg Kroah-Hartman , Arnd Bergmann Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Jenny Ho Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org Need to change timeout time for different use cases to prevent I2C error cases. Open the api and allow Read/Write permission to write_timeout Signed-off-by: Jenny Ho --- drivers/misc/eeprom/at24.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c index 926408b41270..39caead4058c 100644 --- a/drivers/misc/eeprom/at24.c +++ b/drivers/misc/eeprom/at24.c @@ -117,7 +117,7 @@ MODULE_PARM_DESC(at24_io_limit, "Maximum bytes per I/O (default 128)"); * it's important to recover from write timeouts. */ static unsigned int at24_write_timeout = 25; -module_param_named(write_timeout, at24_write_timeout, uint, 0); +module_param_named(write_timeout, at24_write_timeout, uint, 0600); MODULE_PARM_DESC(at24_write_timeout, "Time (in ms) to try writes (default 25)"); struct at24_chip_data {