Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp731847iog; Fri, 24 Jun 2022 12:48:38 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sgZRlQ8yQW80Zj6fwojFMnkdvacUopDR8F+woVB/vzyKCXpSDPoRsJSA3XMCFoIQrTgFH0 X-Received: by 2002:a63:9c4:0:b0:401:a7b6:ad18 with SMTP id 187-20020a6309c4000000b00401a7b6ad18mr406242pgj.523.1656100118134; Fri, 24 Jun 2022 12:48:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656100118; cv=none; d=google.com; s=arc-20160816; b=cvIAL6th9G6BgLHpLIKTAfzwyGHYunLJggsg/h71bxewbFQSJYvqg82ogzzfd/KsmD hdaeTUUPQQdYyVTPy84N42lTIXx0bpma+7PhRLLW3xmCU2fSdaW6JUaGZ32ipZXe+Gah SOPDfBVXAKgmboS0pYlETFK669WCeMA9xV0HhPtDJWD00HmTNHD+2QqUbtH1xXtKmBK6 b5+Z4jPUW0rDRnVJTTpzrwXB0hVQ6Qw+FEG/fMX+CXi/dT49rcE0bLVoXpsbvnf6aEVe c8/2hHpzPpoGW9Z1pneLCOdWK0YiG+gv41L4HHcETe9mYoQ8HySldDWo74++UlRFUq6b rczA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=qqS6tMVWu0wHA8hLpr0yiEiWQ69Yua84ecNgLZiXe/s=; b=RKunf6H9IIn/iRZukYqxk7DHxIMrE47AhwLHZBEAnOZaA94ubXfge03KTOP1AvHsFf TUhAx2ypWYyJvm5K/4Cw0kiDgCVHY3TJjDWd5MUNcLgL2OayIEgx3U4b3wsJwO6xqSCS FwYN+DI+2tmhDM10hJWzZp0rR1MiMtXqdpPWIZ+LIvFEHluq6WY0flK2F3Vcu9nlZaas reOa1SlRHZR+0a/knlWhTwg0nuCK6tqVs6nmGW1KSPSfQrv17kmuQQJ+F/R8bG/Pi38x qtOobLvHxd58xk7sOJJwp5yqrtWBLy2lAnBexuQmbNY1JgCCV+khE3V8Rlvxc2Ajm8nH Q6zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ravnborg.org header.s=rsa1 header.b=TTRUsw9z; dkim=neutral (no key) header.i=@ravnborg.org header.b="u/IYSHol"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x199-20020a627cd0000000b004fa3a8e0053si3342207pfc.266.2022.06.24.12.48.24; Fri, 24 Jun 2022 12:48:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ravnborg.org header.s=rsa1 header.b=TTRUsw9z; dkim=neutral (no key) header.i=@ravnborg.org header.b="u/IYSHol"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230227AbiFXThg (ORCPT + 99 others); Fri, 24 Jun 2022 15:37:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229843AbiFXThd (ORCPT ); Fri, 24 Jun 2022 15:37:33 -0400 Received: from mailrelay4-1.pub.mailoutpod1-cph3.one.com (mailrelay4-1.pub.mailoutpod1-cph3.one.com [46.30.210.185]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCDC281DA1 for ; Fri, 24 Jun 2022 12:37:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ravnborg.org; s=rsa1; h=in-reply-to:content-type:mime-version:references:message-id:subject:cc:to: from:date:from; bh=qqS6tMVWu0wHA8hLpr0yiEiWQ69Yua84ecNgLZiXe/s=; b=TTRUsw9zczug7S+iS0OQDfdh7f47dSDAPJhPlgzpwnYrsm1Pledmm5CmKLmkzDhr+RJo+SgnUuBNK V9jVjQ3qmwwxzxqRj2CA69NPjbHVg4+DP6V4+WV24tip9wJVfcjKQHxv8cJ4Hbe9yR2oemAlW+acz5 dtBGHqEP3/QeXvuygZewn7a2Lbr8HaYOEv7aRvlTbnXwwR3SV5jV/gNWOWDxQIT3rSgHuS0ksCiLIM qZ130BIOFkKVCWXJ0PiRtagsKpwe7bWy/hATARM+UicArcShKt27YZWlJla6ULQXLQH6m+VMyghtb5 s4bROb97npqB/C9kRbHqoNJ1tJZGdiA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ravnborg.org; s=ed1; h=in-reply-to:content-type:mime-version:references:message-id:subject:cc:to: from:date:from; bh=qqS6tMVWu0wHA8hLpr0yiEiWQ69Yua84ecNgLZiXe/s=; b=u/IYSHolyWSXQd/S7P5NcgpicAfoBvu9K86QWTTprbKnZkU6nz23dG9oI0VAL2bvHdQcEDCw9RKTO iVpfSimCQ== X-HalOne-Cookie: 8e35d1b101e1b0cccc18e7e1a9e4165ba3e0e37e X-HalOne-ID: 154b2a12-f3f5-11ec-8233-d0431ea8bb10 Received: from mailproxy2.cst.dirpod4-cph3.one.com (80-162-45-141-cable.dk.customer.tdc.net [80.162.45.141]) by mailrelay4.pub.mailoutpod1-cph3.one.com (Halon) with ESMTPSA id 154b2a12-f3f5-11ec-8233-d0431ea8bb10; Fri, 24 Jun 2022 19:37:29 +0000 (UTC) Date: Fri, 24 Jun 2022 21:37:27 +0200 From: Sam Ravnborg To: Javier Martinez Canillas Cc: linux-kernel@vger.kernel.org, Marek Vasut , David Airlie , dri-devel@lists.freedesktop.org, Andy Shevchenko , Mark Brown , Geert Uytterhoeven , Thomas Zimmermann Subject: Re: [PATCH] drm/ssd130x: Use new regmap bulk write support to drop custom bus Message-ID: References: <20220618174338.2253021-1-javierm@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220618174338.2253021-1-javierm@redhat.com> X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLACK autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Javier, On Sat, Jun 18, 2022 at 07:43:38PM +0200, Javier Martinez Canillas wrote: > Data writes for the ssd130x 4-wire SPI protocol need special handling, due > the Data/Command control (D/C) pin having to be toggled prior to the write. > > The regmap API only allowed drivers to provide .reg_{read,write} callbacks > to do per register read/write, but didn't provide a way for drivers to do > the same for bulk read/writes. > > For this reason, a custom regmap bus was used by the driver just to define > a bulk write callback that implements the D/C pin toggling. But the regmap > API has been extended to support defining bulk read/write handlers, so the > custom regmap bus is not needed anymore and could just be dropped. > > Signed-off-by: Javier Martinez Canillas Patch looks good, but obviously needs the dependencies sorted out. Acked-by: Sam Ravnborg Sam