Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp410997pxu; Tue, 1 Dec 2020 14:36:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJw8rfnLqApKEoNqpz3lbsMwB1WXInIVQBM8EER0pRTgD4QQHSaEby+1gUKGZa1CTPauRnJR X-Received: by 2002:a50:bec4:: with SMTP id e4mr5394027edk.65.1606862178444; Tue, 01 Dec 2020 14:36:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606862178; cv=none; d=google.com; s=arc-20160816; b=TrMAXV/YL+p/nk8m3FI7LZQ8zzALcU2En1zlxRhbVwfin0yom7kfHz3xqk3FshC0ol Sk3LjYSD3+dxjh84YFn5v3mk0xfFxZCImCVTz+1fE73RVB2cdpq8PtySQnLBQVgemgJN PT7MUjoW0EfwqWugbVtmYe7xuCujcIeNlJghIKLpcfEwWvi+oBgpUwazRRElLU7hxK78 kKP3PHQTa6QFDNMWtXt7kzh/+NSlSKq3ErzAqbYZ8VXMkHT6HKXN2krHVQzUY+yNu1r5 LF58zbHAECK7C47gaQIKy782+PJGa0aryw0o5F4yzuNjdtcaC2FSeQjmZi3Au9AcQRWw Pb7w== 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=Trz6+0KY4Qq/q4s101pZcFlPrXscSV5EXuw66cbAYr0=; b=qsnajXPPem8zqy/qmEb51gaDa1xolwF9KSc91EaiiccAxWUGgiE3DsahsaWVHzDZI0 CdP6TLVLPf5uj7GKOHo5g3vNj7d8+7d1A+m8D1/dSScwPQxNd8PZdd8UPpPKEk1BeLDj xMEUBysWhAbry/asFJUlFHxw+fpWzf+JNBCGxFiZ9rKXKaiUabpezb1HVziDxUR7U4+w PjSSgqJTRlJmdEB5TiWEKWAo/Ev+4+tsX3GqvuKgzhiAPV+aaIGcayhoYwn9tDBuJYfM lnfoM4tv8+ak+sUE66xtRm+/PzlXenqopKvocWWvfvNP6dRTdkhpCfK4qjs1gm+j9e6H YGYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gXW21Gkj; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o22si846288ejd.580.2020.12.01.14.35.55; Tue, 01 Dec 2020 14:36:18 -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=@linaro.org header.s=google header.b=gXW21Gkj; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730750AbgLAOVG (ORCPT + 99 others); Tue, 1 Dec 2020 09:21:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730595AbgLAOVF (ORCPT ); Tue, 1 Dec 2020 09:21:05 -0500 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 561DAC0613CF for ; Tue, 1 Dec 2020 06:20:25 -0800 (PST) Received: by mail-lj1-x241.google.com with SMTP id f24so3114057ljk.13 for ; Tue, 01 Dec 2020 06:20:25 -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=Trz6+0KY4Qq/q4s101pZcFlPrXscSV5EXuw66cbAYr0=; b=gXW21Gkj2scr1ID0OtMqYCfgwcmnAlVzaTnB582uTuycQVrMpA46fN8FYu2wJ4EqKV r9NxMEv4kVIuEjW+LIbHxPvbsWqsw3VT3RYIL6NaDNRNOVngiTJ+3lxJs2clc8c3GmXW ypsIFdtQvZ2rAi1BqP3d7dlrloYWNAlD8gpvUM8zTyP75RLvS6dgHluTsdVX0tC/mzx2 MN3DUuWtNxwXFgsccmIg+iiZWQGW9E5tusVVT6qxO69KLVsQ9tHgCFIH5OStjc3Op2l0 ADEYxaz7PERgCQvRK9SioTekX08Tl/MsAcAuV/CKaoP8XuGk4UKaflOuAzo9TtS/NhpO NhfQ== 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=Trz6+0KY4Qq/q4s101pZcFlPrXscSV5EXuw66cbAYr0=; b=g8SVNcvHccmaO1uGmJw3u360ScSJ56MW3aW14d0izvmhnboD+ZD6eFoDWuinjLllcK YNpCg3gVN556qbcCj/wGHl12qtVDI4VJoy8ID7qjUjzAkAR030Y22z3Raw0y4PzT0+Jj oKlbSLHZj7Lnjofm58+r8KXoykgSbKCUTe4mcxzM7zP+k7FMXmnFlvCgpfZyHWr/y02Q dQQRtDl31xOsizMcqlCjBfubjsPkTmXl53368RtPEMcqhVnm/AJXFforvatdip2apHm0 2yBm5EsKDAtUI/nNQiyccVzsAJov9tVFntspqx7GosicVGoKtNmQ3z1P07X/1ZCNSO7i eOeg== X-Gm-Message-State: AOAM532I/tXFQorJ8X7KbeKl4us15Lq2CGlsiW1AyfnmscAxUmqlidkl WhwKI9Py/4pEYbNEBnXWtXY5NCV7SDVGK75gbOSwqQ== X-Received: by 2002:a2e:998e:: with SMTP id w14mr1513703lji.100.1606832423853; Tue, 01 Dec 2020 06:20:23 -0800 (PST) MIME-Version: 1.0 References: <2D7916FA-678F-4236-B478-C953CADF2FFA@goldelico.com> <4AC29229-9542-4E77-B993-217E29C7E209@goldelico.com> <20201201121620.GB5239@sirena.org.uk> In-Reply-To: From: Linus Walleij Date: Tue, 1 Dec 2020 15:20:12 +0100 Message-ID: Subject: Re: [BUG] SPI broken for SPI based panel drivers To: "H. Nikolaus Schaller" Cc: Mark Brown , Sven Van Asbroeck , 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 Hi Nikolaus, Sven, the fault that the thing broke in the first place is all mine. Credit where credit is due! The reason why I shoot in the dark to convert all SPI drivers to use GPIO descriptors instead of the global GPIO numberspace is detailed in drivers/gpio/TODO so I will not repeat it here. I don't know if much can be done about it other than having better programmers than me at the task. Or less tired when they write the patch. etc. What other operating systems do to get around the same type of refactoring problem is to aggressively deprecate and delete code that does not follow the latest ideas of the driver subsystem developer. This is not an option on Linux because we don't like to leave working hardware and users behind so I am painstakingly fixing it all over the place, with a little help from my friends. Sometimes it blows up in my face, sometimes in other people faces too, sorry about that. Yours, Linus Walleij