Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0BE11C4332F for ; Tue, 30 Nov 2021 08:25:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239600AbhK3I2d (ORCPT ); Tue, 30 Nov 2021 03:28:33 -0500 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:58982 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239315AbhK3I2b (ORCPT ); Tue, 30 Nov 2021 03:28:31 -0500 Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id BFEF93F1ED for ; Tue, 30 Nov 2021 08:25:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1638260707; bh=3p+JKumUVKLGKnRDqiGTb6SvutQxVEuErwdRZXy1umI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=RGpTrwsBKOV0Vn1FU03b4NvZ1F+NDNXmVPUjE4BTB4JXjm4myOYoVtbpl1Tw0k2+5 RHepkFUtEa5ErPiiEdR61CZjkIfz8nbqs0JA6fT4Nxpg29x7vgw/fcn2l/uEPJKnLn EjHGvlZnsOWhvxJ2hYyU1sWSxaywnfUZMz7pt+QsOfUFY7ZNCujCgpNK5BqhXgxtG3 fp0ud9iznLTLNHIZlecob9acbDzxM/YNBvMGnbgrAYbKXqoWmq63oR85IpOSp8Ydjm 2SYQxtyuvlPPopPt3zXRI+N5TUBB9Zm7vdRpH99Ak2qP5LtBM1TYTiYF2rLA1QshV5 U6Ixlxhgy9fqw== Received: by mail-lj1-f197.google.com with SMTP id p1-20020a2e7401000000b00218d0d11e91so7309286ljc.15 for ; Tue, 30 Nov 2021 00:25:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=3p+JKumUVKLGKnRDqiGTb6SvutQxVEuErwdRZXy1umI=; b=H3jvccKPMUFzw1Khof46maDzqc/bgzIui6pe0aEPyGzerRXi/3z+GuNuo+cKp2ZHZ6 U2S0p8tLo2mFzV7NU8JDsjeYL5djFf4BZaeYDN3dLcIvyGb5MyI2tStROu+1dPJBU+gx mU+lUFXTJNobRRK77xPiYHYUXP5zWXdKPfh4LXYsjgmZkiZhfit7Q7XZ5xr9j5/TUx9J KYXIKakw4i+/Jdk7/H1JtDe34gKsrKK9Ktl683nH15LJKdOhKrv2iQlyGPHKraBgmGxP hNvQgLhQ7tnXD+G2wlxsOCgTLNp6iDZ3F0bufbTH53+Wje5NJRY35O8ryNFx1BIoxiye bf1A== X-Gm-Message-State: AOAM533DSUl8mPePdIV4Uf1wK6yiCK+MI7tSDIajnUEWEd/H53TYCbe5 L1HywQTaMMzL69sUodWoL+ofzwN40WWpbljZOMzQgUkwjcSd/M0gnngK/ziMV5BEicuFp8AGMdC a/ihm/j2dZLBu3F/bMrztjn3aRvHdl34TV5pXZdGgtg== X-Received: by 2002:a2e:8691:: with SMTP id l17mr52337004lji.119.1638260707121; Tue, 30 Nov 2021 00:25:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJzdw4vqCeU9ExJ30tnXrnx/idsd2AeWPGkG2nc5MgwnfQ943t0An/5UqXHsZhtvNTbME+PtHw== X-Received: by 2002:a2e:8691:: with SMTP id l17mr52336973lji.119.1638260706847; Tue, 30 Nov 2021 00:25:06 -0800 (PST) Received: from [192.168.3.67] (89-77-68-124.dynamic.chello.pl. [89.77.68.124]) by smtp.gmail.com with ESMTPSA id v6sm1644426lfo.19.2021.11.30.00.25.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Nov 2021 00:25:06 -0800 (PST) Message-ID: <3d3c201c-fcfe-0ebc-5a09-52ba2220bc35@canonical.com> Date: Tue, 30 Nov 2021 09:25:00 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1 Subject: Re: [PATCH v2 2/5] soc: samsung: Add USI driver Content-Language: en-US To: Sam Protsenko , Rob Herring , Greg Kroah-Hartman Cc: Jiri Slaby , Jaewon Kim , Chanho Park , David Virag , Youngmin Nam , devicetree@vger.kernel.org, linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org References: <20211130022453.28648-1-semen.protsenko@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30/11/2021 03:31, Sam Protsenko wrote: > On Tue, 30 Nov 2021 at 04:24, Sam Protsenko wrote: >> >> USIv2 IP-core is found on modern ARM64 Exynos SoCs (like Exynos850) and >> provides selectable serial protocol (one of: UART, SPI, I2C). USIv2 >> registers usually reside in the same register map as a particular >> underlying protocol it implements, but have some particular offset. E.g. >> on Exynos850 the USI_UART has 0x13820000 base address, where UART >> registers have 0x00..0x40 offsets, and USI registers have 0xc0..0xdc >> offsets. Desired protocol can be chosen via SW_CONF register from System >> Register block of the same domain as USI. >> >> Before starting to use a particular protocol, USIv2 must be configured >> properly: >> 1. Select protocol to be used via System Register >> 2. Clear "reset" flag in USI_CON >> 3. Configure HWACG behavior (e.g. for UART Rx the HWACG must be >> disabled, so that the IP clock is not gated automatically); this is >> done using USI_OPTION register >> 4. Keep both USI clocks (PCLK and IPCLK) running during USI registers >> modification >> >> This driver implements above behavior. Of course, USIv2 driver should be >> probed before UART/I2C/SPI drivers. It can be achived by embedding >> UART/I2C/SPI nodes inside of USI node (in Device Tree); driver then >> walks underlying nodes and instantiates those. Driver also handles USI >> configuration on PM resume, as register contents can be lost during CPU >> suspend. >> >> This driver is designed with different USI versions in mind. So it >> should be relatively easy to add new USI revisions to it later. >> >> Signed-off-by: Sam Protsenko >> --- > > I'm sorry for sending this v2 series as a bunch of separate mails. My > msmtp failed in the middle of submission, two times in a row. If it's > a bother, please tell me and I'll re-send as v3. > You can always fix it by using --in-reply-to and --no-thread. This unfortunately breaks b4, so please resend (can be v2 RESEND): Looking up https://lore.kernel.org/r/20211130022250.28519-1-semen.protsenko%40linaro.org Grabbing thread from lore.kernel.org/all/20211130022250.28519-1-semen.protsenko%40linaro.org/t.mbox.gz Analyzing 2 messages in the thread Checking attestation on all messages, may take a moment... ✓ [PATCH v2 1/5] dt-bindings: soc: samsung: Add Exynos USI bindings ✓ Signed: DKIM/linaro.org ERROR: missing [2/5]! ERROR: missing [3/5]! ERROR: missing [4/5]! ERROR: missing [5/5]! Best regards, Krzysztof