Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1423824rdh; Mon, 25 Sep 2023 12:18:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFVUp7mXtlnciwY+yJDrDtWlTo8SIjz2lgZCDwr0LrhMD+6IyX79rCgUJd+X8e0Wp8byXVb X-Received: by 2002:a17:902:e88d:b0:1bb:9b29:20d9 with SMTP id w13-20020a170902e88d00b001bb9b2920d9mr9895386plg.20.1695669521906; Mon, 25 Sep 2023 12:18:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695669521; cv=none; d=google.com; s=arc-20160816; b=Z21ErGmGSbBEVhW+nFXRkMdo6RwdKuUjx6yXNmkvWvYUmb0agHpCoVSf4fNui8gZts 1jSpsy1H7T9YZhOFliyRD1W5kD5CkMNgjNGANMDKBLPb3Bhhe4ldnklytYegDdh6qB8Z AFV4TId9FNLcmvQiuUscfBe36aRi1akPlKCjoFtYBdz4wJc7P1Q4V4M4Mq2Fkfb11NMY 7Zturuqz6vfgQ7DzHInskX6Vi2ZXBJ+rLjtWTr9oy6SBtcUZK3s1fow9tkjjbdPhoTyc 1RSoCDkwkHYTW2+d0ukcAgnpwmWAqbUxpmLsn/8+UiqH+k8II43lM0zwt8raPjnR2n5V hcyw== 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=QpHP0gjZZ+jc1OAptTHEyzuPC8yYPxjo1qi8MGdPaIY=; fh=5W63XeJe62okkE0gVqbIdhPqTjVU/viIfU/8sLGDItA=; b=s/hNzCBmuHZPowrIBXqAT5goPq2gU0Hg+5oC6xqgTwM2fi5mneMMzbC69SXBFtNHJ/ /QaTimueH1303YjienWJEl8LQ2cGyYne6OmziLeOlwNnOUsr2gfZRAnp9UBShMyJNnuP Tj1Ytt04wFa5D+NZC13Zd31xhtGfPr/JV6oZ3C3D5c+psErhOccRNU5R9Rok4PJgYbYf zD1c0XjORu/F/pobH00o/lC8h9xU7w1LoGIa+CUIgEyxYxuqGJwj6YXvpvBtMi8BLxLs MW+j92ceDoucDKmQb1q2p5/T/KcI5xbJV1FizPR00C8xKxW6thPzBFZd6WbS7hy3I7ei k62A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DnwKPmdY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id o11-20020a170902d4cb00b001b894687ec9si11203368plg.462.2023.09.25.12.18.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 12:18:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DnwKPmdY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 368348129AFA; Mon, 25 Sep 2023 05:18:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231378AbjIYMTC (ORCPT + 99 others); Mon, 25 Sep 2023 08:19:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231354AbjIYMTB (ORCPT ); Mon, 25 Sep 2023 08:19:01 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F24F1106 for ; Mon, 25 Sep 2023 05:18:54 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-3231dff4343so1582106f8f.0 for ; Mon, 25 Sep 2023 05:18:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695644333; x=1696249133; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=QpHP0gjZZ+jc1OAptTHEyzuPC8yYPxjo1qi8MGdPaIY=; b=DnwKPmdYB4qo1hQkqy3sakSiILAshNdmn2LaBg/xbt+Kwfx4DhR6YTZLHRGVWKwB77 pfRfIpg98sBIS2oe3wCFHeFFUKD1MD7zt5+85V2kTYmIjG0e01KgndKXCz4UXfCS77ZW tyaO0dWWXVRPvAMskKl70jyO1EVlvyZDrmo6+gmMLm/cXv/8Bsc2/SrfvzCEt38wYNGx 0HGkX+iNstFBxq2bDlV08OrArrl3IXVBXgZuFlHGwLABK+YpaNk84FAhBl5SRJ34oAFC 3qi3ikr/faKLMEa1qoQkOWdg7d8ojnFpRiT8yxKUysn4OeXefKP0vrUK8FPNmpqsPDTU Yh5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695644333; x=1696249133; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=QpHP0gjZZ+jc1OAptTHEyzuPC8yYPxjo1qi8MGdPaIY=; b=i0043KvD5mqAEnrBNiizED5jb14D3TfHJN4Wu/h3p28Np6Er6bsWsC3aAgq2v1hYuk 4rHaPcBuIsT5/Tzlh0bnD6L0mn4JLoux9Kp8GKDkEeUHSHEVqf4isyLShDGSPA1/+nS5 Kk4nFfSFIAonnUizP4lNQYoDq/3/9fDHYnt4PjTYkrKyDatJZi+IYIDJJ1pnEB6g9ESy BpJZzZPWpJSDYwg5dUSAeIWDFa9waRCvBPhHECSkrgzBLvAnDZ2BYtAf70ieVB4bQlM9 Cgd1kaAxNMGldg7xlaXUae4ObWZGdATYJVSaopYpHjIeHNSE7TDwVaDu9GYjVISw5bLc FDRQ== X-Gm-Message-State: AOJu0YzC1PQfpZLJy1q8qf3BUgrrsflfybST+i9g8pCAcsbI6VBnXYvd AbcP/BJ5qNNVC3K/S/E9yjEZXg== X-Received: by 2002:a05:6000:1e18:b0:323:2288:40ef with SMTP id bj24-20020a0560001e1800b00323228840efmr3530120wrb.14.1695644333441; Mon, 25 Sep 2023 05:18:53 -0700 (PDT) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id n3-20020a05600c3b8300b004053a6b8c41sm10408693wms.12.2023.09.25.05.18.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 05:18:53 -0700 (PDT) Date: Mon, 25 Sep 2023 15:18:50 +0300 From: Dan Carpenter To: Umang Jain Cc: linux-staging@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Stefan Wahren , Greg Kroah-Hartman , Florian Fainelli , Adrien Thierry , Dan Carpenter , Dave Stevenson , Kieran Bingham , Laurent Pinchart Subject: Re: [PATCH v11 1/5] staging: vc04_services: vchiq_arm: Add new bus type and device type Message-ID: <62363da5-39c4-40f2-bfca-fed182845eb8@kadam.mountain> References: <20230913195354.835884-1-umang.jain@ideasonboard.com> <20230913195354.835884-2-umang.jain@ideasonboard.com> <700e11e4-057d-78ed-8b52-dd2df97198bf@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <700e11e4-057d-78ed-8b52-dd2df97198bf@ideasonboard.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 25 Sep 2023 05:18:59 -0700 (PDT) On Sat, Sep 23, 2023 at 07:57:51PM +0530, Umang Jain wrote: > Hi Dan, > > On 9/14/23 12:25 PM, Dan Carpenter wrote: > > On Thu, Sep 14, 2023 at 01:23:50AM +0530, Umang Jain wrote: > > > +static int vchiq_bus_type_match(struct device *dev, struct device_driver *drv) > > > +{ > > > + if (dev->bus == &vchiq_bus_type && > > > + strcmp(dev_name(dev), drv->name) == 0) > > > + return 1; > > > + > > > + return 0; > > > +} > > I was not going to comment on this, because it's unfair to nitpick a > > v11 patch... But since you're going to have to redo it anyway, could > > you make this function bool and change it to return true/false. > > > > static bool vchiq_bus_type_match(struct device *dev, struct device_driver *drv) > > Perhaps the return value can be true/false, but return type should always be > 'int' > Oh. Sorry, I didn't look carefully. Btw, you don't need to tip toe around telling me I'm wrong. Just say "That won't compile, dummy." I'm a big boy, and I can admit when I make mistakes. ;) regards, dan carpenter