Received: by 10.213.65.68 with SMTP id h4csp1073955imn; Wed, 14 Mar 2018 08:50:51 -0700 (PDT) X-Google-Smtp-Source: AG47ELtBeZ9etPMNgRmQB6DsDIBRWzFFoUZTVLkXJX7qBKvLpCdCm+UGkl42iZXEmXEWHPVVGYkU X-Received: by 2002:a17:902:b691:: with SMTP id c17-v6mr4577456pls.308.1521042651686; Wed, 14 Mar 2018 08:50:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521042651; cv=none; d=google.com; s=arc-20160816; b=Kw+C2tBMKiMiqlvRTW4SGa6VEEitAsKH0BiRIZubur7mtMXL3M8hbaxseiR22mUXVM 19rML6zVtqGSlmUbqgaINf3XR0PE4mqfLDbk4A6bSrYXVneEiDg90kPbUaCwNNhuwgkt SmPMZtW8YCGXPomZQ3BCONOBRXAf9UZGD4aCXYG8x5ZYNqH5TkYqw7+aZZf7xc840hmj aRasPMqMpVxlg7OaFbrx3qCVFTfWvBQwZ/5T+Mt40w34BNIxPhLop/Mxxya2MB9wPuUd GAc87pZd7O9lBeToIvV5EEZnfCVCryNz5pho32ee8M2U6L9TDpo9DkaVhvNVJOH+qEOV dvyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=4MUXh2NaAb13QExaS1mKpm5AUg7ekqzmuUmPmLrhnQU=; b=FvZR3tQRDZ9JY8w3kT08eu2HmweoAj8RlRQDSP0CW/fHx8EWh39VPWXD08joBz0/3/ eEU867sRlPRiv8t5j8ncM59TfCpXQWb81D+ynN3mj+s0vXWK/0yYYjlnKFcBclBDlCvj 9YQnR3ubcskvtLwEudPhHdVISDeWF0gJZavwv2yyyRH1rbjwaATMy49HKbIqFvNg3YUR 0/mN32TZ/igtjI5KhMNY/xY85ATmkMC19YNtXk4ue2n5xNQZvj4ayVEezh12tD5TmiWl GORoZ1KLpF9n3pip0xOOxi0XMGLJzAQ9loRtseSdhk3E/Vo+ZmCd/jg2oTDc7/A/kZDO 42rQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o12si1994904pgr.99.2018.03.14.08.50.21; Wed, 14 Mar 2018 08:50:51 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752343AbeCNPoo (ORCPT + 99 others); Wed, 14 Mar 2018 11:44:44 -0400 Received: from mail1.skidata.com ([91.230.2.99]:16098 "EHLO mail1.skidata.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752294AbeCNPol (ORCPT ); Wed, 14 Mar 2018 11:44:41 -0400 X-IronPort-AV: E=Sophos;i="5.47,470,1515452400"; d="scan'208";a="9218762" Subject: Re: [PATCH 2/3] usb: host: pci: introduce PCI vendor ID for Netlogic To: Oliver Neukum , Richard Leitner , , , CC: , , References: <20180314102933.21367-1-dev@g0hl1n.net> <20180314102933.21367-3-dev@g0hl1n.net> <1521029854.4511.12.camel@suse.com> <1521041253.4511.16.camel@suse.com> From: Richard Leitner Message-ID: <377fb9d5-1cc9-7ab8-c965-2fb0a4dc20f3@skidata.com> Date: Wed, 14 Mar 2018 16:44:38 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1521041253.4511.16.camel@suse.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.111.252] X-ClientProxiedBy: sdex4srv.skidata.net (192.168.111.82) To sdex5srv.skidata.net (192.168.111.83) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/14/2018 04:27 PM, Oliver Neukum wrote: > Am Mittwoch, den 14.03.2018, 14:31 +0100 schrieb Richard Leitner: >> Hi Oliver, >> thank you for your feedback! >> >> On 03/14/2018 01:17 PM, Oliver Neukum wrote: >>> Am Mittwoch, den 14.03.2018, 11:29 +0100 schrieb Richard Leitner: >>>> From: Richard Leitner >>>> >>>> Replace the hardcoded PCI vendor ID of Netlogic with a definition in >>>> pci_ids.h >>> >>> Hi, >>> >>> in general, why? >>> Does this patch generate any benefit for any developer >>> reading the source? I don't see it. Does it cause an >>> issue for anybody who has a log file with the nummerical >>> ID and needs to grep for it? Yes it does. >> >> I'll send a v2 where I also use this definition in >> arch/mips/netlogic/xlp/ instead of PCI_VENDOR_NETLOGIC from >> arch/mips/include/asm/netlogic/xlp-hal/iomap.h. >> >> Therefore it will remove this definition from the iomap.h >> and move it to pci_ids.h >> >> This will IMHO be a clear benefit as it removes a redundant >> definition. > > Well, but it does not. Removing a redundant definition is a clear > benefit. But you are not removing a definition. You are introducing > a preprocessor constant. Why? > What is its benefit? AFAIK pci_ids.h collects PCI vendor and device IDs in one single point. As the PCI vendor ID of Netlogic is used in multiple files IMHO it would be a good idea to add it to pci_ids.h and furthermore remove it from arch/mips/include/asm/netlogic/xlp-hal/iomap.h (where it's currently defined). Or am I getting things wrong? regards;richard.l