Message ID | 20201110234653.2248594-5-linus.walleij@linaro.org |
---|---|
State | Accepted |
Commit | 4680e9cc9d8bc9db8a7489cb77a8d19962bd580e |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp657545ils; Tue, 10 Nov 2020 15:47:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJwyfkfjnRTX072ktyL4N0gfSFTaoe/PZP72gVmpUdTU6C9goxvg9HxWdLRz8O1owSj1nfiB X-Received: by 2002:a62:52d7:0:b029:18b:7093:fb88 with SMTP id g206-20020a6252d70000b029018b7093fb88mr20586425pfb.76.1605052030989; Tue, 10 Nov 2020 15:47:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605052030; cv=none; d=google.com; s=arc-20160816; b=XnFtHESbXoKh2ByfhqXp4gwFQaAWdM65dUc+aiz5uNWzPjUtf+nJv+/0nTUCgYpZX7 PVoHAe52mZv/e+w7ffJaCy2vb+/i52b4NfpSFcIQcCTlXS4mhn8dv7T6dwJNOdqRi3sD X50vtNzJ3gymXAxeArFl+W2c2YlGghf6Ru+++aHjGy5PogWpDAYnH8OkOxn62HmLa3mq d82RwRWOdo/7XCAOKndzBrr4R4LJ2r9FqzqlUj4sRFIMS5KbDFTmc7K8W6jo6BVMAiD9 OokYj+HTdv/yUfJ07CDlbzBwwMCkxgGYQ1E4ov/n67BLeTC9zUZNKJxxPXnc4hWksI8W N0Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=9zR0pqte6dso9wzfM4Yc8pYAVYktZ7kesOY5zDWcccA=; b=Ru+UDv/3YWGqZUgPoRR4w0kfyhZq9d79vqS7iLdCwT+dI0f6IfVDkiTXUEfWaBxFqk UVSyU0NiXU9dARPl77WVJSenqOafDY2shZELTDf2wW/vNhAyo0cjBp6ZGZBN1DYmwCAf m1uKq3DhXiT0v9223xdMm57fyYaIYY6FOki65Ql7tvQz7yylEJvYh7ArNrzQwcnDFO5d kmERAYeo2etg57V5YDRAtWqJG54Rpn4BAhvttgviHRRbT5cfBTRstKbztMUKXadf6mZD nUj6MST6kkwW+iR4DgniVCqSe/pzxPC6TVDwc30DggN2GTq2Z62bygU4F0fgKuBR1qtF YnXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=YC3lkdEJ; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <dri-devel-bounces@lists.freedesktop.org> Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id ay1si181922plb.21.2020.11.10.15.47.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 15:47:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=YC3lkdEJ; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 30F1089D64; Tue, 10 Nov 2020 23:47:09 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id C626389D63 for <dri-devel@lists.freedesktop.org>; Tue, 10 Nov 2020 23:47:06 +0000 (UTC) Received: by mail-lj1-x242.google.com with SMTP id b17so4197283ljf.12 for <dri-devel@lists.freedesktop.org>; Tue, 10 Nov 2020 15:47:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GSgt/pPBiOJZ6llJdG2JMoW9+H1DFAY+cbBM7SnOX6s=; b=YC3lkdEJ3jzc+Wi6dNJdRwwt0CgK2Ay+vzqMAyNvVymYQu5s5jL/Xf2/5+16rxfAF8 7OHX3EAwWqMgrU6MGDtPx/z3icV8zckmYbUivHsWGu4LsOKHnR5dCqJYAiVVpX5lpa4j pY9tjHJoTs2KtmeGJzhpuMG3BdREhQ0nnMUct7GT+Mx0TQEF69OHpD++QQePuXgrxGsM edb6Ng8x/WK13sgBapkwT4uElVBJ+D1ci1nZwVSTfZ10tMiu+VjGgMbvdngYqKVWeVZp TYmIofOZI6LndFHOkGBgo2hl+TanJnDtchqILKrWYq3s8Fox/8cxc1Av3jUxjzOQyEvu 55IA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=GSgt/pPBiOJZ6llJdG2JMoW9+H1DFAY+cbBM7SnOX6s=; b=jFsixtZmLg58XP+rrHexf2FANAtAuGCGHbv49eYYVG7ZwY6upGJAMoi57tJYcd062t /pKf7wPyFNDpgApcyKegu3rIk4B8nFgJt/sJS8jVew0DWQdrdb3fIwRSG9PgdtwtYIJ3 UusDuAZ8HK89IO1ZN10C1lAzCI9a1q6riFa8+ULCrQ8XZV1S9PM2hwq9QUrkjmwY+efR ApnNHmV3XrTTgyN2Ent0YoVmWqkRawqzDxeP/T5/+tpJ5MV9+007ovnHg47Yqo7jPX7M 6XWeA1WIm1F4OHsqUygDLePrfR0oBNGUAA0+NqX6YQIm00EGj45P7uRouGM4dssKnFw+ ussQ== X-Gm-Message-State: AOAM531QlyEHAvEbXmQUfNHiMb8BuuTP2Ms9+CGeJ2mzsS29jvCaS9Nt 0LRGLy6tl4YCS+PRVfUpfEI9G6Se+qPGtpKX X-Received: by 2002:a2e:9798:: with SMTP id y24mr8619126lji.341.1605052025204; Tue, 10 Nov 2020 15:47:05 -0800 (PST) Received: from localhost.bredbandsbolaget (c-92d7225c.014-348-6c756e10.bbcust.telenor.se. [92.34.215.146]) by smtp.gmail.com with ESMTPSA id y65sm39883lff.73.2020.11.10.15.47.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 15:47:04 -0800 (PST) From: Linus Walleij <linus.walleij@linaro.org> To: Thierry Reding <thierry.reding@gmail.com>, Sam Ravnborg <sam@ravnborg.org>, Stephan Gerhold <stephan@gerhold.net>, =?utf-8?q?Pawe=C5=82_Chmiel?= <pawel.mikolaj.chmiel@gmail.com> Subject: [PATCH 4/5] drm/panel: s6e63m0: Support 3WIRE protocol Date: Wed, 11 Nov 2020 00:46:52 +0100 Message-Id: <20201110234653.2248594-5-linus.walleij@linaro.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201110234653.2248594-1-linus.walleij@linaro.org> References: <20201110234653.2248594-1-linus.walleij@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Cc: dri-devel@lists.freedesktop.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> |
Series | Samsung s6e63m0 improvements | expand |
diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e63m0-spi.c b/drivers/gpu/drm/panel/panel-samsung-s6e63m0-spi.c index e47647f418ff..b1adf8f89c62 100644 --- a/drivers/gpu/drm/panel/panel-samsung-s6e63m0-spi.c +++ b/drivers/gpu/drm/panel/panel-samsung-s6e63m0-spi.c @@ -72,7 +72,8 @@ static int s6e63m0_spi_probe(struct spi_device *spi) int ret; spi->bits_per_word = 9; - spi->mode = SPI_MODE_3; + /* Preserve e.g. SPI_3WIRE setting */ + spi->mode |= SPI_MODE_3; ret = spi_setup(spi); if (ret < 0) { dev_err(dev, "spi setup failed.\n");
The panel can be connected using 3WIRE, then it is however necessary that the flag SPI_3WIRE is preserved on the device, as we set this from generic device tree parsing code (or similar). Just |= the SPI mode. Cc: Stephan Gerhold <stephan@gerhold.net> Cc: Paweł Chmiel <pawel.mikolaj.chmiel@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> --- drivers/gpu/drm/panel/panel-samsung-s6e63m0-spi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)