Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp715783pxm; Thu, 3 Mar 2022 03:14:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJzKkWANccRRO/diLtGMM3DABQo4Y1KWoxjfemEpupAf6bx8BdDlhWfkfvGvwVqyBlsxS4ai X-Received: by 2002:a17:90a:eb07:b0:1be:f354:9404 with SMTP id j7-20020a17090aeb0700b001bef3549404mr4743457pjz.90.1646306077193; Thu, 03 Mar 2022 03:14:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646306077; cv=none; d=google.com; s=arc-20160816; b=h7xSGz7tK1ulpUu+XeocDHwLd0QYAIOtIR+bVse1to/odNdcPK23B3FaHdeiqBBDbS ROY+9ibkw54P3hcwkpaQQTw+ebM+xF+17BaaPYzQmDC47UcRlXG4KL96X6OP496UUBw0 c24nsqinT1B8dE8qsB0eEKyAAzp+wzTGgR0OJi9qaFlZuODAQahCsDLifQWKj5QcS+W8 /LdFzFIdhlblPM2+cVv0ttUoKFdSrItJ9CdRoDeBcaxFNFgAgnQ3qBguJ/WbUSyaQoNH 3OhKObObWyTBNk5gHJKCVYMTSYIm1wjmBMgfW7LlOa6cJQQtgxUJP+slP8Q+meQtZ/Z4 RGQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=O4+a81i4/FwqFWCQQwaGMX+OknTM79jrm4CHit9fHIU=; b=Ons7i8m/fLeZHxKS6xI38ivD+m9MqOltKysW87C6wclZ0p6hMZI4FvxJFUILsJnGC6 bB+gJQNyeMuO8dH7IEaICM0V+tn7e8bbDHd+dA+Nf/yUpnEl9qqya++kgcucLZjiNvWd 8+V0bDxdSuPqfLWIgkd4G/pBnUkGGejN2SJZbji3AK55+Oppp/YWKfwB1bJ9Y9RMXi83 H02HYAj7p5xJBFgrLVC8GU08rBDEgWL3TonTnymHqAcTWNrErWmx93PpVz4riPuKOrOq v8BHHl0E0HfYvBFuSA8ZSkZYb3c0tiUo0xyT6Gews3iFs+gXqar9tSgilPVswk36cWsw 0wgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=S6CtsfUZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bj3-20020a056a02018300b003743afcc17dsi2109592pgb.245.2022.03.03.03.14.21; Thu, 03 Mar 2022 03:14:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=S6CtsfUZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230460AbiCCIcc (ORCPT + 99 others); Thu, 3 Mar 2022 03:32:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229846AbiCCIcc (ORCPT ); Thu, 3 Mar 2022 03:32:32 -0500 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B7FB171866; Thu, 3 Mar 2022 00:31:47 -0800 (PST) Received: by mail-pg1-x533.google.com with SMTP id w37so3899960pga.7; Thu, 03 Mar 2022 00:31:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=O4+a81i4/FwqFWCQQwaGMX+OknTM79jrm4CHit9fHIU=; b=S6CtsfUZ6tGsP4RWc03eGal1v41L86zKqse8e2BxVa1Yej1V4K9NC3LAie0DLzY6WH QiS8MqCMwP9VPv27Nh+M5QRRNE7aFdbBy91qDwLSo+1fP5+eAk+kgrKrd9qccQKiTftM xx0JhshzSdil0hzu6Lpjda9I/K5l8r52cUWC/nhNoxte6m/eSEAzao95e2E8lFww+w+x /Km6ZQeH00f/WgUKPxsHyEauqJSG0kcCEn10Wtu0r5J2/OYFf05NisMXIf7E5KN3bU01 L8g6Vaqup5XBbpqn3p0yI1dw5JdcjXB4OTDoqB+c33LxC7PxVA4PhOhGwtam6i7p5xUw kydw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=O4+a81i4/FwqFWCQQwaGMX+OknTM79jrm4CHit9fHIU=; b=OpswMkOq3GfWCOSksWKvBr4NbdAgW1OV/wVDe8Go9HLGFLRYVBpy8gV70hAgeMPs9K y97weYjsnMPqRXLzN33lgjO+L1TXFt2QaHP1I/yxwa5ZDk2VOuAkHLh7u3uVhzVsPBCQ wQf5WO+VFba/EJj52vTpimxkuxRJlZw2FvpDot6o8Y5405XXQ00ds3iIuET+OT7IqDQT e6FMAN+PzYmWURDmccTecXysqJT2MNHy4AgistJILyB6xYUaEKq+HM6f/JliO3Bl53eb Czh9KXmpEHNSIueKPQKDp0JLyDdzuiVpMFvDm/+iEXUL5BLvprTkFH701bNuaNNZVFrh Wfzw== X-Gm-Message-State: AOAM532XXM0Opscy6SmvJdiiE0DtrimLelI+Ofpy+r4kOCK6cnF2nCZz f+U+0NDo3zCjVW+66E+gEQ== X-Received: by 2002:a63:4d8:0:b0:373:cf6d:40e3 with SMTP id 207-20020a6304d8000000b00373cf6d40e3mr29425592pge.590.1646296306997; Thu, 03 Mar 2022 00:31:46 -0800 (PST) Received: from localhost ([2401:e180:8860:3b30:e4a0:392a:996e:c525]) by smtp.gmail.com with ESMTPSA id g1-20020a056a000b8100b004f111c21535sm1758909pfj.80.2022.03.03.00.31.45 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 03 Mar 2022 00:31:46 -0800 (PST) From: Tyrone Ting To: avifishman70@gmail.com, tmaimon77@gmail.com, tali.perry1@gmail.com, venture@google.com, yuenn@google.com, benjaminfair@google.com, robh+dt@kernel.org, krzysztof.kozlowski@canonical.com, yangyicong@hisilicon.com, semen.protsenko@linaro.org, wsa@kernel.org, jie.deng@intel.com, sven@svenpeter.dev, bence98@sch.bme.hu, lukas.bulwahn@gmail.com, arnd@arndb.de, olof@lixom.net, andriy.shevchenko@linux.intel.com, warp5tw@gmail.com, tali.perry@nuvoton.com, Avi.Fishman@nuvoton.com, tomer.maimon@nuvoton.com, KWLIU@nuvoton.com, JJLIU0@nuvoton.com, kfting@nuvoton.com Cc: openbmc@lists.ozlabs.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 00/11] i2c: npcm: Bug fixes timeout, spurious interrupts Date: Thu, 3 Mar 2022 16:31:30 +0800 Message-Id: <20220303083141.8742-1-warp5tw@gmail.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tyrone Ting This patchset includes the following fixes: - Add dt-bindings description for NPCM845. - Bug fix for timeout calculation. - Better handling of spurious interrupts. - Fix for event type in slave mode. - Removal of own slave addresses [2:10]. - Support for next gen BMC (NPCM845). The NPCM I2C driver is tested on NPCM750 and NPCM845 evaluation boards. Addressed comments from: - Krzysztof Kozlowski : https://lkml.org/lkml/2022/2/21/129 - Wolfram Sang : https://lore.kernel.org/lkml/Yh536s%2F7bm6Xt6o3@ninjato/ - Rob Herring : https://lkml.org/lkml/2022/2/20/425 - Rob Herring : https://lkml.org/lkml/2022/2/22/945 - Krzysztof Kozlowski : https://www.spinics.net/lists/linux-i2c/ msg55903.html - Jonathan Neuschäfer : https://lkml.org/lkml/2022/2/21/500 - Krzysztof Kozlowski : https://lkml.org/lkml/2022/2/20/49 Changes since version 2: - Keep old code as fallback, if getting nuvoton,sys-mgr property fails. - Fix the error reported by running 'make DT_CHECKER_FLAGS=-m dt_binding_check'. - Make nuvoton,sys-mgr required for nuvoton,npcm845-i2c. - Correct the patch's subject about changing the way of getting GCR regmap and add the description about keeping old code as fallback if getting nuvoton,sys-mgr property fails. - Correct the patch title and description about removing the unused variable clk_regmap. - Use the data field directly instead of the macros since macros are not constants anymore in this patch. Changes since version 1: - Add nuvoton,sys-mgr property in NPCM devicetree. - Describe the commit message in imperative mood. - Modify the description in i2c binding document to cover NPCM series. - Add new property in i2c binding document. - Create a new patch for client address calculation. - Create a new patch for updating gcr property name. - Create a new patch for removing unused clock node. - Explain EOB in the commit description. - Create a new patch for correcting NPCM register access width. - Remove some comment since the corresponding logic no longer exists. - Remove fixes tag while the patch adds an additional feature. - Use devicetree data field to support NPCM845. Tali Perry (7): i2c: npcm: Fix client address calculation i2c: npcm: Change the way of getting GCR regmap i2c: npcm: Remove unused variable clk_regmap i2c: npcm: Fix timeout calculation i2c: npcm: Add tx complete counter i2c: npcm: Handle spurious interrupts i2c: npcm: Remove own slave addresses 2:10 Tyrone Ting (4): arm: dts: add new property for NPCM i2c module dt-bindings: i2c: npcm: support NPCM845 i2c: npcm: Correct register access width i2c: npcm: Support NPCM845 .../bindings/i2c/nuvoton,npcm7xx-i2c.yaml | 26 +- arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi | 16 + drivers/i2c/busses/Kconfig | 8 +- drivers/i2c/busses/Makefile | 2 +- drivers/i2c/busses/i2c-npcm7xx.c | 291 +++++++++++------- 5 files changed, 221 insertions(+), 122 deletions(-) -- 2.17.1