Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2738090ybl; Thu, 19 Dec 2019 20:10:23 -0800 (PST) X-Google-Smtp-Source: APXvYqzcDG73wT4Lg9hRSjEYkR5EMdkFYWMQsPRZ2zziy43CIHYvPsW3j57KRXNGr8c5gwoyDSdI X-Received: by 2002:a05:6830:2001:: with SMTP id e1mr12072636otp.97.1576815023168; Thu, 19 Dec 2019 20:10:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576815023; cv=none; d=google.com; s=arc-20160816; b=SSg5msTCC5tsyOWmtw7rKlHlPJdgigSz82uvA4peXe1q7RRzLoV6DMWn+7xukf5qc3 qtDBfb13w14vNfz8Ir6/9NOQ22rzUv8Td4QTJBiXh8r8ZhGY6BhXKIkAi2cpMl9/ooFP avhyhCMjwbnfzzgXT8/+jexNnM3v4LpWT9WcatS5HSo+LN3JdGu7dSjtRvrA25mZ2FV1 gqBmbrWyhHLhjtrxdZNsw0xJsU2l9f5JmB6xB0OErkJROiQh+UWXJSQW6EgtlwAWUUHT nf+kuhrxATVd6SZ2fO3DV7JZ69/f+JJhERYSZP0I/CRv4okwFXZdf9s7DafMx6YhxeAD SOyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=iWH2rtI+yo+f6Uui9r4utAB0db9s0smuFWVbuUxv/60=; b=Vls4+04D0ioLFMgHT9rJ2GEzSFI9S11IG05A+NiM8yzw3iU/4lltzYgZuBw4YY6a1a 26rlEvg+8HtA1RO5hy8cSKN3m5HIeZun8RBb+tamP9bs09i124D4+Ci2XA3AHeSGGeLM EAV++iDdxeUolsSnRitufWKYkNrLKbfZEv2gHz6Fzwqvk7GXn5TcKdiqBp+amJwpk15L z5uqy5l8LyyL3jGW2tdtTpaBkavsiFJhlPE7MmtGOxeXLl89paui5K3VnXTn+v8oW8Gk jrIinsV/UU/I2haPFlGETHs94c9XgV3v7fzRXKNDkA1e/Ahc2Ik+zFi0DYy+vxv6er79 o7yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Ge7vJSYd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i15si3533512otl.247.2019.12.19.20.10.11; Thu, 19 Dec 2019 20:10:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Ge7vJSYd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727135AbfLTEJU (ORCPT + 99 others); Thu, 19 Dec 2019 23:09:20 -0500 Received: from mail-qk1-f196.google.com ([209.85.222.196]:40675 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726986AbfLTEJU (ORCPT ); Thu, 19 Dec 2019 23:09:20 -0500 Received: by mail-qk1-f196.google.com with SMTP id c17so6572476qkg.7 for ; Thu, 19 Dec 2019 20:09:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iWH2rtI+yo+f6Uui9r4utAB0db9s0smuFWVbuUxv/60=; b=Ge7vJSYdnt7deD6kR9fLEvZNkE16NR9RLAQVmVdh5o+lyvc2n4VcUt3iIWoIebvnaQ 4qovegTLVPk4Tdp3Bw65X6UM1HludsBNsvoxkk5P6L1rTqJRQ2Z1QHXr2KxV7RjHYpS7 aIIno4goROur4619EjBV4jXY5IGKj7lq66+NY= 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=iWH2rtI+yo+f6Uui9r4utAB0db9s0smuFWVbuUxv/60=; b=clIuYF/VpRi5LCQ1euQlPDKJAAJ0X6Efdw6fkRF0ViltnWEmAdY1Leh3PdRXBW6P/b Hsf7XL+4ZcPfiAHID7ocPzp74JbvRrAkbmONakgX1Kh+4FruKuh5bnJOg7K/IUQ1ykMV RBayYOrjtlAd8UYEQgY4Dni/bJIFybJz6nSL32Y+rEtJosF9RB6sJ3kNAVcP+F77lEyW FBOqDx7VLANuvfp9E5HeFrCzTQLYm+pQWHgHRKYOuDsszEdclEMvQtRUoA/b8Jy3oNiN wIVtyaF/zWtxewuWDkh+byBg1cZomRj9R+ZhHGrX9jXXuWoYWNRntm0Xi1/C257j7NTW YpGQ== X-Gm-Message-State: APjAAAX1F5gjjOi9ZPBoHlH1ntZnFyh0lrEIVwIj7mY4IaOBgm03ibM9 2HEPVHdNqs7SSI20jGyTzgIwdAj6hK0jWMt/VjLDcQ== X-Received: by 2002:ae9:e103:: with SMTP id g3mr4794526qkm.353.1576814959140; Thu, 19 Dec 2019 20:09:19 -0800 (PST) MIME-Version: 1.0 References: <1576813564-23927-1-git-send-email-weiyi.lu@mediatek.com> <1576813564-23927-5-git-send-email-weiyi.lu@mediatek.com> In-Reply-To: <1576813564-23927-5-git-send-email-weiyi.lu@mediatek.com> From: Nicolas Boichat Date: Fri, 20 Dec 2019 12:09:08 +0800 Message-ID: Subject: Re: [PATCH v11 04/10] soc: mediatek: Add multiple step bus protection control To: Weiyi Lu Cc: Matthias Brugger , Rob Herring , Sascha Hauer , James Liao , Fan Chen , linux-arm Mailing List , lkml , "moderated list:ARM/Mediatek SoC support" , srv_heupstream Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 20, 2019 at 11:46 AM Weiyi Lu wrote: > > Both MT8183 & MT6765 have more control steps of bus protection > than previous project. And there add more bus protection registers > reside at infracfg & smi-common. Also add new APIs for multiple > step bus protection control with more customized arguments. > And then use bp_table for bus protection of all compatibles, > instead of mixing bus_prot_mask and bus_prot_reg_update. > > Signed-off-by: Weiyi Lu I think this looks much better, thanks! Reviewed-by: Nicolas Boichat > --- > drivers/soc/mediatek/Makefile | 2 +- > drivers/soc/mediatek/mtk-scpsys-ext.c | 101 +++++++++++++++++++++++++++++ > drivers/soc/mediatek/mtk-scpsys.c | 117 +++++++++++++++++++++------------- > drivers/soc/mediatek/scpsys-ext.h | 67 +++++++++++++++++++ > 4 files changed, 240 insertions(+), 47 deletions(-) > create mode 100644 drivers/soc/mediatek/mtk-scpsys-ext.c > create mode 100644 drivers/soc/mediatek/scpsys-ext.h