Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3888866pxu; Mon, 30 Nov 2020 12:25:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJxO2OX3VN0WH66eX6NlrwXF/oPY20YADBK8BksNHpVSuLm8+KQotV2VslYHccy11FVeMxjt X-Received: by 2002:a50:dac9:: with SMTP id s9mr848511edj.75.1606767958228; Mon, 30 Nov 2020 12:25:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606767958; cv=none; d=google.com; s=arc-20160816; b=yNc74niMbunMqFJi6WwzrGhQp6F8Dp7KO1SnOu+tTp3cQOf1pEYtJ7aHaShB8kHO7f ttj3jJn4I8+3I3SFQ5scYDBNEglpmC3KRxwKVr20phnfFXIrR4XrgTjnUcx22wCEUONQ Wvt7hwWiCe4rWEyTB/VT9zf8qr47vPqLz8jKS5SeUP9U0esLgzrnQkGMwcNGJzmABqls 7mwSC6MnFGaFU4ajQ5wfYC/P7qvnMyyY+NkK5lWNQK/rZP+/jrq/ye7v1AXUpX2bbdVr KPirFgLGOOOK3LTF8wXvHpwm5LG4ptM051fcopa5I0O53hdk+Ck8XyaCrQeKexba8fF7 P03Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=/k+0vCI3Qz/KltzmyAOJLa3Er+O9wE4JtonfQieS+Dg=; b=OjyeS/CzR8pWtiUTDBFh6DkF3C5CwA/Ud2FprmuvRiurWKGA1Zet3S1q/fjq2YCFwo hnM5LonSPa7CCitKADcG8efw4CcAysOPEs/lvL5zqQVtN5+MJgkDfU5iMG1iskIlZZjQ mnz4cxgl0u4RaEMgZ0WjmjEmJHiOtFievglZdGPddutMUATFXE4o41tSRCF1FRkhvSyu 3kQnpbeiylqPrZsy01YwfK/wNbhlu8rm5Rs3erLfr17fQMoNIoXdPtTJj4qibLAdwHt9 d8dvHGmZXQsxur5HaZSPBSVgRDgxb3Oeax87E+35KvCqG6kojvmMxuAvdmWgtoVYAjoc YkQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=o9Zl9XSy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u9si10907926edd.26.2020.11.30.12.25.35; Mon, 30 Nov 2020 12:25:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=o9Zl9XSy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S2388460AbgK3UXj (ORCPT + 99 others); Mon, 30 Nov 2020 15:23:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388456AbgK3UXj (ORCPT ); Mon, 30 Nov 2020 15:23:39 -0500 Received: from mail-vs1-xe2d.google.com (mail-vs1-xe2d.google.com [IPv6:2607:f8b0:4864:20::e2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F924C0613D4 for ; Mon, 30 Nov 2020 12:22:53 -0800 (PST) Received: by mail-vs1-xe2d.google.com with SMTP id v8so7051539vso.2 for ; Mon, 30 Nov 2020 12:22:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/k+0vCI3Qz/KltzmyAOJLa3Er+O9wE4JtonfQieS+Dg=; b=o9Zl9XSyr5L5adD18Ck8oNJWbETsgBANou+YMAsPFXM3ibRkru80KOn8/yjcnm/Dfz R3N7clFcHS80CyQ8VZPCGl0xhEstbdGD2ePI24arGHzZdg6l/uQRwtXeHUZnj97RD1EK YCozm7TSLp/YskkZfajWRXxUBn80Mm3kQka+FtYYU34eZr5yn2i3fDaOiQL4D4wv8v75 Sm/xUacrLYw+ZXgXbyAjCrHTU3cDaZaM2UgbcY4HMS7IAcv0usFxlJtRztcKi3bQ8E62 2l5H8fleugIsGuTJ1Ij2qLOVKW8vK1c1VjityD2xfq1IGdkt4L7cyU5Bwr4p5sXDbQl7 K3jg== 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=/k+0vCI3Qz/KltzmyAOJLa3Er+O9wE4JtonfQieS+Dg=; b=jXy0Ri3PbN46bhcH25cfu0Ie1FUHK1szLUAxL7Ki8KJwsc30KC336lY09tUc5W8kJE ZHcllbKkMHSvpEjyiX57jG/gwFK5BZHLCPIr2oBBczA+6/9WjKQfkIoXlNbv2F2iMzC7 olsl296zB1EBeM8pJ9be97BuHkO5i45kYKjMvuKYTGyD7ATqh3Y1Ft4RfG6xZNU7dsVB y0256DlyqomjAoAuUOzosKFYF38w0IYLbLkC6Ymk5BBRfVnEcb04dxB0T/2wmuuoWD77 uSTUIn3Hqbu3dYru5KRNqRoSHh5RNTv6YUou8hwTNvE0xSFR1pL7w0BHagkbOxYPDmpq f3ZQ== X-Gm-Message-State: AOAM531ZiJc8Ez+6Xcd8Su+p6a+oZgDhsinOprzCVJG33Eiosvo2vqB3 OIJB/7yclMNDL0b64CGkgtgz20RLV9YxX2YTGkvn+5BoYmk= X-Received: by 2002:a67:e43:: with SMTP id 64mr6092506vso.40.1606767772156; Mon, 30 Nov 2020 12:22:52 -0800 (PST) MIME-Version: 1.0 References: <2D7916FA-678F-4236-B478-C953CADF2FFA@goldelico.com> In-Reply-To: From: Sven Van Asbroeck Date: Mon, 30 Nov 2020 15:22:41 -0500 Message-ID: Subject: Re: [BUG] SPI broken for SPI based panel drivers To: "H. Nikolaus Schaller" Cc: Linus Walleij , Mark Brown , kernel list , Laurent Pinchart , Discussions about the Letux Kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org And probably also: @@ -226,8 +226,7 @@ static int spi_gpio_setup(struct spi_device *spi) if (spi_gpio->cs_gpios) { cs = spi_gpio->cs_gpios[spi->chip_select]; if (!spi->controller_state && cs) - status = gpiod_direction_output(cs, - !(spi->mode & SPI_CS_HIGH)); + status = gpiod_direction_output(cs, false); } if (!status)