Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1166465imu; Sat, 15 Dec 2018 16:16:32 -0800 (PST) X-Google-Smtp-Source: AFSGD/WKKUS9bToY+cRhIFeisiNJIj9R1+pvlmd7oGXyogXfq+ClbkICh3v+yM595DHUn25UKXGu X-Received: by 2002:aa7:87ce:: with SMTP id i14mr8019473pfo.20.1544919392030; Sat, 15 Dec 2018 16:16:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544919392; cv=none; d=google.com; s=arc-20160816; b=XZ21NGjTtDYd+zRG3G2kI3SLixnzjkxB/7UYnkTKgKPYeUwWK6no7Okz67AiCgyG8g jZxvr4Brlkug7EOoV1YgqQhMHqmYs45rJ4A06yESOGOAiwIGMjzf8v0UABXFuHApx9s6 4elDtBUHVuy7WkH4q16oS3K8MlZjhHJxjQgH6x/L12/yAQIcUOoNSku2BRDyCXGeea05 IcATyqr+0c0iBatW/egHxmaBzuadbG/goxqjzHEC7L+OQDsL79v6L8S+ijXpEEG1tCbt aDptNRdYr8PbNsFJrO/Hfx7ZPa35gEXXIb1ifvACDNw6BxszLdyRvbjKHhGanhMSmTk8 R1lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=kaJUjhireTSJd5qGmM0k3oHxv5G0DZYtKI5l31H90S8=; b=mxlc1gVhfcWYrzFBMAnCeuh6D7xNEgLAkcLJwZe0Mu+C4DrP9yN5SicOcDVu3/ZYiK sLDgqxD1GTKQkkEyY0R2rpL3+iHDlkOWHwV5Kmb/X+VNlKNGmnu4PbxbH700iw1j3jpb vZ3N16sr8f2Tlfrrp2X6whhPn9994dsypv0/EeSpkFMCsXDsLYrxDoqJPHhsHI2R3sAS 3RCYWOztGsH8ziTXQZyqL7jqWdMBhQv5iO9pR1wrhGKk+vMteoUgiM3r8U6ynvTrgUey XeZLAhYHcRq7SYJk3+o0kdBBSlIicQr85Hw78DamEIL4EA1wGCeMz1SDx3K/V+3QzjDZ U5RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RlMoGDpL; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 7si8788834pfb.226.2018.12.15.16.16.14; Sat, 15 Dec 2018 16:16:32 -0800 (PST) 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=@linaro.org header.s=google header.b=RlMoGDpL; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729605AbeLPAPK (ORCPT + 99 others); Sat, 15 Dec 2018 19:15:10 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:35866 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727227AbeLPAPJ (ORCPT ); Sat, 15 Dec 2018 19:15:09 -0500 Received: by mail-lj1-f194.google.com with SMTP id g11-v6so7989529ljk.3 for ; Sat, 15 Dec 2018 16:15:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kaJUjhireTSJd5qGmM0k3oHxv5G0DZYtKI5l31H90S8=; b=RlMoGDpLPLuaQLGUbXO5gYsA099s4rrT/kxukisvcP74dk46IahU5Ru7EjijesgHQV t1LJIbPaArZO8rC18No7QG30REq6p+oSVTI7BpYLAF579+8n/3Y1BEOUdEKiWmilta2i 6dhEIUUSVB84c/8+eWA7IzZ1ZOEGECpFxmEWc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kaJUjhireTSJd5qGmM0k3oHxv5G0DZYtKI5l31H90S8=; b=KUhaCAQBZvoMXmaEWjieu/IJeaZlVLJ6bVf9vIMixeFHLwiN8bq65LUe62urAmPk1m wtEOLC8xYwzzlHdpnMA3Q3HXq49yIOFUTFmWbBJTsVBGFLwTIzgw6Q3Xzg3d29/Kxb7L VUC3e4FAYPqeu61T10Yu1hDhdUUkmtjHvu9ANhdVvuYWAZeBzzIDIpQK70ylH+BJBwx4 tvtnINSc+JtWuYO8vaPA0HKl3jk+wfkqZuORziYW5Z+DOLmZx3D3kSuiLNBn62w7/oWS 8wq7H+xIzhKi9R5l9foTrVTzGTwmHaQ5i3q/I8++WY/X/teoMmY8bSPjLpb0LVTF1BsQ w7Mw== X-Gm-Message-State: AA+aEWZvpXUM6a9vePk7RKkQrNBrsUBVGLS5qZl3bUId8xBu+trI045q rNtrNHmDvZc+Zw1iix2cZTrOSZJRGXh2THkj7m2/zg== X-Received: by 2002:a2e:9849:: with SMTP id e9-v6mr4629589ljj.9.1544919306999; Sat, 15 Dec 2018 16:15:06 -0800 (PST) MIME-Version: 1.0 References: <3f9179c9a1c8e2486cdd15d28530cd2e381a8830.1544152023.git.christophe.leroy@c-s.fr> In-Reply-To: <3f9179c9a1c8e2486cdd15d28530cd2e381a8830.1544152023.git.christophe.leroy@c-s.fr> From: Linus Walleij Date: Sun, 16 Dec 2018 01:14:55 +0100 Message-ID: Subject: Re: [PATCH] gpio: max7301: fix driver for use with CONFIG_VMAP_STACK To: Christophe Leroy Cc: Bartosz Golaszewski , "linux-kernel@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org list" , "open list:GPIO SUBSYSTEM" , stable Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 7, 2018 at 2:07 PM Christophe Leroy wrote: > spi_read() and spi_write() require DMA-safe memory. When > CONFIG_VMAP_STACK is selected, those functions cannot be used > with buffers on stack. > > This patch replaces calls to spi_read() and spi_write() by > spi_write_then_read() which doesn't require DMA-safe buffers. > > Fixes: 0c36ec314735 ("gpio: gpio driver for max7301 SPI GPIO expander") > Cc: > Signed-off-by: Christophe Leroy Patch applied for fixes. Yours, Linus Walleij