From patchwork Mon Nov 7 13:42:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jarkko Nikula X-Patchwork-Id: 622491 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D131C4332F for ; Mon, 7 Nov 2022 13:43:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231124AbiKGNnA (ORCPT ); Mon, 7 Nov 2022 08:43:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231519AbiKGNm5 (ORCPT ); Mon, 7 Nov 2022 08:42:57 -0500 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9F1D1CB3B for ; Mon, 7 Nov 2022 05:42:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667828576; x=1699364576; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=3sieVvxo5fjCIEl18822rDrAKgHO+t9aH53z1XXTwOE=; b=WS2XTcZ4sHFe+kZ5auhibJzPspbHG33y8szcuF9eLGJMLXGJCHdwcdDV OI7cc2SmE6HndBN7hAgRJ39GtTVDfqQVVivQXx6++IGflGF2P20OSjvtG iy+IrmUeOv2PKeNDniB0gbbxK2osWgq9mOR5PceSHyQi98UOJX2G5P55T WoYKahNy6YJZzfT5jrGtjRHYPcaNYsUu3eJSydJprZgmY4/dON3t9X+xc d212UoTn2YRT8JZ6qmT0eDXx1x3qfqM8/UqbMh5Eo46KUYkiJ+b2OpIJl dgXQJHi1rbEK06Srtke8eZd0DwsMN/G1Qgu7Wd2DC/Mko3NG2+XW5y3kd g==; X-IronPort-AV: E=McAfee;i="6500,9779,10523"; a="372531051" X-IronPort-AV: E=Sophos;i="5.96,145,1665471600"; d="scan'208";a="372531051" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Nov 2022 05:42:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10523"; a="586971828" X-IronPort-AV: E=Sophos;i="5.96,145,1665471600"; d="scan'208";a="586971828" Received: from mylly.fi.intel.com (HELO mylly.fi.intel.com.) ([10.237.72.55]) by orsmga003.jf.intel.com with ESMTP; 07 Nov 2022 05:42:53 -0800 From: Jarkko Nikula To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Andy Shevchenko , Mika Westerberg , Jan Dabros , Michael Wu , Tian Ye , Jarkko Nikula Subject: [PATCH v3 00/12] i2c: designware: Slave fixes and generic cleanups Date: Mon, 7 Nov 2022 15:42:36 +0200 Message-Id: <20221107134248.864890-1-jarkko.nikula@linux.intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org Hi Version 3 of the patchset I sent last week: https://www.spinics.net/lists/linux-i2c/msg59046.html Changes address the comments Andy made and is rebased on top of current i2c/for-next. Changes: - Added Andy's Reviewed-by - Patch 09/12 Fixed typo - Patch 12/12 Updated commit log and code comment Jarkko Nikula (12): i2c: designware: Fix slave state machine for sequential reads i2c: designware: Empty receive FIFO in slave interrupt handler i2c: designware: Define software status flags with BIT() i2c: designware: Remove needless initializations from i2c_dw_reg_slave() i2c: designware: Remove unused completion code from i2c-designware-slave i2c: designware: Simplify slave interrupt handler nesting i2c: designware: Do not process interrupt when device is suspended i2c: designware: Move debug print in i2c_dw_isr() i2c: designware: Simplify master interrupt handler nesting i2c: designware: Remove common i2c_dw_disable_int() i2c: designware: Align defines in i2c-designware-core.h i2c: designware: Add comment to custom register value constants drivers/i2c/busses/i2c-designware-common.c | 5 - drivers/i2c/busses/i2c-designware-core.h | 235 ++++++++++----------- drivers/i2c/busses/i2c-designware-master.c | 44 ++-- drivers/i2c/busses/i2c-designware-slave.c | 77 +++---- 4 files changed, 163 insertions(+), 198 deletions(-) base-commit: befeb20d38133cf0d227ae8251ab3d392f295f52