Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3137527imm; Mon, 24 Sep 2018 16:53:32 -0700 (PDT) X-Google-Smtp-Source: ACcGV622+uWNIFyjYv3Qg4eYqrRNkN6HVbE6oFSyBXH1C4LtOdzSq3G1S+ViYUWY57TQTW0qZFv9 X-Received: by 2002:a17:902:14d:: with SMTP id 71-v6mr884351plb.146.1537833212160; Mon, 24 Sep 2018 16:53:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537833212; cv=none; d=google.com; s=arc-20160816; b=Thw3ICj4O4bhOFodlnQYQqyejjwo5atbFv+ObfCJS8TctnL31z3Xxo0nHy4Nk/E7f4 Undt5bc8vyJUXcZPvIa8Qx0Bxh8LHbfITIFWjnYOwepriL9idnU1rJD8+DABhtlTuKo+ foNd9lducdnovAaJadmuDAULULGWuG2H9XTMFJgvPc21mF+428E4cTsra+CfQrpPJgZZ z6hlVsrUdl2EKNQ67toV1RTOJSPYfBAfJ0uUSsOMDFDFdR9oVQmOMKI4/UVKWUfTxPiv m3B5TKyKTXfBmhbIz0EVZnNx/bFNu6/J9kGQ3KdaMufk7fKhbs+IQV7YSm/+wSphd+Zo NGpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=htkOv8a+jJwLkJJsbzLqP9XECHHdn1Vyryn+ssv2BFA=; b=HRoZunW11YHML/dsaO4rE53Mfvlv+HITvyIXOxrAFggkfbR6hFdbQGpV8dcpwujFo5 9IJct07HDP/5TFvUWR8CR1sX4mT342JSZJ1KYDunywM7fak/c8BedGsvyAk8DtiNjJE4 y2V4d7pUj/FXV1UhRzrHFmlrGh0whtgcrfRbUYSW3pCEtnpBJxDHzXw7ms5mKOssdxmM ZznOOGQsHf2QNi248Im7vqeObYAgg/l0vf5uIzpzQvr6Mkad5oOK9Ur9u8YXHPcBYcbZ IPdEkwfKXQGC6WXRP+wAVmyW+/HMGlfTfxBrFIh1AYry+KJFFXDx9qoGUzrAKqPziQ1d 26Tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Zq1hRxnl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s26-v6si650517pge.339.2018.09.24.16.53.17; Mon, 24 Sep 2018 16:53:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Zq1hRxnl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727659AbeIYF5T (ORCPT + 99 others); Tue, 25 Sep 2018 01:57:19 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:44721 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726202AbeIYF5T (ORCPT ); Tue, 25 Sep 2018 01:57:19 -0400 Received: by mail-pg1-f195.google.com with SMTP id g2-v6so2068791pgu.11 for ; Mon, 24 Sep 2018 16:52:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=htkOv8a+jJwLkJJsbzLqP9XECHHdn1Vyryn+ssv2BFA=; b=Zq1hRxnljPXKgJ+PZk58Adufj5x61ThBJcAKbTZcVHEOTRieH0ysnp3COnPehO3ANb NZPCnVBBMEuyZ2kSEyLXtPSLYjkEJV03fr/QH6VPY2bNH9OgnVHHLuQ5SJyxISufT5Jk p3FGvY+55Z7bxzl00gaBHKUFtB8CK+U4hc6Ds= 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:mime-version :content-transfer-encoding; bh=htkOv8a+jJwLkJJsbzLqP9XECHHdn1Vyryn+ssv2BFA=; b=rdbNrKmwPcD/FBsULVmEJumQIHH3tk31ND6YrKIvZglwUce0sZG/XKBltodNBvxxaT cVSDRvVz8J7vXU/EYuEpByvisBnmoP1wAHpBNtgUZrmu1SZSLXGEj6SFYF1ePQ1c8O2b x3rkHlVOKAySgrqBLVDNgz7I++zNu41iKLAnRVGdJcM5XPXEz+OsoX25QSP2Nj7AC1Sh F9mGNL5dYRTX+vx/ezKKspU4Xv41TD8tF7GZJJzXlKZaRagQWX+dZAswIHatCQu22CRT P39RzJDed9KwyOpv/bbpKDx3+9+7wgF7Q9B7pMkhNXnNBQSu10g0x36nHXkYuHY7urok Vs4w== X-Gm-Message-State: ABuFfoiEWXlXubb82cOotJs9Qaj+Ty487RgRuwnbhInNjZicapYbBidQ Z/Dl5H7q81pG/uJBfAs4+/qhocIK/ZQ= X-Received: by 2002:a62:18a:: with SMTP id 132-v6mr902226pfb.207.1537833157355; Mon, 24 Sep 2018 16:52:37 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:202:201:7e28:b9f3:6afc:5326]) by smtp.gmail.com with ESMTPSA id d81-v6sm518993pfj.122.2018.09.24.16.52.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Sep 2018 16:52:36 -0700 (PDT) From: Stephen Boyd To: Wolfram Sang Cc: linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-arm-msm@vger.kernel.org, Karthikeyan Ramasubramanian , Sagar Dharia , Girish Mahadevan , Doug Anderson Subject: [PATCH v3 0/3] Fix qcom geni i2c DMA handling Date: Mon, 24 Sep 2018 16:52:33 -0700 Message-Id: <20180924235235.182649-1-swboyd@chromium.org> X-Mailer: git-send-email 2.19.0.605.g01d371f741-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org (Numbering is weird because I dropped patch 1 but left numbering the same) The qcom GENI I2C driver fails DMA sometimes when things from request firmware are passed in as the message buffer. This patch series fixes that problem in the first patch and the second patch cleans up the code a little to reduce lines and simplify lines. Cc: Karthikeyan Ramasubramanian Cc: Sagar Dharia Cc: Girish Mahadevan Cc: Doug Anderson Changes from v2: * Dropped first patch because it's applied * New patch 3 to simplify irq handler * Updated patch 2 to hoist out common code and remove 'mode' local variable Changes from v1: * Use i2c helpers to map buffers * New patch 2 to clean up seriously indented code Stephen Boyd (2): i2c: i2c-qcom-geni: Simplify tx/rx functions i2c: i2c-qcom-geni: Simplify irq handler drivers/i2c/busses/i2c-qcom-geni.c | 149 +++++++++++++---------------- 1 file changed, 65 insertions(+), 84 deletions(-) -- Sent by a computer through tubes