Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp249151rwb; Sat, 17 Sep 2022 04:44:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5ZK2RevMLJKXgXIJ06uzMi9yFOM3UX2Cl3TwiVOoIULbswtXzFp6PawaEg+O7InezaXnmi X-Received: by 2002:aa7:888f:0:b0:544:7429:b07c with SMTP id z15-20020aa7888f000000b005447429b07cmr9755298pfe.15.1663415049942; Sat, 17 Sep 2022 04:44:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663415049; cv=none; d=google.com; s=arc-20160816; b=fDSSzb/6/9eXoj8KI0OYUHJh7Mgub6BzvZuCpM8GOamOcLOsCOXbplnPt89UXIHV89 PY++mG7/ODALvXnAUeINqL1xeuGkctPfRGDjmpd4abWcAFlYCSUP5EsfttCBxXvFcDub Z/uv2AGbVIuoC+SJ80c7d+aAlN7ek4yjvfqbYoEkRuQhNjSbf93BTy4OJUItR5JawF0k 2YqZusEZUzw0R3Jumcaf7i6/exqmAr+q7T/+Z9+SwAov2dOz+mCLVgEF03PAV07TngE9 9F3vccsDznU1NFaw4pXe3uOYz6wf3GH1g0hxbcN5B0aaDYDMgCMhWB5Sh0VOoJO/4YwA foQQ== 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; bh=cUCK9hALiKt/86cczRsmIYvWSwWieW88Gb34fiI5Fu8=; b=qLp2A5C8u27HTOBZmRlwegV24qnLrr4boMTvpUp7CUEQVerrO/mrTPWGoZkswUwT+J OxwjIvQYgMyQnUjMUZu8h3b65o3XBYDxhu3dqB80QT/vQTeeO2NQCQUl7ucLUNPLd9vS GuAoxbTcg1j+qyFBgNV1Py+kPTvrCFlDjv9DfBsRx+Ve9gon9H9YmXbisHh33mlEQ/DS LoI4fZUEICBhKKQ5xO5ZW4WiCChM4Au+h5+JKQdzuTYgf+Qhkdkx7i/lCzeoFtRR+hZl LokQUpLdRAizkeI3g2mL3IXvyngWtdgtL6FvVn85vGoOwMDIRZIy/lmvrxZv9syBgfXt MdoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LZ7EAXSI; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h184-20020a6383c1000000b0043954dec8c1si13081919pge.615.2022.09.17.04.43.58; Sat, 17 Sep 2022 04:44:09 -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=@kernel.org header.s=k20201202 header.b=LZ7EAXSI; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229556AbiIQKpM (ORCPT + 99 others); Sat, 17 Sep 2022 06:45:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbiIQKpK (ORCPT ); Sat, 17 Sep 2022 06:45:10 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9B9E28E35; Sat, 17 Sep 2022 03:45:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0C777613E9; Sat, 17 Sep 2022 10:45:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 19650C433C1; Sat, 17 Sep 2022 10:45:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663411507; bh=fbo6apx3/5y9z8h4zv5NpW0vWKx/Ba2cv7UD5PP7tic=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LZ7EAXSIN3pXGIvEpuKusxkCKbCML12xjHmSfj6OFPqNcEHGz5BoVxgi8OTGcA7Lh hjcoWkOTCslDK7Ygr0jolsgEeoREienl1bcXF8svjlAsz9592ICCWBuTgiIjwzEG7k BuV4aizjkw+UaVHKjke73bsJKBUnvwbomaJ4c1xd72W1SI2RbO/91gCplGXBFgwOqE psKK8nsGPDHtc0HzXmvt9WLMvwHsNhy/gMmU4jSg2roWP9alLM8OEfOHVAb5Z5Jq5N E9/iqjM0SO0nh2ogdrQuV87gvCG6RGR8JNH9MXixQXt9yRE1DCqixl5SOcpESYj2F/ PjzyaYTcX886Q== Date: Sat, 17 Sep 2022 12:44:58 +0200 From: Lorenzo Pieralisi To: Serge Semin Cc: Serge Semin , Rob Herring , Rob Herring , Krzysztof Kozlowski , Bjorn Helgaas , Lorenzo Pieralisi , Jingoo Han , Gustavo Pimentel , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Alexey Malahov , Pavel Parkhomenko , Frank Li , Manivannan Sadhasivam , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, robin.murphy@arm.com, willmcvicker@google.com Subject: Re: [PATCH v5 20/20] PCI: dwc: Add Baikal-T1 PCIe controller support Message-ID: References: <20220822184701.25246-1-Sergey.Semin@baikalelectronics.ru> <20220822184701.25246-21-Sergey.Semin@baikalelectronics.ru> <20220912000211.ct6asuhhmnatje5e@mobilestation> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220912000211.ct6asuhhmnatje5e@mobilestation> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Mon, Sep 12, 2022 at 03:02:11AM +0300, Serge Semin wrote: [...] > I prefer splitting the probe method up into a set of small and > coherent methods. It IMO improves the code readability for just no > price since the compiler will embed the single-time used static > methods anyway. I will get back to this thread at -rc7 - we will decide a merge strategy then. Lorenzo > -Sergey > > > > > Thanks, > > Lorenzo > > > > > + if (IS_ERR(btpci)) > > > + return PTR_ERR(btpci); > > > + > > > + return bt1_pcie_add_port(btpci); > > > +} > > > + > > > +static int bt1_pcie_remove(struct platform_device *pdev) > > > +{ > > > + struct bt1_pcie *btpci = platform_get_drvdata(pdev); > > > + > > > + bt1_pcie_del_port(btpci); > > > + > > > + return 0; > > > +} > > > + > > > +static const struct of_device_id bt1_pcie_of_match[] = { > > > + { .compatible = "baikal,bt1-pcie" }, > > > + {}, > > > +}; > > > +MODULE_DEVICE_TABLE(of, bt1_pcie_of_match); > > > + > > > +static struct platform_driver bt1_pcie_driver = { > > > + .probe = bt1_pcie_probe, > > > + .remove = bt1_pcie_remove, > > > + .driver = { > > > + .name = "bt1-pcie", > > > + .of_match_table = bt1_pcie_of_match, > > > + }, > > > +}; > > > +module_platform_driver(bt1_pcie_driver); > > > + > > > +MODULE_AUTHOR("Serge Semin "); > > > +MODULE_DESCRIPTION("Baikal-T1 PCIe driver"); > > > +MODULE_LICENSE("GPL"); > > > -- > > > 2.35.1 > > >