Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp849655imi; Fri, 22 Jul 2022 10:49:33 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sD3Ixa3/29RkTb7ZTpCz30e+fthC1opnTtIQDZMJhurH9j2FyTAfPEfQ35YgPHq7qqGHuQ X-Received: by 2002:a63:f502:0:b0:41a:5a7e:e5b4 with SMTP id w2-20020a63f502000000b0041a5a7ee5b4mr766565pgh.240.1658512172940; Fri, 22 Jul 2022 10:49:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658512172; cv=none; d=google.com; s=arc-20160816; b=UHBYr+AjMqPwlnXRvNGZpgMe6iXHUSFlb7Cx5gMFld4sqrroJouUsviadLp2EKB31e A5uDzC2LWfmXzhgzaTIpSiY34hze2Ouae/4LFF45ggCKAnA5QbbSEaZ+eYKbvSpExmwA cv9zKDF6apR0g658nU0dsVn/84bTHnI46iqquXfb0qdo9P+tA9qOq6r5GFU8YOr2cgZr mw4OincKU20z2btswJT37NqT0rQccceV/rG5bLJnCygLMMy4pWD46CI08Ei5CDFNbY1p G+5EfvEz0MM31BIuyi/UzmcN7HbzWLK5quQpYjBCwcRRi/xAqChGUit+EhYVjuDoEAQ9 rMnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=siI7/lD81kyWLQyF5/WV8DbZeAWnZDkinKrf8vJZ9AQ=; b=LRcqPbe1xcXmR+tZ8QEtHmFOJR1VPwY5pSYoHdLcHjxS9r0cXG7T2qGCjTyeWpC3xZ wxVXpkaAeN+iSJdu0hrbXHycQ/B4i5e7lqbwQf3KH/ilL/N+/6hObUHPkNyidTW2Ayeh kUXyE0KLWEt2NNlAS0hHxXjCbfUPZVkTpLXDxjJJceATCdrfeo0h1VN5a0Jo0khBGGii GCXMh2uprFO03ia/R70g5c8ayE/PngANjX/YpHG+sNUXNFXhjRkxMD9tfb9Rof1znzQ5 gh+N+GZpNDmmZrHMM9KDXH7Ap6Aqrdgqg8C3/bX6KX71UuW3NtPK05o8TlOcXla3dUPh PkhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G2yZ9ZDC; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bc6-20020a170902930600b0016bf943aed4si5697836plb.239.2022.07.22.10.49.17; Fri, 22 Jul 2022 10:49:32 -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=@linaro.org header.s=google header.b=G2yZ9ZDC; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236065AbiGVRgJ (ORCPT + 99 others); Fri, 22 Jul 2022 13:36:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231421AbiGVRgH (ORCPT ); Fri, 22 Jul 2022 13:36:07 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C18E8C588 for ; Fri, 22 Jul 2022 10:36:06 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id o12so6249128ljc.3 for ; Fri, 22 Jul 2022 10:36:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=siI7/lD81kyWLQyF5/WV8DbZeAWnZDkinKrf8vJZ9AQ=; b=G2yZ9ZDC+GHFFgMKdqoofXT8fAAOL5E/soGuGLEBu11gQckoorXPxw9IS78d2w1qiR f31mMLqaAf4UmprVakQTiPZ5Qv4YTwjY1LYXNIioKuzGx0rRrYNC1RoHDk19kYLUUECt uB40RencH11PrSF5EjoGNepdrL/jgL/XAmqW+fuN3SdzMyz5ej2YqGydCYhh4ruoxnxs 5a25dzgWSJpS3ZSqClnzkjAGZWTiVH9HnRxYDc+6CBzbiW6zkOonAaE+/PbOsaRWDlur BR7YEmEKzVSy1wdsWwvcy/o2YQKOPkGIWx2kvXEmGcNBP2fr66F2WSLa32EI7o4YvmlP 0+ew== 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=siI7/lD81kyWLQyF5/WV8DbZeAWnZDkinKrf8vJZ9AQ=; b=opw1uHSRz1scpuktB3XQu/Cj2lvknpaBzTCxE/aE8a20zrtD86MT73oGV6f99hZ0xK x4IED0eYMaS9keJJNQxZoG7XOun3eSYvmTnPkS2NQuXhfL+humvUZVfJ6AhS3RbcEOib lhMWHPzZPbzd558IHLfsM8YmRrJCwrRvfOk3lKhDw6v3fcgSaAwuCVQ1CMeqlpTWC7gc cRqJsMF9HX+oAidaAH77Ox0RRX8FfYXqTN0wrXNP6QWArwSRIBLTABVGzrZsGPfmMsY6 wbbZCUGKaIQUvOj1EA+iv8qHHpi6yolfb6AsdqrKV15quafi1GdQwHaizvLafXQ0RxSB JP+Q== X-Gm-Message-State: AJIora8TmEXvMuetn6W/92TPpLXsN11g/Hg/iyXAwO05+Jl/dd4i2SwT lF2Z0hahq8GNA4x52uuA34/boQ== X-Received: by 2002:a2e:bc17:0:b0:25d:50b7:74fa with SMTP id b23-20020a2ebc17000000b0025d50b774famr377988ljf.444.1658511364370; Fri, 22 Jul 2022 10:36:04 -0700 (PDT) Received: from [192.168.10.173] (93.81-167-86.customer.lyse.net. [81.167.86.93]) by smtp.gmail.com with ESMTPSA id c23-20020a056512325700b0048374164e22sm1159225lfr.193.2022.07.22.10.36.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 Jul 2022 10:36:03 -0700 (PDT) Message-ID: <4133c99a-b6a1-6a17-0ad8-f3bf6f8ab176@linaro.org> Date: Fri, 22 Jul 2022 19:36:01 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v4 3/5] PCI: axis: Add ARTPEC-8 PCIe controller driver Content-Language: en-US To: Bjorn Helgaas Cc: wangseok.lee@samsung.com, "robh+dt@kernel.org" , "krzk+dt@kernel.org" , "kishon@ti.com" , "vkoul@kernel.org" , "linux-kernel@vger.kernel.org" , "jesper.nilsson@axis.com" , "lars.persson@axis.com" , "bhelgaas@google.com" , "linux-phy@lists.infradead.org" , "linux-pci@vger.kernel.org" , "devicetree@vger.kernel.org" , "lorenzo.pieralisi@arm.com" , "kw@linux.com" , "linux-arm-kernel@axis.com" , "kernel@axis.com" , Moon-Ki Jun , Sang Min Kim , Dongjin Yang , Yeeun Kim References: <20220721205819.GA1753070@bhelgaas> From: Krzysztof Kozlowski In-Reply-To: <20220721205819.GA1753070@bhelgaas> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 On 21/07/2022 22:58, Bjorn Helgaas wrote: > On Thu, Jul 21, 2022 at 11:04:00AM +0200, Krzysztof Kozlowski wrote: >> On 20/07/2022 08:01, Wangseok Lee wrote: >>> Add support Axis, ARTPEC-8 SoC. ARTPEC-8 is the SoC platform of Axis >>> Communications. This is based on arm64 and support GEN4 & 2lane. This >>> PCIe controller is based on DesignWare Hardware core and uses DesignWare >>> core functions to implement the driver. "pcie-artpec6. c" supports artpec6 >>> and artpec7 H/W. artpec8 can not be expanded because H/W configuration is >>> completely different from artpec6/7. PHY and sub controller are different. >>> >>> Signed-off-by: Wangseok Lee >>> Signed-off-by: Jaeho Cho >>> --- >>> v3->v4 : >>> -Remove unnecessary enum type >>> -Fix indentation >>> >> >> Thanks for the changes. This starts to look good, however I am not going >> to ack it. This is also not a strong NAK, as I would respect Bjorn and >> other maintainers decision. >> >> I don't like the approach of creating only Artpec-8 specific driver. >> Samsung heavily reuses its block in all Exynos devices. Now it re-uses >> them for other designs as well. Therefore, even if merging with existing >> Exynos PCIe driver is not feasible (we had such discussions), I expect >> this to cover all Samsung Foundry PCIe devices. From all current designs >> up to future licensed blocks, including some new Samsung Exynos SoC. Or >> at least be ready for it. > > I would certainly prefer fewer drivers but I don't know enough about > the underlying IP and the places it's integrated to to know what's > practical. The only way I could figure that out would be by manually > comparing the drivers for similarity. I assume/expect all driver > authors are doing that. Merging with existing Exynos PCIe driver (and phy) might be indeed tricky, as existing one does not support that much as here. However I really expect that all current designs from Samsung - Exynos SoC, Artpec and for other customers - have very similar PCIe thus this should be a generic, new generation Samsung PCIe driver. If designed that way, also the naming should be back Samsung specific, no Axis/Artpec. Best regards, Krzysztof